[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:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39: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:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]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:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:30]accept exits with 8 [07:30:30]New connection [07:30:30]New thread 3067321700 created [07:30:30]Thread 3067465060 joined [07:30:30]Waiting for new connection... [07:30:30] Sock 8.Parse request [07:30:30]Sock 8.Check first char [07:30:30]Sock 8.First char is OK [07:30:30]request: POST /json_proto HTTP/1.0 [07:30:30]Method: POST [07:30:30]URL: /json_proto [07:30:30]Method is POST - this is cgi request [07:30:30]url: /json_proto [07:30:30]query_string will be loaded in cgi processing [07:30:30]execute_cgi json_proto POST (null) [07:30:30]execute_cgi path=json_proto method=POST [07:30:30]POST find Content-Length [07:30:30]Host: 172.17.58.67:8080 [07:30:30]Content-Length: 1190 [07:30:30]Content-Type: application/json [07:30:30] [07:30:30]POST finish read [07:30:30]Found Content-Length = 1190 [07:30: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141000\u000A12.08.2024 06:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1647.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53441\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:30]execute_script... [07:30: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141000\u000A12.08.2024 06:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1647.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53441\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:30]POST & json_proto [07:30:30]process_json_proto [07:30:30]json parsed OK: [07:30:30]protocol is kg_v1.0 [07:30:30]action value=print_text [07:30:30]process_action print_text [07:30:30]cmd_print_text [07:30:30]ExternCall_PrintAddStr [07:30:30]wPrintStart [07:30:30]Write to MH i2c: 01 00 00 5C 08 64 [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: 01 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: 01 07 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: 01 07 00 5C 08 00 00 00 00 00 FF 0F 79 [07:30:30]RasterBufferAndPrint [07:30:30]line *****ТОВÐРÐЫЙ ЧЕК***** [07:30:30]line ÐЗС 39 [07:30:30]line Партнер нефть [07:30:30]line 02508201610067 [07:30:30]line КаÑÑир : Мирбек к Ð. [07:30:30]line Счет N : (1)141000 [07:30:30]line 12.08.2024 06:49 [07:30:30]line ПРОДÐЖР[07:30:30]line ТРК (МРК, ГÐК): 41 [07:30:30]line Вид ГСМ : 2710124130 [07:30:30]line Ðи-92-К-5 [07:30:30]line 25.000 x 65.90 [07:30:30]line ИТОГ: 1647.50 [07:30:30]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [07:30:30]line 53441 [07:30:30]line ______________________ [07:30:30]line (подпиÑÑŒ) [07:30:30]written 0, free lines is 4095 [07:30:30]Write to MH i2c: 01 00 00 70 08 78 [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: 01 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: 01 07 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: 01 07 00 70 08 00 00 00 00 00 0E 0E 9B [07:30:30]RasterBufferAndPrint [07:30:30]line [07:30:30]line [07:30:30]line [07:30:30]line [07:30:30]line [07:30:30]written 0, free lines is 3600 [07:30:30]MH_Cut [07:30:30]Write to MH i2c: D1 01 00 77 08 01 51 [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: D1 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: D1 01 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: D1 01 00 77 08 00 50 [07:30:30]Write to MH i2c: 01 00 00 78 08 80 [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:31]*** Cut start [07:30:31]*** Purtial cut [07:30:31]*** CUTSNS_PIN = 0 [07:30:31]*** Stage 1: CUTSNS_PIN = 1 [07:30:32]OFD Sender: No OFD packet to send [07:30:33]Read from MH i2c: 01 [07:30:33]MH_I2C_Read... [07:30:33]*** Stop cut motor [07:30:33]*** Cut end [07:30:33]Read from MH i2c: 01 07 00 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: 01 07 00 78 08 00 00 00 00 00 FF 0F 95 [07:30:33]process_action print_text done [07:30:33]requested_data is exist [07:30:33]produce_requested_data [07:30:33]requested_item fm.sn is exist - process it [07:30:33]wFMCommunicate request_size=4 [07:30:33]MH_SAM_APDU [07:30:33]CAPDU: 80 11 00 00 [07:30:33]Write to MH i2c: E2 08 00 79 08 80 11 00 00 00 00 00 00 FB [07:30:33]Write i2c OK [07:30:33]MH_I2C_Read... [07:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:33]Read from MH i2c: E2 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 17 00 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 17 00 79 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 50 [07:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:30:33]wFMCommunicate OK [07:30:33]requested_item fd.num is exist - process it [07:30:33]SAM_PROTO_GetFieldsCounters [07:30:33]wFMCommunicate request_size=4 [07:30:33]MH_SAM_APDU [07:30:33]CAPDU: 80 13 00 00 [07:30:33]Write to MH i2c: E2 08 00 7A 08 80 13 00 00 00 00 00 00 FE [07:30:33]Write i2c OK [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 62 00 [07:30:33]MH_I2C_Read... [07:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:33]Read from MH i2c: E2 62 00 7A 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 A8 13 01 00 0E 04 04 00 D1 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 AC [07:30: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 A8 13 01 00 0E 04 04 00 D1 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 [07:30:33]wFMCommunicate OK [07:30:33]SAM_PROTO_GetFieldsCounters done [07:30:33]requested_item shift.num is exist - process it [07:30:33]requested_item shift.opened is exist - process it [07:30:33]req_shift_opened [07:30:33]FM_GetShiftState [07:30:33]SAM_PROTO_GetShiftState [07:30:33]wFMCommunicate request_size=4 [07:30:33]MH_SAM_APDU [07:30:33]CAPDU: 80 13 01 00 [07:30:33]Write to MH i2c: E2 08 00 7B 08 80 13 01 00 00 00 00 00 00 [07:30:33]Write i2c OK [07:30:33]MH_I2C_Read... [07:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:33]Read from MH i2c: E2 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 0E 00 [07:30:33]MH_I2C_Read... [07:30:33]Read from MH i2c: E2 0E 00 7B 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 ED [07:30:33]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [07:30:33]wFMCommunicate OK [07:30:33]SAM_PROTO_GetShiftState done [07:30:33]FM_GetShiftState done [07:30:33]req_shift_opened done [07:30:33]requested_item shift.open_date is exist - process it [07:30:33]req_shift_open_date [07:30:33]req_shift_open_date done [07:30:33]produce_requested_data done [07:30:33]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70568,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [07:30:33]process_action_free print_text [07:30:33]json_value_free [07:30:33]json_value_free done [07:30:33]process_json_proto returns [07:30:33]Send response to host [07:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70568,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [07:30:33]free response buf [07:30:33]execute_script done [07:30:33]execute_script returns [07:30:33]free content buf [07:30:33]Sock 8.Close socket [07:30:33]Sock 8.Thread stoped [07:30:34]int [07:30:34]Write to MH i2c: 01 00 00 7C 08 84 [07:30:34]*** FLAG_PRN_KEY set [07:30:34]Write i2c OK [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: 01 [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: 01 07 00 [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: 01 07 00 7C 08 00 08 00 00 00 FF 0F A1 [07:30:34]state=0 [07:30:34]Key pressed [07:30:34]Feed [07:30:34]Write to MH i2c: D8 00 00 7D 08 5C [07:30:34]Write i2c OK [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: D8 [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: D8 01 00 [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: D8 01 00 7D 08 00 5D [07:30:34]int [07:30:34]Write to MH i2c: 01 00 00 7E 08 86 [07:30:34]Write i2c OK [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: 01 [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: 01 07 00 [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: 01 07 00 7E 08 00 48 00 00 00 3C 00 11 [07:30:34]state=2 [07:30:34]Key pressed [07:30:34]int [07:30:34]Write to MH i2c: 01 00 00 7F 08 87 [07:30:34]*** FLAG_PRN_KEY reset [07:30:34]Write i2c OK [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: 01 [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: 01 07 00 [07:30:34]MH_I2C_Read... [07:30:34]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [07:30:34]state=2 [07:30:34]Stop feed [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [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:11]accept exits with 9 [07:39:11]New connection [07:39:11]New thread 3067465060 created [07:39:11]Thread 3067321700 joined [07:39:11]Waiting for new connection... [07:39:11] Sock 9.Parse request [07:39:11]Sock 9.Check first char [07:39:11]Sock 9.First char is OK [07:39:11]request: POST /json_proto HTTP/1.0 [07:39:11]Method: POST [07:39:11]URL: /json_proto [07:39:11]Method is POST - this is cgi request [07:39:11]url: /json_proto [07:39:11]query_string will be loaded in cgi processing [07:39:11]execute_cgi json_proto POST (null) [07:39:11]execute_cgi path=json_proto method=POST [07:39:11]POST find Content-Length [07:39:11]Host: 172.17.58.67:8080 [07:39:11]Content-Length: 674 [07:39:11]Content-Type: application/json [07:39:11] [07:39:11]POST finish read [07:39:11]Found Content-Length = 674 [07:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 4.040, "sum" : 300.58, "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" ] } } [07:39:11]execute_script... [07:39:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 4.040, "sum" : 300.58, "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" ] } } [07:39:11]POST & json_proto [07:39:11]process_json_proto [07:39:11]json parsed OK: [07:39:11]protocol is kg_v1.0 [07:39:11]action value=close_receipt [07:39:11]process_action close_receipt [07:39:11]cmd_close_receipt [07:39:11]MH_GetDate [07:39:11]Write to MH i2c: F0 00 00 80 08 77 [07:39:11]Write i2c OK [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: F0 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: F0 09 00 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: F0 09 00 80 08 00 22 BC B9 66 94 51 63 64 29 [07:39:11]GetLastDocTimeStamp 1723423336 [07:39:11]current date 1723448354 [07:39:11]FM_GetShiftState [07:39:11]SAM_PROTO_GetShiftState [07:39:11]wFMCommunicate request_size=4 [07:39:11]MH_SAM_APDU [07:39:11]CAPDU: 80 13 01 00 [07:39:11]Write to MH i2c: E2 08 00 81 08 80 13 01 00 00 00 00 00 06 [07:39:11]Write i2c OK [07:39:11]MH_I2C_Read... [07:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:11]Read from MH i2c: E2 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: E2 0E 00 [07:39:11]MH_I2C_Read... [07:39:11]Read from MH i2c: E2 0E 00 81 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F3 [07:39:11]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [07:39:11]wFMCommunicate OK [07:39:11]SAM_PROTO_GetShiftState done [07:39:11]FM_GetShiftState done [07:39:11]opened in 1723423336 [07:39:11]opened+sec_in_day 1723509736 [07:39:11]quantity*price = 30057 [07:39:11]sum+1 = 30059 [07:39:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.58 ИТОГО: 300.00 ВнеÑено: 300.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.66 ÐДС 12% : 31.92 Ðаличными: 300.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 1 12.08.2024 07:39 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70569 ФПД: 40405792822668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T073914&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70569&fm=40405792822668&tin=02508201610067®Number=0000000000090913&sum=30000 [07:39:12]StoreToDocumentArchive [07:39:12]shift 465 fd 70569 [07:39:12]save to /storage/0465/doc_00070569 [07:39:12]save last doc name /storage/0465/doc_00070569 to /storage/kkm_last_doc_name [07:39:12]save OK [07:39:12]Clear old archive folders... [07:39:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:39:12]tlvbuf is 00B5D9C0 [07:39:12]SAM_PROTO_ClearQueue [07:39:12]wFMCommunicate request_size=4 [07:39:12]MH_SAM_APDU [07:39:12]CAPDU: 80 09 00 00 [07:39:12]Write to MH i2c: E2 08 00 8E 08 80 09 00 00 00 00 00 00 08 [07:39:12]Write i2c OK [07:39:12]MH_I2C_Read... [07:39:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:12]Read from MH i2c: E2 [07:39:12]MH_I2C_Read... [07:39:12]Read from MH i2c: E2 03 00 [07:39:12]MH_I2C_Read... [07:39:12]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [07:39:12]RAPDU: 90 00 [07:39:12]wFMCommunicate OK [07:39:12]SAM_PROTO_ClearQueue done [07:39:12]KKMCreateOFDPacket [07:39:12]OFDProtocolAddRootSTLVToBuf [07:39:12]FM_MakeSignedData [07:39:12]FM_MakeSignedData [07:39:12]SAM_PROTO_SignData [07:39:12]wFMCommunicate request_size=4 [07:39:12]MH_SAM_APDU [07:39:12]CAPDU: 80 0D 01 02 [07:39:12]Write to MH i2c: E2 08 00 8F 08 80 0D 01 02 00 00 00 00 10 [07:39:12]Write i2c OK [07:39:12]MH_I2C_Read... [07:39:12]OFD Sender: No OFD packet to send [07:39:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:12]Read from MH i2c: E2 [07:39:12]MH_I2C_Read... [07:39:12]Read from MH i2c: E2 03 00 [07:39:12]MH_I2C_Read... [07:39:12]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [07:39:12]RAPDU: 90 00 [07:39:12]wFMCommunicate OK [07:39:12]wFMCommunicate request_size=255 [07:39:12]MH_SAM_APDU [07:39:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 22 BC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 A9 13 01 00 35 04 06 00 24 BF B4 ED [07:39:12]Write to MH i2c: E2 02 01 90 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 C8 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 22 BC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 A9 13 01 00 35 04 06 00 24 BF B4 ED 00 00 39 [07:39:12]Write i2c OK [07:39:12]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [07:39:13]RAPDU: 90 00 [07:39:13]wFMCommunicate OK [07:39:13]wFMCommunicate request_size=7 [07:39:13]MH_SAM_APDU [07:39:13]CAPDU: 80 0D 02 02 02 95 8C [07:39:13]Write to MH i2c: E2 0A 00 91 08 80 0D 02 02 02 00 95 8C 00 00 38 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [07:39:13]RAPDU: 90 00 [07:39:13]wFMCommunicate OK [07:39:13]wFMCommunicate request_size=4 [07:39:13]MH_SAM_APDU [07:39:13]CAPDU: 80 0D 03 02 [07:39:13]Write to MH i2c: E2 08 00 92 08 80 0D 03 02 00 00 00 00 15 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 0B 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 0B 00 92 08 00 17 FD 5C 78 D1 AB 79 AB 90 00 9E [07:39:13]RAPDU: 17 FD 5C 78 D1 AB 79 AB 90 00 [07:39:13]wFMCommunicate OK [07:39:13]SAM_PROTO_SignData done [07:39:13]FM_MakeSignedData done [07:39:13]CreateOFDProtocolMessage [07:39:13]wFMCommunicate request_size=4 [07:39:13]MH_SAM_APDU [07:39:13]CAPDU: 80 11 00 00 [07:39:13]Write to MH i2c: E2 08 00 93 08 80 11 00 00 00 00 00 00 15 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 17 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 17 00 93 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6A [07:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:39:13]wFMCommunicate OK [07:39:13]CreateOFDProtocolMessage done [07:39:13]OFDSenderStorePacket 70569 [07:39:13]StoreOFDPacket docnum=70569 [07:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 D3 9B 04 01 44 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 22 BC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 A9 13 01 00 35 04 06 00 24 BF B4 ED 95 8C 17 FD 5C 78 D1 AB 79 AB [07:39:13]CheckFolder [07:39:13]dirname=/storage/ofd_packets [07:39:13]CheckFolder done [07:39:13]ProducePacketName [07:39:13]name=ofd_packets/00070569 [07:39:13]NVStorageSaveData ofd_packets/00070569 [07:39:13]File name is /storage/ofd_packets/00070569 [07:39:13]Write 298 bytes [07:39:13]NVStorageSaveData done [07:39:13]OFDSenderStorePacket done [07:39:13]KKMCreateOFDPacket done [07:39:13]NVStorageSaveData kkm_last_timestamp [07:39:13]File name is /storage/kkm_last_timestamp [07:39:13]Write 4 bytes [07:39:13]NVStorageSaveData done [07:39:13]ExternCall_PrintAddStr [07:39:13]wPrintStart [07:39:13]Write to MH i2c: 01 00 00 94 08 9C [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: 01 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: 01 07 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: 01 07 00 94 08 00 00 00 00 00 FF 0F B1 [07:39:13]RasterBufferAndPrint [07:39:13]line Счет N : (1)141001 [07:39:13]line ИÐÐ: 02508201610067 [07:39:13]line Контрольно-КаÑÑовый Чек [07:39:13]line ПРОДÐЖР[07:39:13]line ТРК (МРК, ГÐК) : 14 [07:39:13]line Товар: 2710194210 [07:39:13]line ДТ-К-5 [07:39:13]line 4.040 * 74.40 [07:39:13]line = 300.58 [07:39:13]line ÐДС 12% ÐСП 1% [07:39:13]line > о реализуемом товаре [07:39:13]line ОКРУГЛЕÐИЕ: -0.58 [07:39:13]line ИТОГО: 300.00 [07:39:13]line ВнеÑено: 300.00 [07:39:13]line СДÐЧÐ: 0.00 [07:39:13]line ÐСП 1% : 2.66 [07:39:13]line ÐДС 12% : 31.92 [07:39:13]line Ðаличными: 300.00 [07:39:13]line Безнал.: 0.00 [07:39:13]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [07:39:13]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [07:39:13]line СÐО: Общий режим [07:39:13]line Чек 1 12.08.2024 07:39 [07:39:13]line Смена: 465 ФФД: 1.0 [07:39:13]line ЗÐМ: 0300000140 [07:39:13]line РÐМ: 0000000000090913 [07:39:13]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [07:39:13]line ФМ: 0000000000874915 [07:39:13]line ФД: 70569 [07:39:13]line ФПД: 40405792822668 [07:39:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T073914&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70569&fm=40405792822668&tin=02508201610067®Number=0000000000090913&sum=30000 [07:39:13]OFD Sender: Processing packet 70569 [packets to send 67, broken 66] [07:39:13]ProducePacketName [07:39:13]name=ofd_packets/00070569 [07:39:13]OFD Sender: To server: ‡•öpG, [07:39:13]CommunicateWithHost lk.salyk.kg:30040 [07:39:13]ConnectInit lk.salyk.kg [07:39:13]written 0, free lines is 4095 [07:39:13]Connected sock=10 [07:39: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 39 31 35 0C 01 00 00 D3 9B 04 01 44 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6A 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 22 BC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 A9 13 01 00 35 04 06 00 24 BF B4 ED 95 8C 17 FD 5C 78 D1 AB 79 AB [07:39:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 CA 69 47 00 90 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 A9 13 01 00 F4 03 04 00 0F 63 B9 66 B6 04 01 00 00 78 38 13 2E DA 52 3B BF [07:39:13]CommunicateWithHost err = 0 [07:39:13]CheckOFDResponse [07:39:13]1017 (14) - 77093643461234 [07:39:13]1041 (16) - 0000000000874915 [07:39:13]1040 (4) - 70569 [07:39:13]1012 (4) - 12.08.2024 01:19 [07:39:13]1206 (1) - 0 [07:39:13]OFD Sender: Remove packet 70569 [07:39:13]ProducePacketName [07:39:13]name=ofd_packets/00070569 [07:39:13]NVStorageDeleteData [07:39:13]Write to MH i2c: 01 00 00 BF 08 C7 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: 01 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: 01 07 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: 01 07 00 BF 08 00 00 00 00 00 E6 0C C0 [07:39:13]RasterBufferAndPrint [07:39:13]line [07:39:13]line [07:39:13]line [07:39:13]line [07:39:13]line [07:39:13]written 0, free lines is 3308 [07:39:13]MH_Cut [07:39:13]Write to MH i2c: D1 01 00 C6 08 01 A0 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: D1 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: D1 01 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: D1 01 00 C6 08 00 9F [07:39:13]Write to MH i2c: 01 00 00 C7 08 CF [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:14]OFD Sender: No OFD packet to send [07:39:14]*** Cut start [07:39:14]*** Purtial cut [07:39:14]*** Stage 1: CUTSNS_PIN = 1 [07:39:14]Read from MH i2c: 01 [07:39:14]MH_I2C_Read... [07:39:14]*** Stop cut motor [07:39:14]*** Cut end [07:39:14]Read from MH i2c: 01 07 00 [07:39:14]MH_I2C_Read... [07:39:14]Read from MH i2c: 01 07 00 C7 08 00 00 00 00 00 FF 0F E4 [07:39:14]process_action close_receipt done [07:39:14]requested_data is exist [07:39:14]produce_requested_data [07:39:14]requested_item fm.sn is exist - process it [07:39:14]wFMCommunicate request_size=4 [07:39:14]MH_SAM_APDU [07:39:14]CAPDU: 80 11 00 00 [07:39:14]Write to MH i2c: E2 08 00 C8 08 80 11 00 00 00 00 00 00 4A [07:39:14]Write i2c OK [07:39:14]MH_I2C_Read... [07:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:14]Read from MH i2c: E2 [07:39:14]MH_I2C_Read... [07:39:14]Read from MH i2c: E2 17 00 [07:39:14]MH_I2C_Read... [07:39:14]Read from MH i2c: E2 17 00 C8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 9F [07:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:39:14]wFMCommunicate OK [07:39:14]requested_item fd.num is exist - process it [07:39:14]SAM_PROTO_GetFieldsCounters [07:39:14]wFMCommunicate request_size=4 [07:39:14]MH_SAM_APDU [07:39:14]CAPDU: 80 13 00 00 [07:39:14]Write to MH i2c: E2 08 00 C9 08 80 13 00 00 00 00 00 00 4D [07:39:14]Write i2c OK [07:39:14]MH_I2C_Read... [07:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:15]Read from MH i2c: E2 [07:39:15]MH_I2C_Read... [07:39:15]Read from MH i2c: E2 62 00 [07:39:15]MH_I2C_Read... [07:39:15]Read from MH i2c: E2 62 00 C9 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 A9 13 01 00 0E 04 04 00 D1 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 FF [07:39: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 A9 13 01 00 0E 04 04 00 D1 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 [07:39:15]wFMCommunicate OK [07:39:15]SAM_PROTO_GetFieldsCounters done [07:39:15]requested_item shift.num is exist - process it [07:39:15]requested_item shift.opened is exist - process it [07:39:15]req_shift_opened [07:39:15]FM_GetShiftState [07:39:15]SAM_PROTO_GetShiftState [07:39:15]wFMCommunicate request_size=4 [07:39:15]MH_SAM_APDU [07:39:15]CAPDU: 80 13 01 00 [07:39:15]Write to MH i2c: E2 08 00 CA 08 80 13 01 00 00 00 00 00 4F [07:39:15]Write i2c OK [07:39:15]MH_I2C_Read... [07:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:15]Read from MH i2c: E2 [07:39:15]MH_I2C_Read... [07:39:15]Read from MH i2c: E2 0E 00 [07:39:15]MH_I2C_Read... [07:39:15]Read from MH i2c: E2 0E 00 CA 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 3C [07:39:15]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [07:39:15]wFMCommunicate OK [07:39:15]SAM_PROTO_GetShiftState done [07:39:15]FM_GetShiftState done [07:39:15]req_shift_opened done [07:39:15]requested_item shift.open_date is exist - process it [07:39:15]req_shift_open_date [07:39:15]req_shift_open_date done [07:39:15]produce_requested_data done [07:39:15]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70569,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [07:39:15]process_action_free close_receipt [07:39:15]json_value_free [07:39:15]json_value_free done [07:39:15]process_json_proto returns [07:39:15]Send response to host [07:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70569,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [07:39:15]free response buf [07:39:15]execute_script done [07:39:15]execute_script returns [07:39:15]free content buf [07:39:15]Sock 9.Close socket [07:39:15]Sock 9.Thread stoped [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:21]accept exits with 8 [07:56:21]New connection [07:56:21]New thread 3067321700 created [07:56:21]Thread 3067465060 joined [07:56:21]Waiting for new connection... [07:56:21] Sock 8.Parse request [07:56:21]Sock 8.Check first char [07:56:21]Sock 8.First char is OK [07:56:21]request: POST /json_proto HTTP/1.0 [07:56:21]Method: POST [07:56:21]URL: /json_proto [07:56:21]Method is POST - this is cgi request [07:56:21]url: /json_proto [07:56:21]query_string will be loaded in cgi processing [07:56:21]execute_cgi json_proto POST (null) [07:56:21]execute_cgi path=json_proto method=POST [07:56:21]POST find Content-Length [07:56:21]Host: 172.17.58.67:8080 [07:56:21]Content-Length: 679 [07:56:21]Content-Type: application/json [07:56:21] [07:56:21]POST finish read [07:56:21]Found Content-Length = 679 [07:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 40.330, "sum" : 3000.55, "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" ] } } [07:56:21]execute_script... [07:56: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)141002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 40.330, "sum" : 3000.55, "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" ] } } [07:56:21]POST & json_proto [07:56:21]process_json_proto [07:56:21]json parsed OK: [07:56:21]protocol is kg_v1.0 [07:56:21]action value=close_receipt [07:56:21]process_action close_receipt [07:56:21]cmd_close_receipt [07:56:21]MH_GetDate [07:56:21]Write to MH i2c: F0 00 00 CB 08 C2 [07:56:21]Write i2c OK [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: F0 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: F0 09 00 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: F0 09 00 CB 08 00 28 C0 B9 66 94 51 63 64 7E [07:56:21]GetLastDocTimeStamp 1723448354 [07:56:21]current date 1723449384 [07:56:21]FM_GetShiftState [07:56:21]SAM_PROTO_GetShiftState [07:56:21]wFMCommunicate request_size=4 [07:56:21]MH_SAM_APDU [07:56:21]CAPDU: 80 13 01 00 [07:56:21]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [07:56:21]Write i2c OK [07:56:21]MH_I2C_Read... [07:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:21]Read from MH i2c: E2 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: E2 0E 00 [07:56:21]MH_I2C_Read... [07:56:21]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 3E [07:56:21]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [07:56:21]wFMCommunicate OK [07:56:21]SAM_PROTO_GetShiftState done [07:56:21]FM_GetShiftState done [07:56:21]opened in 1723423336 [07:56:21]opened+sec_in_day 1723509736 [07:56:21]quantity*price = 300055 [07:56:21]sum+1 = 300056 [07:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.55 ИТОГО: 3000.00 ВнеÑено: 3000.00 СДÐЧÐ: 0.00 ÐСП 1% : 26.55 ÐДС 12% : 318.64 Ðаличными: 3000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 2 12.08.2024 07:56 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70570 ФПД: 152155343690765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T075624&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70570&fm=152155343690765&tin=02508201610067®Number=0000000000090913&sum=300000 [07:56:22]StoreToDocumentArchive [07:56:22]shift 465 fd 70570 [07:56:22]save to /storage/0465/doc_00070570 [07:56:22]save last doc name /storage/0465/doc_00070570 to /storage/kkm_last_doc_name [07:56:22]save OK [07:56:22]Clear old archive folders... [07:56:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:56:22]tlvbuf is 00B7B860 [07:56:22]SAM_PROTO_ClearQueue [07:56:22]wFMCommunicate request_size=4 [07:56:22]MH_SAM_APDU [07:56:22]CAPDU: 80 09 00 00 [07:56:22]Write to MH i2c: E2 08 00 D9 08 80 09 00 00 00 00 00 00 53 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 D9 08 00 90 00 55 [07:56:22]RAPDU: 90 00 [07:56:22]wFMCommunicate OK [07:56:22]SAM_PROTO_ClearQueue done [07:56:22]KKMCreateOFDPacket [07:56:22]OFDProtocolAddRootSTLVToBuf [07:56:22]FM_MakeSignedData [07:56:22]FM_MakeSignedData [07:56:22]SAM_PROTO_SignData [07:56:22]wFMCommunicate request_size=4 [07:56:22]MH_SAM_APDU [07:56:22]CAPDU: 80 0D 01 02 [07:56:22]Write to MH i2c: E2 08 00 DA 08 80 0D 01 02 00 00 00 00 5B [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [07:56:22]RAPDU: 90 00 [07:56:22]wFMCommunicate OK [07:56:22]wFMCommunicate request_size=255 [07:56:22]MH_SAM_APDU [07:56: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 8A 9D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 17 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 02 00 00 00 F4 03 04 00 28 C0 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AA 13 01 00 35 04 06 00 8A 62 6D 36 [07:56:22]Write to MH i2c: E2 02 01 DB 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 8A 9D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 17 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 02 00 00 00 F4 03 04 00 28 C0 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AA 13 01 00 35 04 06 00 8A 62 6D 36 00 00 2D [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [07:56:22]RAPDU: 90 00 [07:56:22]wFMCommunicate OK [07:56:22]wFMCommunicate request_size=7 [07:56:22]MH_SAM_APDU [07:56:22]CAPDU: 80 0D 02 02 02 1C 0D [07:56:22]Write to MH i2c: E2 0A 00 DC 08 80 0D 02 02 02 00 1C 0D 00 00 8B [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [07:56:22]RAPDU: 90 00 [07:56:22]wFMCommunicate OK [07:56:22]wFMCommunicate request_size=4 [07:56:22]MH_SAM_APDU [07:56:22]CAPDU: 80 0D 03 02 [07:56:22]Write to MH i2c: E2 08 00 DD 08 80 0D 03 02 00 00 00 00 60 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 0B 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 0B 00 DD 08 00 68 6D 6B AA 41 3E 26 5D 90 00 4D [07:56:22]RAPDU: 68 6D 6B AA 41 3E 26 5D 90 00 [07:56:22]wFMCommunicate OK [07:56:22]SAM_PROTO_SignData done [07:56:22]FM_MakeSignedData done [07:56:22]CreateOFDProtocolMessage [07:56:22]wFMCommunicate request_size=4 [07:56:22]MH_SAM_APDU [07:56:22]CAPDU: 80 11 00 00 [07:56:22]Write to MH i2c: E2 08 00 DE 08 80 11 00 00 00 00 00 00 60 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:22]Read from MH i2c: E2 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 17 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: E2 17 00 DE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B5 [07:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:56:22]wFMCommunicate OK [07:56:22]CreateOFDProtocolMessage done [07:56:22]OFDSenderStorePacket 70570 [07:56:22]StoreOFDPacket docnum=70570 [07:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 B2 44 04 01 35 26 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 9D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 17 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 02 00 00 00 F4 03 04 00 28 C0 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AA 13 01 00 35 04 06 00 8A 62 6D 36 1C 0D 68 6D 6B AA 41 3E 26 5D [07:56:22]CheckFolder [07:56:22]dirname=/storage/ofd_packets [07:56:22]CheckFolder done [07:56:22]ProducePacketName [07:56:22]name=ofd_packets/00070570 [07:56:22]NVStorageSaveData ofd_packets/00070570 [07:56:22]File name is /storage/ofd_packets/00070570 [07:56:22]Write 298 bytes [07:56:22]NVStorageSaveData done [07:56:22]OFDSenderStorePacket done [07:56:22]KKMCreateOFDPacket done [07:56:22]NVStorageSaveData kkm_last_timestamp [07:56:22]File name is /storage/kkm_last_timestamp [07:56:22]Write 4 bytes [07:56:22]NVStorageSaveData done [07:56:22]ExternCall_PrintAddStr [07:56:22]wPrintStart [07:56:22]Write to MH i2c: 01 00 00 DF 08 E7 [07:56:22]Write i2c OK [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: 01 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: 01 07 00 [07:56:22]MH_I2C_Read... [07:56:22]Read from MH i2c: 01 07 00 DF 08 00 00 00 00 00 FF 0F FC [07:56:22]RasterBufferAndPrint [07:56:22]line Счет N : (1)141002 [07:56:22]line ИÐÐ: 02508201610067 [07:56:22]line Контрольно-КаÑÑовый Чек [07:56:22]line ПРОДÐЖР[07:56:22]line ТРК (МРК, ГÐК) : 24 [07:56:22]line Товар: 2710194210 [07:56:22]line ДТ-К-5 [07:56:22]line 40.330 * 74.40 [07:56:22]line = 3000.55 [07:56:22]line ÐДС 12% ÐСП 1% [07:56:22]line > о реализуемом товаре [07:56:22]line ОКРУГЛЕÐИЕ: -0.55 [07:56:22]line ИТОГО: 3000.00 [07:56:22]line ВнеÑено: 3000.00 [07:56:22]line СДÐЧÐ: 0.00 [07:56:22]line ÐСП 1% : 26.55 [07:56:22]line ÐДС 12% : 318.64 [07:56:22]line Ðаличными: 3000.00 [07:56:22]line Безнал.: 0.00 [07:56:22]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [07:56:22]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [07:56:22]line СÐО: Общий режим [07:56:22]line Чек 2 12.08.2024 07:56 [07:56:22]line Смена: 465 ФФД: 1.0 [07:56:22]line ЗÐМ: 0300000140 [07:56:22]line РÐМ: 0000000000090913 [07:56:22]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [07:56:22]line ФМ: 0000000000874915 [07:56:22]line ФД: 70570 [07:56:22]line ФПД: 152155343690765 [07:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T075624&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70570&fm=152155343690765&tin=02508201610067®Number=0000000000090913&sum=300000 [07:56:23]OFD Sender: Processing packet 70570 [packets to send 67, broken 66] [07:56:23]ProducePacketName [07:56:23]name=ofd_packets/00070570 [07:56:23]OFD Sender: To server: ‡•öpG, [07:56:23]CommunicateWithHost lk.salyk.kg:30040 [07:56:23]ConnectInit lk.salyk.kg [07:56:23]written 0, free lines is 4095 [07:56:23]Connected sock=11 [07:56: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 39 31 35 0C 01 00 00 B2 44 04 01 35 26 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 9D 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 17 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 02 00 00 00 F4 03 04 00 28 C0 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AA 13 01 00 35 04 06 00 8A 62 6D 36 1C 0D 68 6D 6B AA 41 3E 26 5D [07:56:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 24 87 47 00 73 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 39 31 35 10 04 04 00 AA 13 01 00 F4 03 04 00 15 67 B9 66 B6 04 01 00 00 E6 64 17 A1 AF 8B C4 53 [07:56:23]CommunicateWithHost err = 0 [07:56:23]CheckOFDResponse [07:56:23]1017 (14) - 77093643461234 [07:56:23]1041 (16) - 0000000000874915 [07:56:23]1040 (4) - 70570 [07:56:23]1012 (4) - 12.08.2024 01:36 [07:56:23]1206 (1) - 0 [07:56:23]OFD Sender: Remove packet 70570 [07:56:23]ProducePacketName [07:56:23]name=ofd_packets/00070570 [07:56:23]NVStorageDeleteData [07:56:23]Write to MH i2c: 01 00 00 0A 09 13 [07:56:23]Write i2c OK [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: 01 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: 01 07 00 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: 01 07 00 0A 09 00 00 00 00 00 F4 0C 1A [07:56:23]RasterBufferAndPrint [07:56:23]line [07:56:23]line [07:56:23]line [07:56:23]line [07:56:23]line [07:56:23]written 0, free lines is 3322 [07:56:23]MH_Cut [07:56:23]Write to MH i2c: D1 01 00 11 09 01 EC [07:56:23]Write i2c OK [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: D1 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: D1 01 00 [07:56:23]MH_I2C_Read... [07:56:23]Read from MH i2c: D1 01 00 11 09 00 EB [07:56:23]Write to MH i2c: 01 00 00 12 09 1B [07:56:23]Write i2c OK [07:56:23]MH_I2C_Read... [07:56:24]OFD Sender: No OFD packet to send [07:56:24]*** Cut start [07:56:24]*** Purtial cut [07:56:24]*** CUTSNS_PIN = 0 [07:56:24]*** Stage 1: CUTSNS_PIN = 1 [07:56:26]Read from MH i2c: 01 [07:56:26]MH_I2C_Read... [07:56:26]*** Stop cut motor [07:56:26]*** Cut end [07:56:26]Read from MH i2c: 01 07 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: 01 07 00 12 09 00 00 00 00 00 FF 0F 30 [07:56:26]process_action close_receipt done [07:56:26]requested_data is exist [07:56:26]produce_requested_data [07:56:26]requested_item fm.sn is exist - process it [07:56:26]wFMCommunicate request_size=4 [07:56:26]MH_SAM_APDU [07:56:26]CAPDU: 80 11 00 00 [07:56:26]Write to MH i2c: E2 08 00 13 09 80 11 00 00 00 00 00 00 96 [07:56:26]Write i2c OK [07:56:26]MH_I2C_Read... [07:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:26]Read from MH i2c: E2 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 17 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 17 00 13 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EB [07:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [07:56:26]wFMCommunicate OK [07:56:26]requested_item fd.num is exist - process it [07:56:26]SAM_PROTO_GetFieldsCounters [07:56:26]wFMCommunicate request_size=4 [07:56:26]MH_SAM_APDU [07:56:26]CAPDU: 80 13 00 00 [07:56:26]Write to MH i2c: E2 08 00 14 09 80 13 00 00 00 00 00 00 99 [07:56:26]Write i2c OK [07:56:26]MH_I2C_Read... [07:56:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:26]Read from MH i2c: E2 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 62 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 62 00 14 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AA 13 01 00 0E 04 04 00 D1 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 4F [07:56: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AA 13 01 00 0E 04 04 00 D1 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 [07:56:26]wFMCommunicate OK [07:56:26]SAM_PROTO_GetFieldsCounters done [07:56:26]requested_item shift.num is exist - process it [07:56:26]requested_item shift.opened is exist - process it [07:56:26]req_shift_opened [07:56:26]FM_GetShiftState [07:56:26]SAM_PROTO_GetShiftState [07:56:26]wFMCommunicate request_size=4 [07:56:26]MH_SAM_APDU [07:56:26]CAPDU: 80 13 01 00 [07:56:26]Write to MH i2c: E2 08 00 15 09 80 13 01 00 00 00 00 00 9B [07:56:26]Write i2c OK [07:56:26]MH_I2C_Read... [07:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:26]Read from MH i2c: E2 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 0E 00 [07:56:26]MH_I2C_Read... [07:56:26]Read from MH i2c: E2 0E 00 15 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 88 [07:56:26]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [07:56:26]wFMCommunicate OK [07:56:26]SAM_PROTO_GetShiftState done [07:56:26]FM_GetShiftState done [07:56:26]req_shift_opened done [07:56:26]requested_item shift.open_date is exist - process it [07:56:26]req_shift_open_date [07:56:26]req_shift_open_date done [07:56:26]produce_requested_data done [07:56:26]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70570,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [07:56:26]process_action_free close_receipt [07:56:26]json_value_free [07:56:26]json_value_free done [07:56:26]process_json_proto returns [07:56:26]Send response to host [07:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70570,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [07:56:26]free response buf [07:56:26]execute_script done [07:56:26]execute_script returns [07:56:26]free content buf [07:56:26]Sock 8.Close socket [07:56:26]Sock 8.Thread stoped [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13: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:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:42]accept exits with 9 [08:26:42]New connection [08:26:42]New thread 3067465060 created [08:26:42]Thread 3067321700 joined [08:26:42]Waiting for new connection... [08:26:42] Sock 9.Parse request [08:26:42]Sock 9.Check first char [08:26:42]Sock 9.First char is OK [08:26:42]request: POST /json_proto HTTP/1.0 [08:26:42]Method: POST [08:26:42]URL: /json_proto [08:26:42]Method is POST - this is cgi request [08:26:42]url: /json_proto [08:26:42]query_string will be loaded in cgi processing [08:26:42]execute_cgi json_proto POST (null) [08:26:42]execute_cgi path=json_proto method=POST [08:26:42]POST find Content-Length [08:26:42]Host: 172.17.58.67:8080 [08:26:42]Content-Length: 1188 [08:26:42]Content-Type: application/json [08:26:42] [08:26:42]POST finish read [08:26:42]Found Content-Length = 1188 [08:26: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141003\u000A12.08.2024 07:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A4212029;4212028\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:42]execute_script... [08:26: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141003\u000A12.08.2024 07:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A4212029;4212028\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:42]POST & json_proto [08:26:42]process_json_proto [08:26:42]json parsed OK: [08:26:42]protocol is kg_v1.0 [08:26:42]action value=print_text [08:26:42]process_action print_text [08:26:42]cmd_print_text [08:26:42]ExternCall_PrintAddStr [08:26:42]wPrintStart [08:26:42]Write to MH i2c: 01 00 00 16 09 1F [08:26:42]Write i2c OK [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: 01 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: 01 07 00 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [08:26:42]RasterBufferAndPrint [08:26:42]line *****ТОВÐРÐЫЙ ЧЕК***** [08:26:42]line ÐЗС 39 [08:26:42]line Партнер нефть [08:26:42]line 02508201610067 [08:26:42]line КаÑÑир : Мирбек к Ð. [08:26:42]line Счет N : (1)141003 [08:26:42]line 12.08.2024 07:46 [08:26:42]line ПРОДÐЖР[08:26:42]line ТРК (МРК, ГÐК): 41 [08:26:42]line Вид ГСМ : 2710124130 [08:26:42]line Ðи-92-К-5 [08:26:42]line 20.000 x 65.90 [08:26:42]line ИТОГ: 1318.00 [08:26:42]line Тип оплаты: Талоны: Партнер нефть [08:26:42]line 4212029;4212028 [08:26:42]line ______________________ [08:26:42]line (подпиÑÑŒ) [08:26:42]written 0, free lines is 4095 [08:26:42]Write to MH i2c: 01 00 00 2A 09 33 [08:26:42]Write i2c OK [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: 01 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: 01 07 00 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: 01 07 00 2A 09 00 00 00 00 00 13 0E 5B [08:26:42]RasterBufferAndPrint [08:26:42]line [08:26:42]line [08:26:42]line [08:26:42]line [08:26:42]line [08:26:42]written 0, free lines is 3605 [08:26:42]MH_Cut [08:26:42]Write to MH i2c: D1 01 00 31 09 01 0C [08:26:42]Write i2c OK [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: D1 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: D1 01 00 [08:26:42]MH_I2C_Read... [08:26:42]Read from MH i2c: D1 01 00 31 09 00 0B [08:26:42]Write to MH i2c: 01 00 00 32 09 3B [08:26:42]Write i2c OK [08:26:42]MH_I2C_Read... [08:26:42]*** Cut start [08:26:42]*** Purtial cut [08:26:42]*** Stage 1: CUTSNS_PIN = 1 [08:26:43]Read from MH i2c: 01 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: 01 07 00 [08:26:43]MH_I2C_Read... [08:26:43]*** Stop cut motor [08:26:43]*** Cut end [08:26:43]Read from MH i2c: 01 07 00 32 09 00 00 00 00 00 FF 0F 50 [08:26:43]process_action print_text done [08:26:43]requested_data is exist [08:26:43]produce_requested_data [08:26:43]requested_item fm.sn is exist - process it [08:26:43]wFMCommunicate request_size=4 [08:26:43]MH_SAM_APDU [08:26:43]CAPDU: 80 11 00 00 [08:26:43]Write to MH i2c: E2 08 00 33 09 80 11 00 00 00 00 00 00 B6 [08:26:43]Write i2c OK [08:26:43]MH_I2C_Read... [08:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:43]Read from MH i2c: E2 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 17 00 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 17 00 33 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0B [08:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:26:43]wFMCommunicate OK [08:26:43]requested_item fd.num is exist - process it [08:26:43]SAM_PROTO_GetFieldsCounters [08:26:43]wFMCommunicate request_size=4 [08:26:43]MH_SAM_APDU [08:26:43]CAPDU: 80 13 00 00 [08:26:43]Write to MH i2c: E2 08 00 34 09 80 13 00 00 00 00 00 00 B9 [08:26:43]Write i2c OK [08:26:43]MH_I2C_Read... [08:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:43]Read from MH i2c: E2 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 62 00 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 62 00 34 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AA 13 01 00 0E 04 04 00 D1 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 6F [08:26: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AA 13 01 00 0E 04 04 00 D1 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 [08:26:43]wFMCommunicate OK [08:26:43]SAM_PROTO_GetFieldsCounters done [08:26:43]requested_item shift.num is exist - process it [08:26:43]requested_item shift.opened is exist - process it [08:26:43]req_shift_opened [08:26:43]FM_GetShiftState [08:26:43]SAM_PROTO_GetShiftState [08:26:43]wFMCommunicate request_size=4 [08:26:43]MH_SAM_APDU [08:26:43]CAPDU: 80 13 01 00 [08:26:43]Write to MH i2c: E2 08 00 35 09 80 13 01 00 00 00 00 00 BB [08:26:43]Write i2c OK [08:26:43]MH_I2C_Read... [08:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:43]Read from MH i2c: E2 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 0E 00 [08:26:43]MH_I2C_Read... [08:26:43]Read from MH i2c: E2 0E 00 35 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 A8 [08:26:43]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [08:26:43]wFMCommunicate OK [08:26:43]SAM_PROTO_GetShiftState done [08:26:43]FM_GetShiftState done [08:26:43]req_shift_opened done [08:26:43]requested_item shift.open_date is exist - process it [08:26:43]req_shift_open_date [08:26:43]req_shift_open_date done [08:26:43]produce_requested_data done [08:26:43]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70570,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [08:26:43]process_action_free print_text [08:26:43]json_value_free [08:26:43]json_value_free done [08:26:43]process_json_proto returns [08:26:43]Send response to host [08:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70570,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [08:26:43]free response buf [08:26:43]execute_script done [08:26:43]execute_script returns [08:26:43]free content buf [08:26:43]Sock 9.Close socket [08:26:43]Sock 9.Thread stoped [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:18]accept exits with 8 [08:49:18]New connection [08:49:18]New thread 3067321700 created [08:49:18]Thread 3067465060 joined [08:49:18]Waiting for new connection... [08:49:18] Sock 8.Parse request [08:49:18]Sock 8.Check first char [08:49:18]Sock 8.First char is OK [08:49:18]request: POST /json_proto HTTP/1.0 [08:49:18]Method: POST [08:49:18]URL: /json_proto [08:49:18]Method is POST - this is cgi request [08:49:18]url: /json_proto [08:49:18]query_string will be loaded in cgi processing [08:49:18]execute_cgi json_proto POST (null) [08:49:18]execute_cgi path=json_proto method=POST [08:49:18]POST find Content-Length [08:49:18]Host: 172.17.58.67:8080 [08:49:18]Content-Length: 679 [08:49:18]Content-Type: application/json [08:49:18] [08:49:18]POST finish read [08:49:18]Found Content-Length = 679 [08:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 53.770, "sum" : 4000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:18]execute_script... [08:49:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 53.770, "sum" : 4000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:18]POST & json_proto [08:49:18]process_json_proto [08:49:18]json parsed OK: [08:49:18]protocol is kg_v1.0 [08:49:18]action value=close_receipt [08:49:18]process_action close_receipt [08:49:18]cmd_close_receipt [08:49:18]MH_GetDate [08:49:18]Write to MH i2c: F0 00 00 36 09 2E [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: F0 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: F0 09 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: F0 09 00 36 09 00 91 CC B9 66 94 51 63 64 5F [08:49:18]GetLastDocTimeStamp 1723449384 [08:49:18]current date 1723452561 [08:49:18]FM_GetShiftState [08:49:18]SAM_PROTO_GetShiftState [08:49:18]wFMCommunicate request_size=4 [08:49:18]MH_SAM_APDU [08:49:18]CAPDU: 80 13 01 00 [08:49:18]Write to MH i2c: E2 08 00 37 09 80 13 01 00 00 00 00 00 BD [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 0E 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 0E 00 37 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 AA [08:49:18]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [08:49:18]wFMCommunicate OK [08:49:18]SAM_PROTO_GetShiftState done [08:49:18]FM_GetShiftState done [08:49:18]opened in 1723423336 [08:49:18]opened+sec_in_day 1723509736 [08:49:18]quantity*price = 400048 [08:49:18]sum+1 = 400050 [08:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.49 ИТОГО: 4000.00 ВнеÑено: 4000.00 СДÐЧÐ: 0.00 ÐСП 1% : 35.40 ÐДС 12% : 424.83 Ðаличными: 4000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 3 12.08.2024 08:49 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70571 ФПД: 154341536430478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T084921&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70571&fm=154341536430478&tin=02508201610067®Number=0000000000090913&sum=400000 [08:49:19]StoreToDocumentArchive [08:49:19]shift 465 fd 70571 [08:49:19]save to /storage/0465/doc_00070571 [08:49:19]save last doc name /storage/0465/doc_00070571 to /storage/kkm_last_doc_name [08:49:19]save OK [08:49:19]Clear old archive folders... [08:49:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:49:19]tlvbuf is 00B62470 [08:49:19]SAM_PROTO_ClearQueue [08:49:19]wFMCommunicate request_size=4 [08:49:19]MH_SAM_APDU [08:49:19]CAPDU: 80 09 00 00 [08:49:19]Write to MH i2c: E2 08 00 44 09 80 09 00 00 00 00 00 00 BF [08:49:19]Write i2c OK [08:49:19]MH_I2C_Read... [08:49:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:19]Read from MH i2c: E2 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 03 00 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [08:49:19]RAPDU: 90 00 [08:49:19]wFMCommunicate OK [08:49:19]SAM_PROTO_ClearQueue done [08:49:19]KKMCreateOFDPacket [08:49:19]OFDProtocolAddRootSTLVToBuf [08:49:19]FM_MakeSignedData [08:49:19]FM_MakeSignedData [08:49:19]SAM_PROTO_SignData [08:49:19]wFMCommunicate request_size=4 [08:49:19]MH_SAM_APDU [08:49:19]CAPDU: 80 0D 01 02 [08:49:19]Write to MH i2c: E2 08 00 45 09 80 0D 01 02 00 00 00 00 C7 [08:49:19]Write i2c OK [08:49:19]MH_I2C_Read... [08:49:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:19]Read from MH i2c: E2 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 03 00 [08:49:19]MH_I2C_Read... [08:49:19]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [08:49:19]RAPDU: 90 00 [08:49:19]wFMCommunicate OK [08:49:19]wFMCommunicate request_size=255 [08:49:19]MH_SAM_APDU [08:49:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 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 03 00 00 00 F4 03 04 00 91 CC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AB 13 01 00 35 04 06 00 8C 5F 70 73 [08:49:19]Write to MH i2c: E2 02 01 46 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 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 03 00 00 00 F4 03 04 00 91 CC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AB 13 01 00 35 04 06 00 8C 5F 70 73 00 00 94 [08:49:19]Write i2c OK [08:49:19]MH_I2C_Read... [08:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:20]Read from MH i2c: E2 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 03 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [08:49:20]RAPDU: 90 00 [08:49:20]wFMCommunicate OK [08:49:20]wFMCommunicate request_size=7 [08:49:20]MH_SAM_APDU [08:49:20]CAPDU: 80 0D 02 02 02 F9 8E [08:49:20]Write to MH i2c: E2 0A 00 47 09 80 0D 02 02 02 00 F9 8E 00 00 55 [08:49:20]Write i2c OK [08:49:20]MH_I2C_Read... [08:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:20]Read from MH i2c: E2 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 03 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 03 00 47 09 00 90 00 C4 [08:49:20]RAPDU: 90 00 [08:49:20]wFMCommunicate OK [08:49:20]wFMCommunicate request_size=4 [08:49:20]MH_SAM_APDU [08:49:20]CAPDU: 80 0D 03 02 [08:49:20]Write to MH i2c: E2 08 00 48 09 80 0D 03 02 00 00 00 00 CC [08:49:20]Write i2c OK [08:49:20]MH_I2C_Read... [08:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:20]Read from MH i2c: E2 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 0B 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 0B 00 48 09 00 4C EA A4 1D AA B0 AD 28 90 00 F3 [08:49:20]RAPDU: 4C EA A4 1D AA B0 AD 28 90 00 [08:49:20]wFMCommunicate OK [08:49:20]SAM_PROTO_SignData done [08:49:20]FM_MakeSignedData done [08:49:20]CreateOFDProtocolMessage [08:49:20]wFMCommunicate request_size=4 [08:49:20]MH_SAM_APDU [08:49:20]CAPDU: 80 11 00 00 [08:49:20]Write to MH i2c: E2 08 00 49 09 80 11 00 00 00 00 00 00 CC [08:49:20]Write i2c OK [08:49:20]MH_I2C_Read... [08:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:20]Read from MH i2c: E2 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 17 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 17 00 49 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 21 [08:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:49:20]wFMCommunicate OK [08:49:20]CreateOFDProtocolMessage done [08:49:20]OFDSenderStorePacket 70571 [08:49:20]StoreOFDPacket docnum=70571 [08:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 68 C1 04 01 45 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 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 03 00 00 00 F4 03 04 00 91 CC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AB 13 01 00 35 04 06 00 8C 5F 70 73 F9 8E 4C EA A4 1D AA B0 AD 28 [08:49:20]CheckFolder [08:49:20]dirname=/storage/ofd_packets [08:49:20]CheckFolder done [08:49:20]ProducePacketName [08:49:20]name=ofd_packets/00070571 [08:49:20]NVStorageSaveData ofd_packets/00070571 [08:49:20]File name is /storage/ofd_packets/00070571 [08:49:20]Write 298 bytes [08:49:20]NVStorageSaveData done [08:49:20]OFDSenderStorePacket done [08:49:20]KKMCreateOFDPacket done [08:49:20]NVStorageSaveData kkm_last_timestamp [08:49:20]File name is /storage/kkm_last_timestamp [08:49:20]Write 4 bytes [08:49:20]NVStorageSaveData done [08:49:20]ExternCall_PrintAddStr [08:49:20]wPrintStart [08:49:20]Write to MH i2c: 01 00 00 4A 09 53 [08:49:20]Write i2c OK [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: 01 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: 01 07 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: 01 07 00 4A 09 00 00 00 00 00 FF 0F 68 [08:49:20]RasterBufferAndPrint [08:49:20]line Счет N : (1)141004 [08:49:20]line ИÐÐ: 02508201610067 [08:49:20]line Контрольно-КаÑÑовый Чек [08:49:20]line ПРОДÐЖР[08:49:20]line ТРК (МРК, ГÐК) : 14 [08:49:20]line Товар: 2710194210 [08:49:20]line ДТ-К-5 [08:49:20]line 53.770 * 74.40 [08:49:20]line = 4000.49 [08:49:20]line ÐДС 12% ÐСП 1% [08:49:20]line > о реализуемом товаре [08:49:20]line ОКРУГЛЕÐИЕ: -0.49 [08:49:20]line ИТОГО: 4000.00 [08:49:20]line ВнеÑено: 4000.00 [08:49:20]line СДÐЧÐ: 0.00 [08:49:20]line ÐСП 1% : 35.40 [08:49:20]line ÐДС 12% : 424.83 [08:49:20]line Ðаличными: 4000.00 [08:49:20]line Безнал.: 0.00 [08:49:20]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [08:49:20]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [08:49:20]line СÐО: Общий режим [08:49:20]line Чек 3 12.08.2024 08:49 [08:49:20]line Смена: 465 ФФД: 1.0 [08:49:20]line ЗÐМ: 0300000140 [08:49:20]line РÐМ: 0000000000090913 [08:49:20]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:49:20]line ФМ: 0000000000874915 [08:49:20]line ФД: 70571 [08:49:20]line ФПД: 154341536430478 [08:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T084921&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70571&fm=154341536430478&tin=02508201610067®Number=0000000000090913&sum=400000 [08:49:20]OFD Sender: Processing packet 70571 [packets to send 67, broken 66] [08:49:20]ProducePacketName [08:49:20]name=ofd_packets/00070571 [08:49:20]OFD Sender: To server: ‡•öpG, [08:49:20]CommunicateWithHost lk.salyk.kg:30040 [08:49:20]ConnectInit lk.salyk.kg [08:49:20]written 0, free lines is 4095 [08:49:20]Connected sock=11 [08:49:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 68 C1 04 01 45 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 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 03 00 00 00 F4 03 04 00 91 CC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AB 13 01 00 35 04 06 00 8C 5F 70 73 F9 8E 4C EA A4 1D AA B0 AD 28 [08:49:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 D7 9A 47 00 BD 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 39 31 35 10 04 04 00 AB 13 01 00 F4 03 04 00 7F 73 B9 66 B6 04 01 00 00 DD 9C 2D EF 7D 72 61 6B [08:49:20]CommunicateWithHost err = 0 [08:49:20]CheckOFDResponse [08:49:20]1017 (14) - 77093643461234 [08:49:20]1041 (16) - 0000000000874915 [08:49:20]1040 (4) - 70571 [08:49:20]1012 (4) - 12.08.2024 02:29 [08:49:20]1206 (1) - 0 [08:49:20]OFD Sender: Remove packet 70571 [08:49:20]ProducePacketName [08:49:20]name=ofd_packets/00070571 [08:49:20]NVStorageDeleteData [08:49:21]Write to MH i2c: 01 00 00 75 09 7E [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: 01 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: 01 07 00 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: 01 07 00 75 09 00 00 00 00 00 D8 0C 69 [08:49:21]RasterBufferAndPrint [08:49:21]line [08:49:21]line [08:49:21]line [08:49:21]line [08:49:21]line [08:49:21]written 0, free lines is 3294 [08:49:21]MH_Cut [08:49:21]Write to MH i2c: D1 01 00 7C 09 01 57 [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: D1 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: D1 01 00 [08:49:21]MH_I2C_Read... [08:49:21]Read from MH i2c: D1 01 00 7C 09 00 56 [08:49:21]Write to MH i2c: 01 00 00 7D 09 86 [08:49:21]Write i2c OK [08:49:21]MH_I2C_Read... [08:49:21]OFD Sender: No OFD packet to send [08:49:21]*** Cut start [08:49:21]*** Purtial cut [08:49:21]*** CUTSNS_PIN = 0 [08:49:21]*** Stage 1: CUTSNS_PIN = 1 [08:49:23]Read from MH i2c: 01 [08:49:23]MH_I2C_Read... [08:49:23]*** Stop cut motor [08:49:23]*** Cut end [08:49:23]Read from MH i2c: 01 07 00 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: 01 07 00 7D 09 00 00 00 00 00 FF 0F 9B [08:49:23]process_action close_receipt done [08:49:23]requested_data is exist [08:49:23]produce_requested_data [08:49:23]requested_item fm.sn is exist - process it [08:49:23]wFMCommunicate request_size=4 [08:49:23]MH_SAM_APDU [08:49:23]CAPDU: 80 11 00 00 [08:49:23]Write to MH i2c: E2 08 00 7E 09 80 11 00 00 00 00 00 00 01 [08:49:23]Write i2c OK [08:49:23]MH_I2C_Read... [08:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:23]Read from MH i2c: E2 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: E2 17 00 [08:49:23]MH_I2C_Read... [08:49:23]Read from MH i2c: E2 17 00 7E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 56 [08:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [08:49:23]wFMCommunicate OK [08:49:23]requested_item fd.num is exist - process it [08:49:23]SAM_PROTO_GetFieldsCounters [08:49:23]wFMCommunicate request_size=4 [08:49:23]MH_SAM_APDU [08:49:23]CAPDU: 80 13 00 00 [08:49:23]Write to MH i2c: E2 08 00 7F 09 80 13 00 00 00 00 00 00 04 [08:49:23]Write i2c OK [08:49:23]MH_I2C_Read... [08:49:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:24]Read from MH i2c: E2 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 62 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 62 00 7F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AB 13 01 00 0E 04 04 00 D1 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 BE [08:49: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AB 13 01 00 0E 04 04 00 D1 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 [08:49:24]wFMCommunicate OK [08:49:24]SAM_PROTO_GetFieldsCounters done [08:49:24]requested_item shift.num is exist - process it [08:49:24]requested_item shift.opened is exist - process it [08:49:24]req_shift_opened [08:49:24]FM_GetShiftState [08:49:24]SAM_PROTO_GetShiftState [08:49:24]wFMCommunicate request_size=4 [08:49:24]MH_SAM_APDU [08:49:24]CAPDU: 80 13 01 00 [08:49:24]Write to MH i2c: E2 08 00 80 09 80 13 01 00 00 00 00 00 06 [08:49:24]Write i2c OK [08:49:24]MH_I2C_Read... [08:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:24]Read from MH i2c: E2 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 0E 00 [08:49:24]MH_I2C_Read... [08:49:24]Read from MH i2c: E2 0E 00 80 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F3 [08:49:24]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [08:49:24]wFMCommunicate OK [08:49:24]SAM_PROTO_GetShiftState done [08:49:24]FM_GetShiftState done [08:49:24]req_shift_opened done [08:49:24]requested_item shift.open_date is exist - process it [08:49:24]req_shift_open_date [08:49:24]req_shift_open_date done [08:49:24]produce_requested_data done [08:49:24]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70571,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [08:49:24]process_action_free close_receipt [08:49:24]json_value_free [08:49:24]json_value_free done [08:49:24]process_json_proto returns [08:49:24]Send response to host [08:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70571,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [08:49:24]free response buf [08:49:24]execute_script done [08:49:24]execute_script returns [08:49:24]free content buf [08:49:24]Sock 8.Close socket [08:49:24]Sock 8.Thread stoped [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:25]accept exits with 9 [09:01:25]New connection [09:01:25]New thread 3067465060 created [09:01:25]Thread 3067321700 joined [09:01:25]Waiting for new connection... [09:01:25] Sock 9.Parse request [09:01:25]Sock 9.Check first char [09:01:25]Sock 9.First char is OK [09:01:25]request: POST /json_proto HTTP/1.0 [09:01:25]Method: POST [09:01:25]URL: /json_proto [09:01:25]Method is POST - this is cgi request [09:01:25]url: /json_proto [09:01:25]query_string will be loaded in cgi processing [09:01:25]execute_cgi json_proto POST (null) [09:01:25]execute_cgi path=json_proto method=POST [09:01:25]POST find Content-Length [09:01:25]Host: 172.17.58.67:8080 [09:01:25]Content-Length: 819 [09:01:25]Content-Type: application/json [09:01:25] [09:01:25]POST finish read [09:01:25]Found Content-Length = 819 [09:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:25]execute_script... [09:01:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:25]POST & json_proto [09:01:25]process_json_proto [09:01:25]json parsed OK: [09:01:25]protocol is kg_v1.0 [09:01:25]action value=close_receipt [09:01:25]process_action close_receipt [09:01:25]cmd_close_receipt [09:01:25]MH_GetDate [09:01:25]Write to MH i2c: F0 00 00 81 09 79 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: F0 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: F0 09 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: F0 09 00 81 09 00 68 CF B9 66 94 51 63 64 84 [09:01:25]GetLastDocTimeStamp 1723452561 [09:01:25]current date 1723453288 [09:01:25]FM_GetShiftState [09:01:25]SAM_PROTO_GetShiftState [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 13 01 00 [09:01:25]Write to MH i2c: E2 08 00 82 09 80 13 01 00 00 00 00 00 08 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 82 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F5 [09:01:25]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:01:25]wFMCommunicate OK [09:01:25]SAM_PROTO_GetShiftState done [09:01:25]FM_GetShiftState done [09:01:25]opened in 1723423336 [09:01:25]opened+sec_in_day 1723509736 [09:01:25]quantity*price = 100036 [09:01:25]sum+1 = 100037 [09:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 4 12.08.2024 09:01 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70572 ФПД: 234918525789550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T090128&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70572&fm=234918525789550&tin=02508201610067®Number=0000000000090913&sum=100036 [09:01:26]StoreToDocumentArchive [09:01:26]shift 465 fd 70572 [09:01:26]save to /storage/0465/doc_00070572 [09:01:26]save last doc name /storage/0465/doc_00070572 to /storage/kkm_last_doc_name [09:01:26]save OK [09:01:26]Clear old archive folders... [09:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:26]tlvbuf is 00B43E50 [09:01:26]SAM_PROTO_ClearQueue [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 09 00 00 [09:01:26]Write to MH i2c: E2 08 00 8F 09 80 09 00 00 00 00 00 00 0A [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [09:01:26]RAPDU: 90 00 [09:01:26]wFMCommunicate OK [09:01:26]SAM_PROTO_ClearQueue done [09:01:26]KKMCreateOFDPacket [09:01:26]OFDProtocolAddRootSTLVToBuf [09:01:26]FM_MakeSignedData [09:01:26]FM_MakeSignedData [09:01:26]SAM_PROTO_SignData [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 0D 01 02 [09:01:26]Write to MH i2c: E2 08 00 90 09 80 0D 01 02 00 00 00 00 12 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:26]Read from MH i2c: E2 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 [09:01:26]MH_I2C_Read... [09:01:26]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [09:01:26]RAPDU: 90 00 [09:01:26]wFMCommunicate OK [09:01:26]wFMCommunicate request_size=255 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 68 CF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AC 13 01 00 35 04 06 00 D5 [09:01:26]Write to MH i2c: E2 02 01 91 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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 68 CF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AC 13 01 00 35 04 06 00 D5 00 00 3B [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 91 09 00 90 00 0E [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=10 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 0D 02 02 05 A8 3B 47 E5 6E [09:01:27]Write to MH i2c: E2 0D 00 92 09 80 0D 02 02 05 00 A8 3B 47 E5 6E 00 00 9C [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]OFD Sender: No OFD packet to send [09:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 92 09 00 90 00 0F [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 0D 03 02 [09:01:27]Write to MH i2c: E2 08 00 93 09 80 0D 03 02 00 00 00 00 17 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0B 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0B 00 93 09 00 82 29 2E BD 25 31 36 7B 90 00 B5 [09:01:27]RAPDU: 82 29 2E BD 25 31 36 7B 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_SignData done [09:01:27]FM_MakeSignedData done [09:01:27]CreateOFDProtocolMessage [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 11 00 00 [09:01:27]Write to MH i2c: E2 08 00 94 09 80 11 00 00 00 00 00 00 17 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 94 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6C [09:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:01:27]wFMCommunicate OK [09:01:27]CreateOFDProtocolMessage done [09:01:27]OFDSenderStorePacket 70572 [09:01:27]StoreOFDPacket docnum=70572 [09:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 5C 84 07 01 49 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 68 CF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AC 13 01 00 35 04 06 00 D5 A8 3B 47 E5 6E 82 29 2E BD 25 31 36 7B [09:01:27]CheckFolder [09:01:27]dirname=/storage/ofd_packets [09:01:27]CheckFolder done [09:01:27]ProducePacketName [09:01:27]name=ofd_packets/00070572 [09:01:27]NVStorageSaveData ofd_packets/00070572 [09:01:27]File name is /storage/ofd_packets/00070572 [09:01:27]Write 301 bytes [09:01:27]NVStorageSaveData done [09:01:27]OFDSenderStorePacket done [09:01:27]KKMCreateOFDPacket done [09:01:27]NVStorageSaveData kkm_last_timestamp [09:01:27]File name is /storage/kkm_last_timestamp [09:01:27]Write 4 bytes [09:01:27]NVStorageSaveData done [09:01:27]ExternCall_PrintAddStr [09:01:27]wPrintStart [09:01:27]Write to MH i2c: 01 00 00 95 09 9E [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 95 09 00 00 00 00 00 FF 0F B3 [09:01:27]RasterBufferAndPrint [09:01:27]line Счет N : (1)141005 [09:01:27]line ИÐÐ: 02508201610067 [09:01:27]line Контрольно-КаÑÑовый Чек [09:01:27]line ПРОДÐЖР[09:01:27]line ТРК (МРК, ГÐК) : 31 [09:01:27]line Товар: 2710124130 [09:01:27]line Ðи-92-К-5 [09:01:27]line 15.180 * 65.90 [09:01:27]line = 1000.36 [09:01:27]line ÐДС 12% ÐСП 1% [09:01:27]line > о реализуемом товаре [09:01:27]line ИТОГО: 1000.36 [09:01:27]line ÐСП 1% : 8.85 [09:01:27]line ÐДС 12% : 106.23 [09:01:27]line Ðаличными: 0.00 [09:01:27]line Безнал.: 1000.36 [09:01:27]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [09:01:27]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [09:01:27]line СÐО: Общий режим [09:01:27]line Чек 4 12.08.2024 09:01 [09:01:27]line Смена: 465 ФФД: 1.0 [09:01:27]line ЗÐМ: 0300000140 [09:01:27]line РÐМ: 0000000000090913 [09:01:27]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:01:27]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [09:01:27]line ФМ: 0000000000874915 [09:01:27]line ФД: 70572 [09:01:27]line ФПД: 234918525789550 [09:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T090128&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70572&fm=234918525789550&tin=02508201610067®Number=0000000000090913&sum=100036 [09:01:27]OFD Sender: Processing packet 70572 [packets to send 67, broken 66] [09:01:27]ProducePacketName [09:01:27]name=ofd_packets/00070572 [09:01:27]OFD Sender: To server: ‡•öpG, [09:01:27]CommunicateWithHost lk.salyk.kg:30040 [09:01:27]ConnectInit lk.salyk.kg [09:01:27]written 0, free lines is 4095 [09:01:27]Connected sock=10 [09:01: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 39 31 35 0F 01 00 00 5C 84 07 01 49 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 68 CF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AC 13 01 00 35 04 06 00 D5 A8 3B 47 E5 6E 82 29 2E BD 25 31 36 7B [09:01:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 EF 0B 47 00 89 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 39 31 35 10 04 04 00 AC 13 01 00 F4 03 04 00 56 76 B9 66 B6 04 01 00 00 47 1A CF A2 57 14 CB 71 [09:01:27]CommunicateWithHost err = 0 [09:01:27]CheckOFDResponse [09:01:27]1017 (14) - 77093643461234 [09:01:27]1041 (16) - 0000000000874915 [09:01:27]1040 (4) - 70572 [09:01:27]1012 (4) - 12.08.2024 02:41 [09:01:27]1206 (1) - 0 [09:01:27]OFD Sender: Remove packet 70572 [09:01:27]ProducePacketName [09:01:27]name=ofd_packets/00070572 [09:01:27]NVStorageDeleteData [09:01:28]Write to MH i2c: 01 00 00 BF 09 C8 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: 01 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: 01 07 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 10 0D EC [09:01:28]RasterBufferAndPrint [09:01:28]line [09:01:28]line [09:01:28]line [09:01:28]line [09:01:28]line [09:01:28]written 0, free lines is 3352 [09:01:28]MH_Cut [09:01:28]Write to MH i2c: D1 01 00 C6 09 01 A1 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: D1 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: D1 01 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: D1 01 00 C6 09 00 A0 [09:01:28]Write to MH i2c: 01 00 00 C7 09 D0 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]OFD Sender: No OFD packet to send [09:01:28]*** Cut start [09:01:28]*** Purtial cut [09:01:28]*** Stage 1: CUTSNS_PIN = 1 [09:01:28]Read from MH i2c: 01 [09:01:29]MH_I2C_Read... [09:01:29]*** Stop cut motor [09:01:29]*** Cut end [09:01:29]Read from MH i2c: 01 07 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: 01 07 00 C7 09 00 00 00 00 00 FF 0F E5 [09:01:29]process_action close_receipt done [09:01:29]requested_data is exist [09:01:29]produce_requested_data [09:01:29]requested_item fm.sn is exist - process it [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 11 00 00 [09:01:29]Write to MH i2c: E2 08 00 C8 09 80 11 00 00 00 00 00 00 4B [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 C8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A0 [09:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:01:29]wFMCommunicate OK [09:01:29]requested_item fd.num is exist - process it [09:01:29]SAM_PROTO_GetFieldsCounters [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 13 00 00 [09:01:29]Write to MH i2c: E2 08 00 C9 09 80 13 00 00 00 00 00 00 4E [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 62 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 62 00 C9 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AC 13 01 00 0E 04 04 00 D1 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 0C [09:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AC 13 01 00 0E 04 04 00 D1 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 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_GetFieldsCounters done [09:01:29]requested_item shift.num is exist - process it [09:01:29]requested_item shift.opened is exist - process it [09:01:29]req_shift_opened [09:01:29]FM_GetShiftState [09:01:29]SAM_PROTO_GetShiftState [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 13 01 00 [09:01:29]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0E 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 3D [09:01:29]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_GetShiftState done [09:01:29]FM_GetShiftState done [09:01:29]req_shift_opened done [09:01:29]requested_item shift.open_date is exist - process it [09:01:29]req_shift_open_date [09:01:29]req_shift_open_date done [09:01:29]produce_requested_data done [09:01:29]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70572,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [09:01:29]process_action_free close_receipt [09:01:29]json_value_free [09:01:29]json_value_free done [09:01:29]process_json_proto returns [09:01:29]Send response to host [09:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70572,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [09:01:29]free response buf [09:01:29]execute_script done [09:01:29]execute_script returns [09:01:29]free content buf [09:01:29]Sock 9.Close socket [09:01:29]Sock 9.Thread stoped [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:48]accept exits with 8 [09:03:48]New connection [09:03:48]New thread 3067321700 created [09:03:48]Thread 3067465060 joined [09:03:48]Waiting for new connection... [09:03:48] Sock 8.Parse request [09:03:48]Sock 8.Check first char [09:03:48]Sock 8.First char is OK [09:03:48]request: POST /json_proto HTTP/1.0 [09:03:48]Method: POST [09:03:48]URL: /json_proto [09:03:48]Method is POST - this is cgi request [09:03:48]url: /json_proto [09:03:48]query_string will be loaded in cgi processing [09:03:48]execute_cgi json_proto POST (null) [09:03:48]execute_cgi path=json_proto method=POST [09:03:48]POST find Content-Length [09:03:48]Host: 172.17.58.67:8080 [09:03:48]Content-Length: 808 [09:03:48]Content-Type: application/json [09:03:48] [09:03:48]POST finish read [09:03:48]Found Content-Length = 808 [09:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:48]execute_script... [09:03:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:48]POST & json_proto [09:03:48]process_json_proto [09:03:48]json parsed OK: [09:03:48]protocol is kg_v1.0 [09:03:48]action value=close_receipt [09:03:48]process_action close_receipt [09:03:48]cmd_close_receipt [09:03:48]MH_GetDate [09:03:48]Write to MH i2c: F0 00 00 CB 09 C3 [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: F0 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: F0 09 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: F0 09 00 CB 09 00 F7 CF B9 66 94 51 63 64 5D [09:03:48]GetLastDocTimeStamp 1723453288 [09:03:48]current date 1723453431 [09:03:48]FM_GetShiftState [09:03:48]SAM_PROTO_GetShiftState [09:03:48]wFMCommunicate request_size=4 [09:03:48]MH_SAM_APDU [09:03:48]CAPDU: 80 13 01 00 [09:03:48]Write to MH i2c: E2 08 00 CC 09 80 13 01 00 00 00 00 00 52 [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:48]Read from MH i2c: E2 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 0E 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 0E 00 CC 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 3F [09:03:48]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:03:48]wFMCommunicate OK [09:03:48]SAM_PROTO_GetShiftState done [09:03:48]FM_GetShiftState done [09:03:48]opened in 1723423336 [09:03:48]opened+sec_in_day 1723509736 [09:03:48]quantity*price = 100036 [09:03:48]sum+1 = 100037 [09:03:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 5 12.08.2024 09:03 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70573 ФПД: 102549990005522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T090351&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70573&fm=102549990005522&tin=02508201610067®Number=0000000000090913&sum=100036 [09:03:49]StoreToDocumentArchive [09:03:49]shift 465 fd 70573 [09:03:49]save to /storage/0465/doc_00070573 [09:03:49]save last doc name /storage/0465/doc_00070573 to /storage/kkm_last_doc_name [09:03:49]save OK [09:03:49]Clear old archive folders... [09:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:49]tlvbuf is 00BD19D0 [09:03:49]SAM_PROTO_ClearQueue [09:03:49]wFMCommunicate request_size=4 [09:03:49]MH_SAM_APDU [09:03:49]CAPDU: 80 09 00 00 [09:03:49]Write to MH i2c: E2 08 00 D9 09 80 09 00 00 00 00 00 00 54 [09:03:49]Write i2c OK [09:03:49]MH_I2C_Read... [09:03:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:49]Read from MH i2c: E2 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 03 00 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [09:03:49]RAPDU: 90 00 [09:03:49]wFMCommunicate OK [09:03:49]SAM_PROTO_ClearQueue done [09:03:49]KKMCreateOFDPacket [09:03:49]OFDProtocolAddRootSTLVToBuf [09:03:49]FM_MakeSignedData [09:03:49]FM_MakeSignedData [09:03:49]SAM_PROTO_SignData [09:03:49]wFMCommunicate request_size=4 [09:03:49]MH_SAM_APDU [09:03:49]CAPDU: 80 0D 01 02 [09:03:49]Write to MH i2c: E2 08 00 DA 09 80 0D 01 02 00 00 00 00 5C [09:03:49]Write i2c OK [09:03:49]MH_I2C_Read... [09:03:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:49]Read from MH i2c: E2 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 03 00 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [09:03:49]RAPDU: 90 00 [09:03:49]wFMCommunicate OK [09:03:49]wFMCommunicate request_size=255 [09:03:49]MH_SAM_APDU [09:03: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F7 CF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AD 13 01 00 35 04 06 00 5D [09:03:49]Write to MH i2c: E2 02 01 DB 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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F7 CF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AD 13 01 00 35 04 06 00 5D 00 00 9E [09:03:49]Write i2c OK [09:03:49]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 03 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 03 00 DB 09 00 90 00 58 [09:03:50]RAPDU: 90 00 [09:03:50]wFMCommunicate OK [09:03:50]wFMCommunicate request_size=10 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 0D 02 02 05 44 C7 B9 DB 12 [09:03:50]Write to MH i2c: E2 0D 00 DC 09 80 0D 02 02 05 00 44 C7 B9 DB 12 00 00 1A [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 03 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 03 00 DC 09 00 90 00 59 [09:03:50]RAPDU: 90 00 [09:03:50]wFMCommunicate OK [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 0D 03 02 [09:03:50]Write to MH i2c: E2 08 00 DD 09 80 0D 03 02 00 00 00 00 61 [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 0B 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 0B 00 DD 09 00 00 6D 81 79 51 70 D6 54 90 00 B4 [09:03:50]RAPDU: 00 6D 81 79 51 70 D6 54 90 00 [09:03:50]wFMCommunicate OK [09:03:50]SAM_PROTO_SignData done [09:03:50]FM_MakeSignedData done [09:03:50]CreateOFDProtocolMessage [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 11 00 00 [09:03:50]Write to MH i2c: E2 08 00 DE 09 80 11 00 00 00 00 00 00 61 [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 17 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 17 00 DE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B6 [09:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:03:50]wFMCommunicate OK [09:03:50]CreateOFDProtocolMessage done [09:03:50]OFDSenderStorePacket 70573 [09:03:50]StoreOFDPacket docnum=70573 [09:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 C6 C0 07 01 B4 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F7 CF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AD 13 01 00 35 04 06 00 5D 44 C7 B9 DB 12 00 6D 81 79 51 70 D6 54 [09:03:50]CheckFolder [09:03:50]dirname=/storage/ofd_packets [09:03:50]CheckFolder done [09:03:50]ProducePacketName [09:03:50]name=ofd_packets/00070573 [09:03:50]NVStorageSaveData ofd_packets/00070573 [09:03:50]File name is /storage/ofd_packets/00070573 [09:03:50]Write 301 bytes [09:03:50]NVStorageSaveData done [09:03:50]OFDSenderStorePacket done [09:03:50]KKMCreateOFDPacket done [09:03:50]NVStorageSaveData kkm_last_timestamp [09:03:50]File name is /storage/kkm_last_timestamp [09:03:50]Write 4 bytes [09:03:50]NVStorageSaveData done [09:03:50]ExternCall_PrintAddStr [09:03:50]wPrintStart [09:03:50]Write to MH i2c: 01 00 00 DF 09 E8 [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: 01 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: 01 07 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: 01 07 00 DF 09 00 00 00 00 00 FF 0F FD [09:03:50]RasterBufferAndPrint [09:03:50]line Счет N : (1)141006 [09:03:50]line ИÐÐ: 02508201610067 [09:03:50]line Контрольно-КаÑÑовый Чек [09:03:50]line ПРОДÐЖР[09:03:50]line ТРК (МРК, ГÐК) : 41 [09:03:50]line Товар: 2710124130 [09:03:50]line Ðи-92-К-5 [09:03:50]line 15.180 * 65.90 [09:03:50]line = 1000.36 [09:03:50]line ÐДС 12% ÐСП 1% [09:03:50]line > о реализуемом товаре [09:03:50]line ИТОГО: 1000.36 [09:03:50]line ÐСП 1% : 8.85 [09:03:50]line ÐДС 12% : 106.23 [09:03:50]line Ðаличными: 0.00 [09:03:50]line Безнал.: 1000.36 [09:03:50]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [09:03:50]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [09:03:50]line СÐО: Общий режим [09:03:50]line Чек 5 12.08.2024 09:03 [09:03:50]line Смена: 465 ФФД: 1.0 [09:03:50]line ЗÐМ: 0300000140 [09:03:50]line РÐМ: 0000000000090913 [09:03:50]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:03:50]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [09:03:50]line ФМ: 0000000000874915 [09:03:50]line ФД: 70573 [09:03:50]line ФПД: 102549990005522 [09:03:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T090351&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70573&fm=102549990005522&tin=02508201610067®Number=0000000000090913&sum=100036 [09:03:50]written 0, free lines is 4095 [09:03:50]OFD Sender: Processing packet 70573 [packets to send 67, broken 66] [09:03:50]ProducePacketName [09:03:50]name=ofd_packets/00070573 [09:03:50]OFD Sender: To server: ‡•öpG, [09:03:50]CommunicateWithHost lk.salyk.kg:30040 [09:03:50]ConnectInit lk.salyk.kg [09:03:50]Connected sock=10 [09:03: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 39 31 35 0F 01 00 00 C6 C0 07 01 B4 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 F7 CF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AD 13 01 00 35 04 06 00 5D 44 C7 B9 DB 12 00 6D 81 79 51 70 D6 54 [09:03:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 15 C4 47 00 2A 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AD 13 01 00 F4 03 04 00 E5 76 B9 66 B6 04 01 00 00 E1 EE 42 4B 17 9A A4 33 [09:03:50]CommunicateWithHost err = 0 [09:03:50]CheckOFDResponse [09:03:50]1017 (14) - 77093643461234 [09:03:50]1041 (16) - 0000000000874915 [09:03:50]1040 (4) - 70573 [09:03:50]1012 (4) - 12.08.2024 02:43 [09:03:50]1206 (1) - 0 [09:03:50]OFD Sender: Remove packet 70573 [09:03:50]ProducePacketName [09:03:50]name=ofd_packets/00070573 [09:03:50]NVStorageDeleteData [09:03:51]Write to MH i2c: 01 00 00 09 0A 13 [09:03:51]Write i2c OK [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: 01 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: 01 07 00 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: 01 07 00 09 0A 00 00 00 00 00 0E 0D 35 [09:03:51]RasterBufferAndPrint [09:03:51]line [09:03:51]line [09:03:51]line [09:03:51]line [09:03:51]line [09:03:51]written 0, free lines is 3348 [09:03:51]MH_Cut [09:03:51]Write to MH i2c: D1 01 00 10 0A 01 EC [09:03:51]Write i2c OK [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: D1 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: D1 01 00 [09:03:51]MH_I2C_Read... [09:03:51]Read from MH i2c: D1 01 00 10 0A 00 EB [09:03:51]Write to MH i2c: 01 00 00 11 0A 1B [09:03:51]Write i2c OK [09:03:51]MH_I2C_Read... [09:03:51]OFD Sender: No OFD packet to send [09:03:51]*** Cut start [09:03:51]*** Purtial cut [09:03:51]*** CUTSNS_PIN = 0 [09:03:51]*** Stage 1: CUTSNS_PIN = 1 [09:03:53]Read from MH i2c: 01 [09:03:53]MH_I2C_Read... [09:03:53]*** Stop cut motor [09:03:53]*** Cut end [09:03:53]Read from MH i2c: 01 07 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: 01 07 00 11 0A 00 00 00 00 00 FF 0F 30 [09:03:53]process_action close_receipt done [09:03:53]requested_data is exist [09:03:53]produce_requested_data [09:03:53]requested_item fm.sn is exist - process it [09:03:53]wFMCommunicate request_size=4 [09:03:53]MH_SAM_APDU [09:03:53]CAPDU: 80 11 00 00 [09:03:53]Write to MH i2c: E2 08 00 12 0A 80 11 00 00 00 00 00 00 96 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:53]Read from MH i2c: E2 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 17 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 17 00 12 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EB [09:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:03:53]wFMCommunicate OK [09:03:53]requested_item fd.num is exist - process it [09:03:53]SAM_PROTO_GetFieldsCounters [09:03:53]wFMCommunicate request_size=4 [09:03:53]MH_SAM_APDU [09:03:53]CAPDU: 80 13 00 00 [09:03:53]Write to MH i2c: E2 08 00 13 0A 80 13 00 00 00 00 00 00 99 [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:53]Read from MH i2c: E2 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 62 00 [09:03:53]MH_I2C_Read... [09:03:53]Read from MH i2c: E2 62 00 13 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AD 13 01 00 0E 04 04 00 D1 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 5B [09:03: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AD 13 01 00 0E 04 04 00 D1 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 [09:03:53]wFMCommunicate OK [09:03:53]SAM_PROTO_GetFieldsCounters done [09:03:53]requested_item shift.num is exist - process it [09:03:53]requested_item shift.opened is exist - process it [09:03:53]req_shift_opened [09:03:53]FM_GetShiftState [09:03:53]SAM_PROTO_GetShiftState [09:03:53]wFMCommunicate request_size=4 [09:03:53]MH_SAM_APDU [09:03:53]CAPDU: 80 13 01 00 [09:03:53]Write to MH i2c: E2 08 00 14 0A 80 13 01 00 00 00 00 00 9B [09:03:53]Write i2c OK [09:03:53]MH_I2C_Read... [09:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:54]Read from MH i2c: E2 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 0E 00 [09:03:54]MH_I2C_Read... [09:03:54]Read from MH i2c: E2 0E 00 14 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 88 [09:03:54]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:03:54]wFMCommunicate OK [09:03:54]SAM_PROTO_GetShiftState done [09:03:54]FM_GetShiftState done [09:03:54]req_shift_opened done [09:03:54]requested_item shift.open_date is exist - process it [09:03:54]req_shift_open_date [09:03:54]req_shift_open_date done [09:03:54]produce_requested_data done [09:03:54]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70573,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [09:03:54]process_action_free close_receipt [09:03:54]json_value_free [09:03:54]json_value_free done [09:03:54]process_json_proto returns [09:03:54]Send response to host [09:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70573,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [09:03:54]free response buf [09:03:54]execute_script done [09:03:54]execute_script returns [09:03:54]free content buf [09:03:54]Sock 8.Close socket [09:03:54]Sock 8.Thread stoped [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14: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:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]accept exits with 9 [09:17:47]New connection [09:17:47]New thread 3067465060 created [09:17:47]Thread 3067321700 joined [09:17:47]Waiting for new connection... [09:17:47] Sock 9.Parse request [09:17:47]Sock 9.Check first char [09:17:47]Sock 9.First char is OK [09:17:47]request: POST /json_proto HTTP/1.0 [09:17:47]Method: POST [09:17:47]URL: /json_proto [09:17:47]Method is POST - this is cgi request [09:17:47]url: /json_proto [09:17:47]query_string will be loaded in cgi processing [09:17:47]execute_cgi json_proto POST (null) [09:17:47]execute_cgi path=json_proto method=POST [09:17:47]POST find Content-Length [09:17:47]Host: 172.17.58.67:8080 [09:17:47]Content-Length: 805 [09:17:47]Content-Type: application/json [09:17:47] [09:17:47]POST finish read [09:17:47]Found Content-Length = 805 [09:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:47]execute_script... [09:17: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)141007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:47]POST & json_proto [09:17:47]process_json_proto [09:17:47]json parsed OK: [09:17:47]protocol is kg_v1.0 [09:17:47]action value=close_receipt [09:17:47]process_action close_receipt [09:17:47]cmd_close_receipt [09:17:47]MH_GetDate [09:17:47]Write to MH i2c: F0 00 00 15 0A 0E [09:17:47]Write i2c OK [09:17:47]MH_I2C_Read... [09:17:47]Read from MH i2c: F0 [09:17:47]MH_I2C_Read... [09:17:47]Read from MH i2c: F0 09 00 [09:17:47]MH_I2C_Read... [09:17:47]Read from MH i2c: F0 09 00 15 0A 00 3E D3 B9 66 94 51 63 64 F3 [09:17:47]GetLastDocTimeStamp 1723453431 [09:17:47]current date 1723454270 [09:17:47]FM_GetShiftState [09:17:47]SAM_PROTO_GetShiftState [09:17:47]wFMCommunicate request_size=4 [09:17:47]MH_SAM_APDU [09:17:47]CAPDU: 80 13 01 00 [09:17:47]Write to MH i2c: E2 08 00 16 0A 80 13 01 00 00 00 00 00 9D [09:17:47]Write i2c OK [09:17:47]MH_I2C_Read... [09:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:47]Read from MH i2c: E2 [09:17:47]MH_I2C_Read... [09:17:47]Read from MH i2c: E2 0E 00 [09:17:47]MH_I2C_Read... [09:17:47]Read from MH i2c: E2 0E 00 16 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 8A [09:17:47]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:17:47]wFMCommunicate OK [09:17:47]SAM_PROTO_GetShiftState done [09:17:47]FM_GetShiftState done [09:17:47]opened in 1723423336 [09:17:47]opened+sec_in_day 1723509736 [09:17:47]quantity*price = 50018 [09:17:47]sum+1 = 50019 [09:17:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 6 12.08.2024 09:17 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70574 ФПД: 92979944826348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T091750&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70574&fm=92979944826348&tin=02508201610067®Number=0000000000090913&sum=50018 [09:17:48]StoreToDocumentArchive [09:17:48]shift 465 fd 70574 [09:17:48]save to /storage/0465/doc_00070574 [09:17:48]save last doc name /storage/0465/doc_00070574 to /storage/kkm_last_doc_name [09:17:48]save OK [09:17:48]Clear old archive folders... [09:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:48]tlvbuf is 00B62A00 [09:17:48]SAM_PROTO_ClearQueue [09:17:48]wFMCommunicate request_size=4 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 09 00 00 [09:17:48]Write to MH i2c: E2 08 00 23 0A 80 09 00 00 00 00 00 00 9F [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:48]Read from MH i2c: E2 03 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 23 0A 00 90 00 A1 [09:17:48]RAPDU: 90 00 [09:17:48]wFMCommunicate OK [09:17:48]SAM_PROTO_ClearQueue done [09:17:48]KKMCreateOFDPacket [09:17:48]OFDProtocolAddRootSTLVToBuf [09:17:48]FM_MakeSignedData [09:17:48]FM_MakeSignedData [09:17:48]SAM_PROTO_SignData [09:17:48]wFMCommunicate request_size=4 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 0D 01 02 [09:17:48]Write to MH i2c: E2 08 00 24 0A 80 0D 01 02 00 00 00 00 A7 [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [09:17:48]RAPDU: 90 00 [09:17:48]wFMCommunicate OK [09:17:48]wFMCommunicate request_size=255 [09:17:48]MH_SAM_APDU [09:17: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 3E D3 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AE 13 01 00 35 04 06 00 54 [09:17:48]Write to MH i2c: E2 02 01 25 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 3E D3 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AE 13 01 00 35 04 06 00 54 00 00 67 [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 25 0A 00 90 00 A3 [09:17:48]RAPDU: 90 00 [09:17:48]wFMCommunicate OK [09:17:48]wFMCommunicate request_size=10 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 0D 02 02 05 90 94 95 25 EC [09:17:48]Write to MH i2c: E2 0D 00 26 0A 80 0D 02 02 05 00 90 94 95 25 EC 00 00 7E [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 03 00 26 0A 00 90 00 A4 [09:17:48]RAPDU: 90 00 [09:17:48]wFMCommunicate OK [09:17:48]wFMCommunicate request_size=4 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 0D 03 02 [09:17:48]Write to MH i2c: E2 08 00 27 0A 80 0D 03 02 00 00 00 00 AC [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 0B 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 0B 00 27 0A 00 99 7B 89 94 7F B5 9C 27 90 00 D5 [09:17:48]RAPDU: 99 7B 89 94 7F B5 9C 27 90 00 [09:17:48]wFMCommunicate OK [09:17:48]SAM_PROTO_SignData done [09:17:48]FM_MakeSignedData done [09:17:48]CreateOFDProtocolMessage [09:17:48]wFMCommunicate request_size=4 [09:17:48]MH_SAM_APDU [09:17:48]CAPDU: 80 11 00 00 [09:17:48]Write to MH i2c: E2 08 00 28 0A 80 11 00 00 00 00 00 00 AC [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:48]Read from MH i2c: E2 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 17 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: E2 17 00 28 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 01 [09:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:17:48]wFMCommunicate OK [09:17:48]CreateOFDProtocolMessage done [09:17:48]OFDSenderStorePacket 70574 [09:17:48]StoreOFDPacket docnum=70574 [09:17:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 11 F9 07 01 15 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 3E D3 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AE 13 01 00 35 04 06 00 54 90 94 95 25 EC 99 7B 89 94 7F B5 9C 27 [09:17:48]CheckFolder [09:17:48]dirname=/storage/ofd_packets [09:17:48]CheckFolder done [09:17:48]ProducePacketName [09:17:48]name=ofd_packets/00070574 [09:17:48]NVStorageSaveData ofd_packets/00070574 [09:17:48]File name is /storage/ofd_packets/00070574 [09:17:48]Write 301 bytes [09:17:48]NVStorageSaveData done [09:17:48]OFDSenderStorePacket done [09:17:48]KKMCreateOFDPacket done [09:17:48]NVStorageSaveData kkm_last_timestamp [09:17:48]File name is /storage/kkm_last_timestamp [09:17:48]Write 4 bytes [09:17:48]NVStorageSaveData done [09:17:48]ExternCall_PrintAddStr [09:17:48]wPrintStart [09:17:48]Write to MH i2c: 01 00 00 29 0A 33 [09:17:48]Write i2c OK [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: 01 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: 01 07 00 [09:17:48]MH_I2C_Read... [09:17:48]Read from MH i2c: 01 07 00 29 0A 00 00 00 00 00 FF 0F 48 [09:17:48]RasterBufferAndPrint [09:17:48]line Счет N : (1)141007 [09:17:48]line ИÐÐ: 02508201610067 [09:17:48]line Контрольно-КаÑÑовый Чек [09:17:48]line ПРОДÐЖР[09:17:48]line ТРК (МРК, ГÐК) : 31 [09:17:48]line Товар: 2710124130 [09:17:48]line Ðи-92-К-5 [09:17:48]line 7.590 * 65.90 [09:17:48]line = 500.18 [09:17:48]line ÐДС 12% ÐСП 1% [09:17:48]line > о реализуемом товаре [09:17:48]line ИТОГО: 500.18 [09:17:48]line ÐСП 1% : 4.43 [09:17:48]line ÐДС 12% : 53.12 [09:17:48]line Ðаличными: 0.00 [09:17:48]line Безнал.: 500.18 [09:17:48]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [09:17:48]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [09:17:48]line СÐО: Общий режим [09:17:48]line Чек 6 12.08.2024 09:17 [09:17:48]line Смена: 465 ФФД: 1.0 [09:17:48]line ЗÐМ: 0300000140 [09:17:48]line РÐМ: 0000000000090913 [09:17:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:17:48]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [09:17:48]line ФМ: 0000000000874915 [09:17:48]line ФД: 70574 [09:17:48]line ФПД: 92979944826348 [09:17:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T091750&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70574&fm=92979944826348&tin=02508201610067®Number=0000000000090913&sum=50018 [09:17:49]OFD Sender: Processing packet 70574 [packets to send 67, broken 66] [09:17:49]ProducePacketName [09:17:49]name=ofd_packets/00070574 [09:17:49]OFD Sender: To server: ‡•öpG, [09:17:49]CommunicateWithHost lk.salyk.kg:30040 [09:17:49]ConnectInit lk.salyk.kg [09:17:49]written 0, free lines is 4095 [09:17:49]Connected sock=10 [09:17: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 39 31 35 0F 01 00 00 11 F9 07 01 15 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 3E D3 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AE 13 01 00 35 04 06 00 54 90 94 95 25 EC 99 7B 89 94 7F B5 9C 27 [09:17:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A3 3C 47 00 F8 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AE 13 01 00 F4 03 04 00 2B 7A B9 66 B6 04 01 00 00 6D B9 17 B3 E3 15 D1 6F [09:17:49]CommunicateWithHost err = 0 [09:17:49]CheckOFDResponse [09:17:49]1017 (14) - 77093643461234 [09:17:49]1041 (16) - 0000000000874915 [09:17:49]1040 (4) - 70574 [09:17:49]1012 (4) - 12.08.2024 02:57 [09:17:49]1206 (1) - 0 [09:17:49]OFD Sender: Remove packet 70574 [09:17:49]ProducePacketName [09:17:49]name=ofd_packets/00070574 [09:17:49]NVStorageDeleteData [09:17:49]Write to MH i2c: 01 00 00 53 0A 5D [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: 01 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: 01 07 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: 01 07 00 53 0A 00 00 00 00 00 F4 0C 64 [09:17:49]RasterBufferAndPrint [09:17:49]line [09:17:49]line [09:17:49]line [09:17:49]line [09:17:49]line [09:17:49]written 0, free lines is 3322 [09:17:49]MH_Cut [09:17:49]Write to MH i2c: D1 01 00 5A 0A 01 36 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: D1 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: D1 01 00 [09:17:49]MH_I2C_Read... [09:17:49]Read from MH i2c: D1 01 00 5A 0A 00 35 [09:17:49]Write to MH i2c: 01 00 00 5B 0A 65 [09:17:49]Write i2c OK [09:17:49]MH_I2C_Read... [09:17:49]OFD Sender: No OFD packet to send [09:17:50]*** Cut start [09:17:50]*** Purtial cut [09:17:50]*** Stage 1: CUTSNS_PIN = 1 [09:17:50]Read from MH i2c: 01 [09:17:50]MH_I2C_Read... [09:17:50]*** Stop cut motor [09:17:50]*** Cut end [09:17:50]Read from MH i2c: 01 07 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: 01 07 00 5B 0A 00 00 00 00 00 FF 0F 7A [09:17:50]process_action close_receipt done [09:17:50]requested_data is exist [09:17:50]produce_requested_data [09:17:50]requested_item fm.sn is exist - process it [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 11 00 00 [09:17:50]Write to MH i2c: E2 08 00 5C 0A 80 11 00 00 00 00 00 00 E0 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 17 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 17 00 5C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 35 [09:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:17:50]wFMCommunicate OK [09:17:50]requested_item fd.num is exist - process it [09:17:50]SAM_PROTO_GetFieldsCounters [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 13 00 00 [09:17:50]Write to MH i2c: E2 08 00 5D 0A 80 13 00 00 00 00 00 00 E3 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 62 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 62 00 5D 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AE 13 01 00 0E 04 04 00 D1 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 A9 [09:17: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AE 13 01 00 0E 04 04 00 D1 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 [09:17:50]wFMCommunicate OK [09:17:50]SAM_PROTO_GetFieldsCounters done [09:17:50]requested_item shift.num is exist - process it [09:17:50]requested_item shift.opened is exist - process it [09:17:50]req_shift_opened [09:17:50]FM_GetShiftState [09:17:50]SAM_PROTO_GetShiftState [09:17:50]wFMCommunicate request_size=4 [09:17:50]MH_SAM_APDU [09:17:50]CAPDU: 80 13 01 00 [09:17:50]Write to MH i2c: E2 08 00 5E 0A 80 13 01 00 00 00 00 00 E5 [09:17:50]Write i2c OK [09:17:50]MH_I2C_Read... [09:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:50]Read from MH i2c: E2 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 0E 00 [09:17:50]MH_I2C_Read... [09:17:50]Read from MH i2c: E2 0E 00 5E 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D2 [09:17:50]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:17:50]wFMCommunicate OK [09:17:50]SAM_PROTO_GetShiftState done [09:17:50]FM_GetShiftState done [09:17:50]req_shift_opened done [09:17:50]requested_item shift.open_date is exist - process it [09:17:50]req_shift_open_date [09:17:50]req_shift_open_date done [09:17:50]produce_requested_data done [09:17:50]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70574,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [09:17:50]process_action_free close_receipt [09:17:50]json_value_free [09:17:50]json_value_free done [09:17:50]process_json_proto returns [09:17:50]Send response to host [09:17:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70574,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [09:17:50]free response buf [09:17:50]execute_script done [09:17:50]execute_script returns [09:17:50]free content buf [09:17:50]Sock 9.Close socket [09:17:50]Sock 9.Thread stoped [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:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]accept exits with 8 [09:21:09]New connection [09:21:09]New thread 3067321700 created [09:21:09]Thread 3067465060 joined [09:21:09]Waiting for new connection... [09:21:09] Sock 8.Parse request [09:21:09]Sock 8.Check first char [09:21:09]Sock 8.First char is OK [09:21:09]request: POST /json_proto HTTP/1.0 [09:21:09]Method: POST [09:21:09]URL: /json_proto [09:21:09]Method is POST - this is cgi request [09:21:09]url: /json_proto [09:21:09]query_string will be loaded in cgi processing [09:21:09]execute_cgi json_proto POST (null) [09:21:09]execute_cgi path=json_proto method=POST [09:21:09]POST find Content-Length [09:21:09]Host: 172.17.58.67:8080 [09:21:09]Content-Length: 1189 [09:21:09]Content-Type: application/json [09:21:09] [09:21:09]POST finish read [09:21:09]Found Content-Length = 1189 [09:21:09]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141008\u000A12.08.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 988.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74628\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:09]execute_script... [09:21:09]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141008\u000A12.08.2024 08:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 988.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74628\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:09]POST & json_proto [09:21:09]process_json_proto [09:21:09]json parsed OK: [09:21:09]protocol is kg_v1.0 [09:21:09]action value=print_text [09:21:09]process_action print_text [09:21:09]cmd_print_text [09:21:09]ExternCall_PrintAddStr [09:21:09]wPrintStart [09:21:09]Write to MH i2c: 01 00 00 5F 0A 69 [09:21:09]Write i2c OK [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: 01 [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: 01 07 00 [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: 01 07 00 5F 0A 00 00 00 00 00 FF 0F 7E [09:21:09]RasterBufferAndPrint [09:21:09]line *****ТОВÐРÐЫЙ ЧЕК***** [09:21:09]line ÐЗС 39 [09:21:09]line Партнер нефть [09:21:09]line 02508201610067 [09:21:09]line КаÑÑир : Мирбек к Ð. [09:21:09]line Счет N : (1)141008 [09:21:09]line 12.08.2024 08:40 [09:21:09]line ПРОДÐЖР[09:21:09]line ТРК (МРК, ГÐК): 41 [09:21:09]line Вид ГСМ : 2710124130 [09:21:09]line Ðи-92-К-5 [09:21:09]line 15.000 x 65.90 [09:21:09]line ИТОГ: 988.50 [09:21:09]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [09:21:09]line 74628 [09:21:09]line ______________________ [09:21:09]line (подпиÑÑŒ) [09:21:09]written 0, free lines is 4095 [09:21:09]OFD Sender: No OFD packet to send [09:21:10]Write to MH i2c: 01 00 00 73 0A 7D [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: 01 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: 01 07 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: 01 07 00 73 0A 00 00 00 00 00 10 0E A2 [09:21:10]RasterBufferAndPrint [09:21:10]line [09:21:10]line [09:21:10]line [09:21:10]line [09:21:10]line [09:21:10]written 0, free lines is 3602 [09:21:10]MH_Cut [09:21:10]Write to MH i2c: D1 01 00 7A 0A 01 56 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: D1 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: D1 01 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: D1 01 00 7A 0A 00 55 [09:21:10]Write to MH i2c: 01 00 00 7B 0A 85 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]*** Cut start [09:21:10]*** Purtial cut [09:21:10]*** CUTSNS_PIN = 0 [09:21:10]*** Stage 1: CUTSNS_PIN = 1 [09:21:12]Read from MH i2c: 01 [09:21:12]MH_I2C_Read... [09:21:12]*** Stop cut motor [09:21:12]*** Cut end [09:21:12]Read from MH i2c: 01 07 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 7B 0A 00 00 00 00 00 FF 0F 9A [09:21:12]process_action print_text done [09:21:12]requested_data is exist [09:21:12]produce_requested_data [09:21:12]requested_item fm.sn is exist - process it [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 11 00 00 [09:21:12]Write to MH i2c: E2 08 00 7C 0A 80 11 00 00 00 00 00 00 00 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]int [09:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:12]*** FLAG_PRN_KEY set [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 17 00 7C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 55 [09:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:21:12]wFMCommunicate OK [09:21:12]requested_item fd.num is exist - process it [09:21:12]SAM_PROTO_GetFieldsCounters [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 13 00 00 [09:21:12]Write to MH i2c: E2 08 00 7D 0A 80 13 00 00 00 00 00 00 03 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 62 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 62 00 7D 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AE 13 01 00 0E 04 04 00 D1 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 C9 [09:21: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AE 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 Write to MH i2c: 01 00 00 07 00 00 00 00 7E 19 0A 04 88 04 [09:21:12]00 00 00 00 00 90 00 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_GetFieldsCounters done [09:21:12]requested_item shift.num is exist - process it [09:21:12]requested_item shift.opened is exist - process it [09:21:12]req_shift_opened [09:21:12]FM_GetShiftState [09:21:12]SAM_PROTO_GetShiftState [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 13 01 00 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 7E 0A 00 08 00 00 00 FF 0F A5 [09:21:12]Write to MH i2c: state=0 [09:21:12]E2 Key pressed [09:21:12]08 00 7F Feed [09:21:12]0A 80 13 01 00 00 00 00 00 06 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0E 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0E 00 7F 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F3 [09:21:12]RAPDU: Write to MH i2c: 09 D8 00 00 00 01 80 68 0A 5A 61 B9 [09:21:12]66 00 00 00 00 90 00 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_GetShiftState done [09:21:12]FM_GetShiftState done [09:21:12]req_shift_opened done [09:21:12]requested_item shift.open_date is exist - process it [09:21:12]req_shift_open_date [09:21:12]req_shift_open_date done [09:21:12]produce_requested_data done [09:21:12]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70574,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [09:21:12]process_action_free print_text [09:21:12]json_value_free [09:21:12]json_value_free done [09:21:12]process_json_proto returns [09:21:12]Send response to host [09:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70574,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [09:21:12]free response buf [09:21:12]execute_script done [09:21:12]execute_script returns [09:21:12]free content buf [09:21:12]Sock 8.Close socket [09:21:12]Sock 8.Thread stoped [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: D8 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: D8 01 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: D8 01 00 80 0A 00 62 [09:21:12]int [09:21:12]Write to MH i2c: 01 00 00 81 0A 8B [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 81 0A 00 48 00 00 00 3C 00 16 [09:21:12]state=2 [09:21:12]Key pressed [09:21:12]int [09:21:12]Write to MH i2c: 01 00 00 82 0A 8C [09:21:12]*** FLAG_PRN_KEY reset [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: 01 07 00 82 0A 00 00 00 00 00 F7 0F 99 [09:21:12]state=2 [09:21:12]Stop feed [09:21:13]int [09:21:13]Write to MH i2c: 01 00 00 83 0A 8D [09:21:13]*** FLAG_PRN_KEY set [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 83 0A 00 08 00 00 00 FF 0F AA [09:21:13]state=0 [09:21:13]Key pressed [09:21:13]Feed [09:21:13]Write to MH i2c: D8 00 00 84 0A 65 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: D8 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: D8 01 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: D8 01 00 84 0A 00 66 [09:21:13]int [09:21:13]Write to MH i2c: 01 00 00 85 0A 8F [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 85 0A 00 48 00 00 00 3C 00 1A [09:21:13]state=2 [09:21:13]Key pressed [09:21:13]int [09:21:13]Write to MH i2c: 01 00 00 86 0A 90 [09:21:13]*** FLAG_PRN_KEY reset [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 86 0A 00 00 00 00 00 F6 0F 9C [09:21:13]state=2 [09:21:13]Stop feed [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:27]accept exits with 9 [09:47:27]New connection [09:47:27]New thread 3067465060 created [09:47:27]Thread 3067321700 joined [09:47:27]Waiting for new connection... [09:47:27] Sock 9.Parse request [09:47:27]Sock 9.Check first char [09:47:27]Sock 9.First char is OK [09:47:27]request: POST /json_proto HTTP/1.0 [09:47:27]Method: POST [09:47:27]URL: /json_proto [09:47:27]Method is POST - this is cgi request [09:47:27]url: /json_proto [09:47:27]query_string will be loaded in cgi processing [09:47:27]execute_cgi json_proto POST (null) [09:47:27]execute_cgi path=json_proto method=POST [09:47:27]POST find Content-Length [09:47:27]Host: 172.17.58.67:8080 [09:47:27]Content-Length: 682 [09:47:27]Content-Type: application/json [09:47:27] [09:47:27]POST finish read [09:47:27]Found Content-Length = 682 [09:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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:47:27]execute_script... [09:47:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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:47:27]POST & json_proto [09:47:27]process_json_proto [09:47:27]json parsed OK: [09:47:27]protocol is kg_v1.0 [09:47:27]action value=close_receipt [09:47:27]process_action close_receipt [09:47:27]cmd_close_receipt [09:47:27]MH_GetDate [09:47:27]Write to MH i2c: F0 00 00 87 0A 80 [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: F0 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: F0 09 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: F0 09 00 87 0A 00 32 DA B9 66 94 51 63 64 60 [09:47:27]GetLastDocTimeStamp 1723454270 [09:47:27]current date 1723456050 [09:47:27]FM_GetShiftState [09:47:27]SAM_PROTO_GetShiftState [09:47:27]wFMCommunicate request_size=4 [09:47:27]MH_SAM_APDU [09:47:27]CAPDU: 80 13 01 00 [09:47:27]Write to MH i2c: E2 08 00 88 0A 80 13 01 00 00 00 00 00 0F [09:47:27]Write i2c OK [09:47:27]MH_I2C_Read... [09:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:27]Read from MH i2c: E2 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: E2 0E 00 [09:47:27]MH_I2C_Read... [09:47:27]Read from MH i2c: E2 0E 00 88 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 FC [09:47:27]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:47:27]wFMCommunicate OK [09:47:27]SAM_PROTO_GetShiftState done [09:47:27]FM_GetShiftState done [09:47:27]opened in 1723423336 [09:47:27]opened+sec_in_day 1723509736 [09:47:27]quantity*price = 150054 [09:47:27]sum+1 = 150055 [09:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.54 ИТОГО: 1500.00 ВнеÑено: 1500.00 СДÐЧÐ: 0.00 ÐСП 1% : 13.28 ÐДС 12% : 159.35 Ðаличными: 1500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 7 12.08.2024 09:47 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70575 ФПД: 39126428720550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T094730&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70575&fm=39126428720550&tin=02508201610067®Number=0000000000090913&sum=150000 [09:47:28]StoreToDocumentArchive [09:47:28]shift 465 fd 70575 [09:47:28]save to /storage/0465/doc_00070575 [09:47:28]save last doc name /storage/0465/doc_00070575 to /storage/kkm_last_doc_name [09:47:28]save OK [09:47:28]Clear old archive folders... [09:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:28]tlvbuf is 00BD1D20 [09:47:28]SAM_PROTO_ClearQueue [09:47:28]wFMCommunicate request_size=4 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 09 00 00 [09:47:28]Write to MH i2c: E2 08 00 95 0A 80 09 00 00 00 00 00 00 11 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 03 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [09:47:28]RAPDU: 90 00 [09:47:28]wFMCommunicate OK [09:47:28]SAM_PROTO_ClearQueue done [09:47:28]KKMCreateOFDPacket [09:47:28]OFDProtocolAddRootSTLVToBuf [09:47:28]FM_MakeSignedData [09:47:28]FM_MakeSignedData [09:47:28]SAM_PROTO_SignData [09:47:28]wFMCommunicate request_size=4 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 0D 01 02 [09:47:28]Write to MH i2c: E2 08 00 96 0A 80 0D 01 02 00 00 00 00 19 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 03 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [09:47:28]RAPDU: 90 00 [09:47:28]wFMCommunicate OK [09:47:28]wFMCommunicate request_size=255 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 32 DA B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AF 13 01 00 35 04 06 00 23 [09:47:28]Write to MH i2c: E2 02 01 97 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 32 DA B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AF 13 01 00 35 04 06 00 23 00 00 C7 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 03 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [09:47:28]RAPDU: 90 00 [09:47:28]wFMCommunicate OK [09:47:28]wFMCommunicate request_size=10 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 0D 02 02 05 95 D4 E2 9D A6 [09:47:28]Write to MH i2c: E2 0D 00 98 0A 80 0D 02 02 05 00 95 D4 E2 9D A6 00 00 B4 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 03 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [09:47:28]RAPDU: 90 00 [09:47:28]wFMCommunicate OK [09:47:28]wFMCommunicate request_size=4 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 0D 03 02 [09:47:28]Write to MH i2c: E2 08 00 99 0A 80 0D 03 02 00 00 00 00 1E [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 0B 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 0B 00 99 0A 00 AF 51 39 A2 45 62 DC A9 90 00 26 [09:47:28]RAPDU: AF 51 39 A2 45 62 DC A9 90 00 [09:47:28]wFMCommunicate OK [09:47:28]SAM_PROTO_SignData done [09:47:28]FM_MakeSignedData done [09:47:28]CreateOFDProtocolMessage [09:47:28]wFMCommunicate request_size=4 [09:47:28]MH_SAM_APDU [09:47:28]CAPDU: 80 11 00 00 [09:47:28]Write to MH i2c: E2 08 00 9A 0A 80 11 00 00 00 00 00 00 1E [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:28]Read from MH i2c: E2 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 17 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: E2 17 00 9A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 73 [09:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:47:28]wFMCommunicate OK [09:47:28]CreateOFDProtocolMessage done [09:47:28]OFDSenderStorePacket 70575 [09:47:28]StoreOFDPacket docnum=70575 [09:47:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 A7 8A 07 01 2C 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 32 DA B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AF 13 01 00 35 04 06 00 23 95 D4 E2 9D A6 AF 51 39 A2 45 62 DC A9 [09:47:28]CheckFolder [09:47:28]dirname=/storage/ofd_packets [09:47:28]CheckFolder done [09:47:28]ProducePacketName [09:47:28]name=ofd_packets/00070575 [09:47:28]NVStorageSaveData ofd_packets/00070575 [09:47:28]File name is /storage/ofd_packets/00070575 [09:47:28]Write 301 bytes [09:47:28]NVStorageSaveData done [09:47:28]OFDSenderStorePacket done [09:47:28]KKMCreateOFDPacket done [09:47:28]NVStorageSaveData kkm_last_timestamp [09:47:28]File name is /storage/kkm_last_timestamp [09:47:28]Write 4 bytes [09:47:28]NVStorageSaveData done [09:47:28]ExternCall_PrintAddStr [09:47:28]wPrintStart [09:47:28]Write to MH i2c: 01 00 00 9B 0A A5 [09:47:28]Write i2c OK [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: 01 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: 01 07 00 [09:47:28]MH_I2C_Read... [09:47:28]Read from MH i2c: 01 07 00 9B 0A 00 00 00 00 00 FF 0F BA [09:47:28]RasterBufferAndPrint [09:47:28]line Счет N : (1)141010 [09:47:28]line ИÐÐ: 02508201610067 [09:47:28]line Контрольно-КаÑÑовый Чек [09:47:28]line ПРОДÐЖР[09:47:28]line ТРК (МРК, ГÐК) : 31 [09:47:28]line Товар: 2710124130 [09:47:28]line Ðи-92-К-5 [09:47:28]line 22.770 * 65.90 [09:47:28]line = 1500.54 [09:47:28]line ÐДС 12% ÐСП 1% [09:47:28]line > о реализуемом товаре [09:47:28]line ОКРУГЛЕÐИЕ: -0.54 [09:47:28]line ИТОГО: 1500.00 [09:47:28]line ВнеÑено: 1500.00 [09:47:28]line СДÐЧÐ: 0.00 [09:47:28]line ÐСП 1% : 13.28 [09:47:28]line ÐДС 12% : 159.35 [09:47:28]line Ðаличными: 1500.00 [09:47:28]line Безнал.: 0.00 [09:47:28]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [09:47:28]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [09:47:28]line СÐО: Общий режим [09:47:28]line Чек 7 12.08.2024 09:47 [09:47:28]line Смена: 465 ФФД: 1.0 [09:47:28]line ЗÐМ: 0300000140 [09:47:28]line РÐМ: 0000000000090913 [09:47:28]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:47:28]line ФМ: 0000000000874915 [09:47:28]line ФД: 70575 [09:47:28]line ФПД: 39126428720550 [09:47:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T094730&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70575&fm=39126428720550&tin=02508201610067®Number=0000000000090913&sum=150000 [09:47:29]OFD Sender: Processing packet 70575 [packets to send 67, broken 66] [09:47:29]ProducePacketName [09:47:29]name=ofd_packets/00070575 [09:47:29]OFD Sender: To server: ‡•öpG, [09:47:29]CommunicateWithHost lk.salyk.kg:30040 [09:47:29]ConnectInit lk.salyk.kg [09:47:29]written 0, free lines is 4095 [09:47:29]Connected sock=10 [09:47:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 A7 8A 07 01 2C 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 32 DA B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AF 13 01 00 35 04 06 00 23 95 D4 E2 9D A6 AF 51 39 A2 45 62 DC A9 [09:47:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 36 71 47 00 31 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 AF 13 01 00 F4 03 04 00 1F 81 B9 66 B6 04 01 00 00 E9 7A 2C 50 90 D2 77 0D [09:47:29]CommunicateWithHost err = 0 [09:47:29]CheckOFDResponse [09:47:29]1017 (14) - 77093643461234 [09:47:29]1041 (16) - 0000000000874915 [09:47:29]1040 (4) - 70575 [09:47:29]1012 (4) - 12.08.2024 03:27 [09:47:29]1206 (1) - 0 [09:47:29]OFD Sender: Remove packet 70575 [09:47:29]ProducePacketName [09:47:29]name=ofd_packets/00070575 [09:47:29]NVStorageDeleteData [09:47:29]Write to MH i2c: 01 00 00 C6 0A D0 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: 01 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: 01 07 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: 01 07 00 C6 0A 00 00 00 00 00 E9 0C CC [09:47:29]RasterBufferAndPrint [09:47:29]line [09:47:29]line [09:47:29]line [09:47:29]line [09:47:29]line [09:47:29]written 0, free lines is 3311 [09:47:29]MH_Cut [09:47:29]Write to MH i2c: D1 01 00 CD 0A 01 A9 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: D1 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: D1 01 00 [09:47:29]MH_I2C_Read... [09:47:29]Read from MH i2c: D1 01 00 CD 0A 00 A8 [09:47:29]Write to MH i2c: 01 00 00 CE 0A D8 [09:47:29]Write i2c OK [09:47:29]MH_I2C_Read... [09:47:30]OFD Sender: No OFD packet to send [09:47:30]*** Cut start [09:47:30]*** Purtial cut [09:47:30]*** Stage 1: CUTSNS_PIN = 1 [09:47:30]Read from MH i2c: 01 [09:47:30]MH_I2C_Read... [09:47:30]*** Stop cut motor [09:47:30]*** Cut end [09:47:30]Read from MH i2c: 01 07 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 FF 0F ED [09:47:30]process_action close_receipt done [09:47:30]requested_data is exist [09:47:30]produce_requested_data [09:47:30]requested_item fm.sn is exist - process it [09:47:30]wFMCommunicate request_size=4 [09:47:30]MH_SAM_APDU [09:47:30]CAPDU: 80 11 00 00 [09:47:30]Write to MH i2c: E2 08 00 CF 0A 80 11 00 00 00 00 00 00 53 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:30]Read from MH i2c: E2 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 17 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 17 00 CF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A8 [09:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:47:30]wFMCommunicate OK [09:47:30]requested_item fd.num is exist - process it [09:47:30]SAM_PROTO_GetFieldsCounters [09:47:30]wFMCommunicate request_size=4 [09:47:30]MH_SAM_APDU [09:47:30]CAPDU: 80 13 00 00 [09:47:30]Write to MH i2c: E2 08 00 D0 0A 80 13 00 00 00 00 00 00 56 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:30]Read from MH i2c: E2 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 62 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 62 00 D0 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AF 13 01 00 0E 04 04 00 D1 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 20 [09:47:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AF 13 01 00 0E 04 04 00 D1 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 [09:47:30]wFMCommunicate OK [09:47:30]SAM_PROTO_GetFieldsCounters done [09:47:30]requested_item shift.num is exist - process it [09:47:30]requested_item shift.opened is exist - process it [09:47:30]req_shift_opened [09:47:30]FM_GetShiftState [09:47:30]SAM_PROTO_GetShiftState [09:47:30]wFMCommunicate request_size=4 [09:47:30]MH_SAM_APDU [09:47:30]CAPDU: 80 13 01 00 [09:47:30]Write to MH i2c: E2 08 00 D1 0A 80 13 01 00 00 00 00 00 58 [09:47:30]Write i2c OK [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 [09:47:30]MH_I2C_Read... [09:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:30]Read from MH i2c: E2 0E 00 [09:47:30]MH_I2C_Read... [09:47:30]Read from MH i2c: E2 0E 00 D1 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 45 [09:47:30]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:47:30]wFMCommunicate OK [09:47:30]SAM_PROTO_GetShiftState done [09:47:30]FM_GetShiftState done [09:47:30]req_shift_opened done [09:47:30]requested_item shift.open_date is exist - process it [09:47:30]req_shift_open_date [09:47:30]req_shift_open_date done [09:47:30]produce_requested_data done [09:47:30]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70575,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [09:47:30]process_action_free close_receipt [09:47:30]json_value_free [09:47:30]json_value_free done [09:47:30]process_json_proto returns [09:47:30]Send response to host [09:47:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70575,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [09:47:30]free response buf [09:47:30]execute_script done [09:47:30]execute_script returns [09:47:30]free content buf [09:47:30]Sock 9.Close socket [09:47:30]Sock 9.Thread stoped [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:47:56]accept exits with 8 [09:47:56]New connection [09:47:56]New thread 3067321700 created [09:47:56]Thread 3067465060 joined [09:47:56]Waiting for new connection... [09:47:56] Sock 8.Parse request [09:47:56]Sock 8.Check first char [09:47:56]Sock 8.First char is OK [09:47:56]request: POST /json_proto HTTP/1.0 [09:47:56]Method: POST [09:47:56]URL: /json_proto [09:47:56]Method is POST - this is cgi request [09:47:56]url: /json_proto [09:47:56]query_string will be loaded in cgi processing [09:47:56]execute_cgi json_proto POST (null) [09:47:56]execute_cgi path=json_proto method=POST [09:47:56]POST find Content-Length [09:47:56]Host: 172.17.58.67:8080 [09:47:56]Content-Length: 1179 [09:47:56]Content-Type: application/json [09:47:56] [09:47:56]POST finish read [09:47:56]Found Content-Length = 1179 [09:47: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141009\u000A12.08.2024 09:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4212657\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:56]execute_script... [09:47: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141009\u000A12.08.2024 09:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4212657\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:56]POST & json_proto [09:47:56]process_json_proto [09:47:56]json parsed OK: [09:47:56]protocol is kg_v1.0 [09:47:56]action value=print_text [09:47:56]process_action print_text [09:47:56]cmd_print_text [09:47:56]ExternCall_PrintAddStr [09:47:56]wPrintStart [09:47:56]Write to MH i2c: 01 00 00 D2 0A DC [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 D2 0A 00 00 00 00 00 FF 0F F1 [09:47:56]RasterBufferAndPrint [09:47:56]line *****ТОВÐРÐЫЙ ЧЕК***** [09:47:56]line ÐЗС 39 [09:47:56]line Партнер нефть [09:47:56]line 02508201610067 [09:47:56]line КаÑÑир : Мирбек к Ð. [09:47:56]line Счет N : (1)141009 [09:47:56]line 12.08.2024 09:07 [09:47:56]line ПРОДÐЖР[09:47:56]line ТРК (МРК, ГÐК): 41 [09:47:56]line Вид ГСМ : 2710124130 [09:47:56]line Ðи-92-К-5 [09:47:56]line 10.000 x 65.90 [09:47:56]line ИТОГ: 659.00 [09:47:56]line Тип оплаты: Талоны: Партнер нефть [09:47:56]line 4212657 [09:47:56]line ______________________ [09:47:56]line (подпиÑÑŒ) [09:47:56]written 0, free lines is 4095 [09:47:56]Write to MH i2c: 01 00 00 E6 0A F0 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 0F 0E 14 [09:47:56]RasterBufferAndPrint [09:47:56]line [09:47:56]line [09:47:56]line [09:47:56]line [09:47:56]line [09:47:56]written 0, free lines is 3601 [09:47:56]MH_Cut [09:47:56]Write to MH i2c: D1 01 00 ED 0A 01 C9 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: D1 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: D1 01 00 [09:47:56]MH_I2C_Read... [09:47:56]Read from MH i2c: D1 01 00 ED 0A 00 C8 [09:47:56]Write to MH i2c: 01 00 00 EE 0A F8 [09:47:56]Write i2c OK [09:47:56]MH_I2C_Read... [09:47:56]*** Cut start [09:47:56]*** Purtial cut [09:47:56]*** CUTSNS_PIN = 0 [09:47:57]*** Stage 1: CUTSNS_PIN = 1 [09:47:58]Read from MH i2c: 01 [09:47:58]MH_I2C_Read... [09:47:58]*** Stop cut motor [09:47:58]*** Cut end [09:47:58]Read from MH i2c: 01 07 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: 01 07 00 EE 0A 00 00 00 00 00 FF 0F 0D [09:47:58]process_action print_text done [09:47:58]requested_data is exist [09:47:58]produce_requested_data [09:47:58]requested_item fm.sn is exist - process it [09:47:58]wFMCommunicate request_size=4 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 11 00 00 [09:47:58]Write to MH i2c: E2 08 00 EF 0A 80 11 00 00 00 00 00 00 73 [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:58]Read from MH i2c: E2 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 17 00 [09:47:58]MH_I2C_Read... [09:47:58]Read from MH i2c: E2 17 00 EF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C8 [09:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:47:58]wFMCommunicate OK [09:47:58]requested_item fd.num is exist - process it [09:47:58]SAM_PROTO_GetFieldsCounters [09:47:58]wFMCommunicate request_size=4 [09:47:58]MH_SAM_APDU [09:47:58]CAPDU: 80 13 00 00 [09:47:58]Write to MH i2c: E2 08 00 F0 0A 80 13 00 00 00 00 00 00 76 [09:47:58]Write i2c OK [09:47:58]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:59]Read from MH i2c: E2 62 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 62 00 F0 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AF 13 01 00 0E 04 04 00 D1 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 40 [09:47:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 AF 13 01 00 0E 04 04 00 D1 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 [09:47:59]wFMCommunicate OK [09:47:59]SAM_PROTO_GetFieldsCounters done [09:47:59]requested_item shift.num is exist - process it [09:47:59]requested_item shift.opened is exist - process it [09:47:59]req_shift_opened [09:47:59]FM_GetShiftState [09:47:59]SAM_PROTO_GetShiftState [09:47:59]wFMCommunicate request_size=4 [09:47:59]MH_SAM_APDU [09:47:59]CAPDU: 80 13 01 00 [09:47:59]Write to MH i2c: E2 08 00 F1 0A 80 13 01 00 00 00 00 00 78 [09:47:59]Write i2c OK [09:47:59]MH_I2C_Read... [09:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:59]Read from MH i2c: E2 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0E 00 [09:47:59]MH_I2C_Read... [09:47:59]Read from MH i2c: E2 0E 00 F1 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 65 [09:47:59]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:47:59]wFMCommunicate OK [09:47:59]SAM_PROTO_GetShiftState done [09:47:59]FM_GetShiftState done [09:47:59]req_shift_opened done [09:47:59]requested_item shift.open_date is exist - process it [09:47:59]req_shift_open_date [09:47:59]req_shift_open_date done [09:47:59]produce_requested_data done [09:47:59]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70575,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [09:47:59]process_action_free print_text [09:47:59]json_value_free [09:47:59]json_value_free done [09:47:59]process_json_proto returns [09:47:59]Send response to host [09:47:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70575,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [09:47:59]free response buf [09:47:59]execute_script done [09:47:59]execute_script returns [09:47:59]free content buf [09:47:59]Sock 8.Close socket [09:47:59]Sock 8.Thread stoped [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:36]accept exits with 9 [09:54:36]New connection [09:54:36]New thread 3067465060 created [09:54:36]Thread 3067321700 joined [09:54:36]Waiting for new connection... [09:54:36] Sock 9.Parse request [09:54:36]Sock 9.Check first char [09:54:36]Sock 9.First char is OK [09:54:36]request: POST /json_proto HTTP/1.0 [09:54:36]Method: POST [09:54:36]URL: /json_proto [09:54:36]Method is POST - this is cgi request [09:54:36]url: /json_proto [09:54:36]query_string will be loaded in cgi processing [09:54:36]execute_cgi json_proto POST (null) [09:54:36]execute_cgi path=json_proto method=POST [09:54:36]POST find Content-Length [09:54:36]Host: 172.17.58.67:8080 [09:54:36]Content-Length: 805 [09:54:36]Content-Type: application/json [09:54:36] [09:54:36]POST finish read [09:54:36]Found Content-Length = 805 [09:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:36]execute_script... [09:54:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:36]POST & json_proto [09:54:36]process_json_proto [09:54:36]json parsed OK: [09:54:36]protocol is kg_v1.0 [09:54:36]action value=close_receipt [09:54:36]process_action close_receipt [09:54:36]cmd_close_receipt [09:54:36]MH_GetDate [09:54:36]Write to MH i2c: F0 00 00 F2 0A EB [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 09 00 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 09 00 F2 0A 00 DF DB B9 66 94 51 63 64 79 [09:54:36]GetLastDocTimeStamp 1723456050 [09:54:36]current date 1723456479 [09:54:36]FM_GetShiftState [09:54:36]SAM_PROTO_GetShiftState [09:54:36]wFMCommunicate request_size=4 [09:54:36]MH_SAM_APDU [09:54:36]CAPDU: 80 13 01 00 [09:54:36]Write to MH i2c: E2 08 00 F3 0A 80 13 01 00 00 00 00 00 7A [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:36]Read from MH i2c: E2 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 0E 00 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 0E 00 F3 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 67 [09:54:36]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:54:36]wFMCommunicate OK [09:54:36]SAM_PROTO_GetShiftState done [09:54:36]FM_GetShiftState done [09:54:36]opened in 1723423336 [09:54:36]opened+sec_in_day 1723509736 [09:54:36]quantity*price = 50018 [09:54:36]sum+1 = 50019 [09:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 8 12.08.2024 09:54 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70576 ФПД: 266007694367665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T095440&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70576&fm=266007694367665&tin=02508201610067®Number=0000000000090913&sum=50018 [09:54:37]StoreToDocumentArchive [09:54:37]shift 465 fd 70576 [09:54:37]save to /storage/0465/doc_00070576 [09:54:37]save last doc name /storage/0465/doc_00070576 to /storage/kkm_last_doc_name [09:54:37]save OK [09:54:37]Clear old archive folders... [09:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:37]tlvbuf is 00B5D900 [09:54:37]SAM_PROTO_ClearQueue [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 09 00 00 [09:54:37]Write to MH i2c: E2 08 00 00 0B 80 09 00 00 00 00 00 00 7D [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 00 0B 00 90 00 7F [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]SAM_PROTO_ClearQueue done [09:54:37]KKMCreateOFDPacket [09:54:37]OFDProtocolAddRootSTLVToBuf [09:54:37]FM_MakeSignedData [09:54:37]FM_MakeSignedData [09:54:37]SAM_PROTO_SignData [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 0D 01 02 [09:54:37]Write to MH i2c: E2 08 00 01 0B 80 0D 01 02 00 00 00 00 85 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]wFMCommunicate request_size=255 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E0 DB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B0 13 01 00 35 04 06 00 F1 [09:54:37]Write to MH i2c: E2 02 01 02 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E0 DB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B0 13 01 00 35 04 06 00 F1 00 00 90 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [09:54:38]RAPDU: 90 00 [09:54:38]wFMCommunicate OK [09:54:38]wFMCommunicate request_size=10 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 0D 02 02 05 EE BE 21 5B B1 [09:54:38]Write to MH i2c: E2 0D 00 03 0B 80 0D 02 02 05 00 EE BE 21 5B B1 00 00 6B [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [09:54:38]RAPDU: 90 00 [09:54:38]wFMCommunicate OK [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 0D 03 02 [09:54:38]Write to MH i2c: E2 08 00 04 0B 80 0D 03 02 00 00 00 00 8A [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0B 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 0B 00 04 0B 00 B7 4F A0 8D 8D 9A 03 07 90 00 EF [09:54:38]RAPDU: B7 4F A0 8D 8D 9A 03 07 90 00 [09:54:38]wFMCommunicate OK [09:54:38]SAM_PROTO_SignData done [09:54:38]FM_MakeSignedData done [09:54:38]CreateOFDProtocolMessage [09:54:38]wFMCommunicate request_size=4 [09:54:38]MH_SAM_APDU [09:54:38]CAPDU: 80 11 00 00 [09:54:38]Write to MH i2c: E2 08 00 05 0B 80 11 00 00 00 00 00 00 8A [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:38]Read from MH i2c: E2 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 17 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: E2 17 00 05 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 DF [09:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:54:38]wFMCommunicate OK [09:54:38]CreateOFDProtocolMessage done [09:54:38]OFDSenderStorePacket 70576 [09:54:38]StoreOFDPacket docnum=70576 [09:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 B6 75 07 01 A9 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E0 DB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B0 13 01 00 35 04 06 00 F1 EE BE 21 5B B1 B7 4F A0 8D 8D 9A 03 07 [09:54:38]CheckFolder [09:54:38]dirname=/storage/ofd_packets [09:54:38]CheckFolder done [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00070576 [09:54:38]NVStorageSaveData ofd_packets/00070576 [09:54:38]File name is /storage/ofd_packets/00070576 [09:54:38]Write 301 bytes [09:54:38]NVStorageSaveData done [09:54:38]OFDSenderStorePacket done [09:54:38]KKMCreateOFDPacket done [09:54:38]NVStorageSaveData kkm_last_timestamp [09:54:38]File name is /storage/kkm_last_timestamp [09:54:38]Write 4 bytes [09:54:38]NVStorageSaveData done [09:54:38]ExternCall_PrintAddStr [09:54:38]wPrintStart [09:54:38]Write to MH i2c: 01 00 00 06 0B 11 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 06 0B 00 00 00 00 00 FF 0F 26 [09:54:38]RasterBufferAndPrint [09:54:38]line Счет N : (1)141011 [09:54:38]line ИÐÐ: 02508201610067 [09:54:38]line Контрольно-КаÑÑовый Чек [09:54:38]line ПРОДÐЖР[09:54:38]line ТРК (МРК, ГÐК) : 31 [09:54:38]line Товар: 2710124130 [09:54:38]line Ðи-92-К-5 [09:54:38]line 7.590 * 65.90 [09:54:38]line = 500.18 [09:54:38]line ÐДС 12% ÐСП 1% [09:54:38]line > о реализуемом товаре [09:54:38]line ИТОГО: 500.18 [09:54:38]line ÐСП 1% : 4.43 [09:54:38]line ÐДС 12% : 53.12 [09:54:38]line Ðаличными: 0.00 [09:54:38]line Безнал.: 500.18 [09:54:38]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [09:54:38]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [09:54:38]line СÐО: Общий режим [09:54:38]line Чек 8 12.08.2024 09:54 [09:54:38]line Смена: 465 ФФД: 1.0 [09:54:38]line ЗÐМ: 0300000140 [09:54:38]line РÐМ: 0000000000090913 [09:54:38]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:54:38]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [09:54:38]line ФМ: 0000000000874915 [09:54:38]line ФД: 70576 [09:54:38]line ФПД: 266007694367665 [09:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T095440&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70576&fm=266007694367665&tin=02508201610067®Number=0000000000090913&sum=50018 [09:54:38]OFD Sender: Processing packet 70576 [packets to send 67, broken 66] [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00070576 [09:54:38]OFD Sender: To server: ‡•öpG, [09:54:38]CommunicateWithHost lk.salyk.kg:30040 [09:54:38]ConnectInit lk.salyk.kg [09:54:38]written 0, free lines is 4095 [09:54:38]Connected sock=10 [09:54:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 B6 75 07 01 A9 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 E0 DB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B0 13 01 00 35 04 06 00 F1 EE BE 21 5B B1 B7 4F A0 8D 8D 9A 03 07 [09:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F0 82 47 00 2A 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 39 31 35 10 04 04 00 B0 13 01 00 F4 03 04 00 CD 82 B9 66 B6 04 01 00 00 8C 25 C6 40 60 83 8C 81 [09:54:38]CommunicateWithHost err = 0 [09:54:38]CheckOFDResponse [09:54:38]1017 (14) - 77093643461234 [09:54:38]1041 (16) - 0000000000874915 [09:54:38]1040 (4) - 70576 [09:54:38]1012 (4) - 12.08.2024 03:34 [09:54:38]1206 (1) - 0 [09:54:38]OFD Sender: Remove packet 70576 [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00070576 [09:54:38]NVStorageDeleteData [09:54:39]Write to MH i2c: 01 00 00 30 0B 3B [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 07 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: 01 07 00 30 0B 00 00 00 00 00 F2 0C 40 [09:54:39]RasterBufferAndPrint [09:54:39]line [09:54:39]line [09:54:39]line [09:54:39]line [09:54:39]line [09:54:39]written 0, free lines is 3319 [09:54:39]MH_Cut [09:54:39]Write to MH i2c: D1 01 00 37 0B 01 14 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: D1 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: D1 01 00 [09:54:39]MH_I2C_Read... [09:54:39]Read from MH i2c: D1 01 00 37 0B 00 13 [09:54:39]Write to MH i2c: 01 00 00 38 0B 43 [09:54:39]Write i2c OK [09:54:39]MH_I2C_Read... [09:54:39]OFD Sender: No OFD packet to send [09:54:39]*** Cut start [09:54:39]*** Purtial cut [09:54:39]*** Stage 1: CUTSNS_PIN = 1 [09:54:40]Read from MH i2c: 01 [09:54:40]MH_I2C_Read... [09:54:40]*** Stop cut motor [09:54:40]*** Cut end [09:54:40]Read from MH i2c: 01 07 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 38 0B 00 00 00 00 00 FF 0F 58 [09:54:40]process_action close_receipt done [09:54:40]requested_data is exist [09:54:40]produce_requested_data [09:54:40]requested_item fm.sn is exist - process it [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 11 00 00 [09:54:40]Write to MH i2c: E2 08 00 39 0B 80 11 00 00 00 00 00 00 BE [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 39 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 13 [09:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [09:54:40]wFMCommunicate OK [09:54:40]requested_item fd.num is exist - process it [09:54:40]SAM_PROTO_GetFieldsCounters [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 13 00 00 [09:54:40]Write to MH i2c: E2 08 00 3A 0B 80 13 00 00 00 00 00 00 C1 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 62 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 62 00 3A 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B0 13 01 00 0E 04 04 00 D1 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 8F [09:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B0 13 01 00 0E 04 04 00 D1 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 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_GetFieldsCounters done [09:54:40]requested_item shift.num is exist - process it [09:54:40]requested_item shift.opened is exist - process it [09:54:40]req_shift_opened [09:54:40]FM_GetShiftState [09:54:40]SAM_PROTO_GetShiftState [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 13 01 00 [09:54:40]Write to MH i2c: E2 08 00 3B 0B 80 13 01 00 00 00 00 00 C3 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 3B 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 B0 [09:54:40]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_GetShiftState done [09:54:40]FM_GetShiftState done [09:54:40]req_shift_opened done [09:54:40]requested_item shift.open_date is exist - process it [09:54:40]req_shift_open_date [09:54:40]req_shift_open_date done [09:54:40]produce_requested_data done [09:54:40]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70576,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [09:54:40]process_action_free close_receipt [09:54:40]json_value_free [09:54:40]json_value_free done [09:54:40]process_json_proto returns [09:54:40]Send response to host [09:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70576,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [09:54:40]free response buf [09:54:40]execute_script done [09:54:40]execute_script returns [09:54:40]free content buf [09:54:40]Sock 9.Close socket [09:54:40]Sock 9.Thread stoped [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:17]accept exits with 8 [10:02:17]New connection [10:02:17]New thread 3067321700 created [10:02:17]Thread 3067465060 joined [10:02:17]Waiting for new connection... [10:02:17] Sock 8.Parse request [10:02:17]Sock 8.Check first char [10:02:17]Sock 8.First char is OK [10:02:17]request: POST /json_proto HTTP/1.0 [10:02:17]Method: POST [10:02:17]URL: /json_proto [10:02:17]Method is POST - this is cgi request [10:02:17]url: /json_proto [10:02:17]query_string will be loaded in cgi processing [10:02:17]execute_cgi json_proto POST (null) [10:02:17]execute_cgi path=json_proto method=POST [10:02:17]POST find Content-Length [10:02:17]Host: 172.17.58.67:8080 [10:02:17]Content-Length: 1190 [10:02:17]Content-Type: application/json [10:02:17] [10:02:17]POST finish read [10:02:17]Found Content-Length = 1190 [10:02: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141012\u000A12.08.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 35.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2306.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68877\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:17]execute_script... [10:02: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141012\u000A12.08.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 35.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2306.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68877\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:17]POST & json_proto [10:02:17]process_json_proto [10:02:17]json parsed OK: [10:02:17]protocol is kg_v1.0 [10:02:17]action value=print_text [10:02:17]process_action print_text [10:02:17]cmd_print_text [10:02:17]ExternCall_PrintAddStr [10:02:17]wPrintStart [10:02:17]Write to MH i2c: 01 00 00 3C 0B 47 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 07 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 07 00 3C 0B 00 00 00 00 00 FF 0F 5C [10:02:17]RasterBufferAndPrint [10:02:17]line *****ТОВÐРÐЫЙ ЧЕК***** [10:02:17]line ÐЗС 39 [10:02:17]line Партнер нефть [10:02:17]line 02508201610067 [10:02:17]line КаÑÑир : Мирбек к Ð. [10:02:17]line Счет N : (1)141012 [10:02:17]line 12.08.2024 09:21 [10:02:17]line ПРОДÐЖР[10:02:17]line ТРК (МРК, ГÐК): 31 [10:02:17]line Вид ГСМ : 2710124130 [10:02:17]line Ðи-92-К-5 [10:02:17]line 35.000 x 65.90 [10:02:17]line ИТОГ: 2306.50 [10:02:17]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [10:02:17]line 68877 [10:02:17]line ______________________ [10:02:17]line (подпиÑÑŒ) [10:02:17]written 0, free lines is 4095 [10:02:18]Write to MH i2c: 01 00 00 50 0B 5B [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 07 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 07 00 50 0B 00 00 00 00 00 0F 0E 7F [10:02:18]RasterBufferAndPrint [10:02:18]line [10:02:18]line [10:02:18]line [10:02:18]line [10:02:18]line [10:02:18]written 0, free lines is 3601 [10:02:18]MH_Cut [10:02:18]Write to MH i2c: D1 01 00 57 0B 01 34 [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: D1 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: D1 01 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: D1 01 00 57 0B 00 33 [10:02:18]Write to MH i2c: 01 00 00 58 0B 63 [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]*** Cut start [10:02:18]*** Purtial cut [10:02:18]*** CUTSNS_PIN = 0 [10:02:18]*** Stage 1: CUTSNS_PIN = 1 [10:02:19]OFD Sender: No OFD packet to send [10:02:20]Read from MH i2c: 01 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: 01 07 00 [10:02:20]MH_I2C_Read... [10:02:20]*** Stop cut motor [10:02:20]*** Cut end [10:02:20]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 FF 0F 78 [10:02:20]process_action print_text done [10:02:20]requested_data is exist [10:02:20]produce_requested_data [10:02:20]requested_item fm.sn is exist - process it [10:02:20]wFMCommunicate request_size=4 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 11 00 00 [10:02:20]Write to MH i2c: E2 08 00 59 0B 80 11 00 00 00 00 00 00 DE [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 17 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 17 00 59 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 33 [10:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:02:20]wFMCommunicate OK [10:02:20]requested_item fd.num is exist - process it [10:02:20]SAM_PROTO_GetFieldsCounters [10:02:20]wFMCommunicate request_size=4 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 13 00 00 [10:02:20]Write to MH i2c: E2 08 00 5A 0B 80 13 00 00 00 00 00 00 E1 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 62 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 62 00 5A 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B0 13 01 00 0E 04 04 00 D1 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 AF [10:02: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B0 13 01 00 0E 04 04 00 D1 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 [10:02:20]wFMCommunicate OK [10:02:20]SAM_PROTO_GetFieldsCounters done [10:02:20]requested_item shift.num is exist - process it [10:02:20]requested_item shift.opened is exist - process it [10:02:20]req_shift_opened [10:02:20]FM_GetShiftState [10:02:20]SAM_PROTO_GetShiftState [10:02:20]wFMCommunicate request_size=4 [10:02:20]MH_SAM_APDU [10:02:20]CAPDU: 80 13 01 00 [10:02:20]Write to MH i2c: E2 08 00 5B 0B 80 13 01 00 00 00 00 00 E3 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 0E 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 0E 00 5B 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D0 [10:02:20]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:02:20]wFMCommunicate OK [10:02:20]SAM_PROTO_GetShiftState done [10:02:20]FM_GetShiftState done [10:02:20]req_shift_opened done [10:02:20]requested_item shift.open_date is exist - process it [10:02:20]req_shift_open_date [10:02:20]req_shift_open_date done [10:02:20]produce_requested_data done [10:02:20]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70576,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:02:20]process_action_free print_text [10:02:20]json_value_free [10:02:20]json_value_free done [10:02:20]process_json_proto returns [10:02:20]Send response to host [10:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70576,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:02:20]free response buf [10:02:20]execute_script done [10:02:20]execute_script returns [10:02:20]free content buf [10:02:20]Sock 8.Close socket [10:02:20]Sock 8.Thread stoped [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:36]int [10:02:36]Write to MH i2c: 01 00 00 5C 0B 67 [10:02:36]*** FLAG_PRN_KEY set [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 07 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 07 00 5C 0B 00 08 00 00 00 FF 0F 84 [10:02:36]state=0 [10:02:36]Key pressed [10:02:36]Feed [10:02:36]Write to MH i2c: D8 00 00 5D 0B 3F [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: D8 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: D8 01 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: D8 01 00 5D 0B 00 40 [10:02:36]int [10:02:36]Write to MH i2c: 01 00 00 5E 0B 69 [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 07 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 07 00 5E 0B 00 48 00 00 00 3C 00 F4 [10:02:36]state=2 [10:02:36]Key pressed [10:02:36]int [10:02:36]Write to MH i2c: 01 00 00 5F 0B 6A [10:02:36]*** FLAG_PRN_KEY reset [10:02:36]Write i2c OK [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 07 00 [10:02:36]MH_I2C_Read... [10:02:36]Read from MH i2c: 01 07 00 5F 0B 00 00 00 00 00 F6 0F 76 [10:02:36]state=2 [10:02:36]Stop feed [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:00]accept exits with 9 [10:06:00]New connection [10:06:00]New thread 3067465060 created [10:06:00]Thread 3067321700 joined [10:06:00]Waiting for new connection... [10:06:00] Sock 9.Parse request [10:06:00]Sock 9.Check first char [10:06:00]Sock 9.First char is OK [10:06:00]request: POST /json_proto HTTP/1.0 [10:06:00]Method: POST [10:06:00]URL: /json_proto [10:06:00]Method is POST - this is cgi request [10:06:00]url: /json_proto [10:06:00]query_string will be loaded in cgi processing [10:06:00]execute_cgi json_proto POST (null) [10:06:00]execute_cgi path=json_proto method=POST [10:06:00]POST find Content-Length [10:06:00]Host: 172.17.58.67:8080 [10:06:00]Content-Length: 1180 [10:06:00]Content-Type: application/json [10:06:00] [10:06:00]POST finish read [10:06:00]Found Content-Length = 1180 [10:06: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141013\u000A12.08.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A4148608\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:00]execute_script... [10:06: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141013\u000A12.08.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A4148608\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:00]POST & json_proto [10:06:00]process_json_proto [10:06:00]json parsed OK: [10:06:00]protocol is kg_v1.0 [10:06:00]action value=print_text [10:06:00]process_action print_text [10:06:00]cmd_print_text [10:06:00]ExternCall_PrintAddStr [10:06:00]wPrintStart [10:06:00]Write to MH i2c: 01 00 00 60 0B 6B [10:06:00]Write i2c OK [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: 01 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: 01 07 00 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: 01 07 00 60 0B 00 00 00 00 00 FF 0F 80 [10:06:00]RasterBufferAndPrint [10:06:00]line *****ТОВÐРÐЫЙ ЧЕК***** [10:06:00]line ÐЗС 39 [10:06:00]line Партнер нефть [10:06:00]line 02508201610067 [10:06:00]line КаÑÑир : Мирбек к Ð. [10:06:00]line Счет N : (1)141013 [10:06:00]line 12.08.2024 09:25 [10:06:00]line ПРОДÐЖР[10:06:00]line ТРК (МРК, ГÐК): 41 [10:06:00]line Вид ГСМ : 2710124130 [10:06:00]line Ðи-92-К-5 [10:06:00]line 20.000 x 65.90 [10:06:00]line ИТОГ: 1318.00 [10:06:00]line Тип оплаты: Талоны: Партнер нефть [10:06:00]line 4148608 [10:06:00]line ______________________ [10:06:00]line (подпиÑÑŒ) [10:06:00]written 0, free lines is 4095 [10:06:00]Write to MH i2c: 01 00 00 74 0B 7F [10:06:00]Write i2c OK [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: 01 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: 01 07 00 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: 01 07 00 74 0B 00 00 00 00 00 12 0E A6 [10:06:00]RasterBufferAndPrint [10:06:00]line [10:06:00]line [10:06:00]line [10:06:00]line [10:06:00]line [10:06:00]written 0, free lines is 3604 [10:06:00]MH_Cut [10:06:00]Write to MH i2c: D1 01 00 7B 0B 01 58 [10:06:00]Write i2c OK [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: D1 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: D1 01 00 [10:06:00]MH_I2C_Read... [10:06:00]Read from MH i2c: D1 01 00 7B 0B 00 57 [10:06:00]Write to MH i2c: 01 00 00 7C 0B 87 [10:06:00]Write i2c OK [10:06:00]MH_I2C_Read... [10:06:01]*** Cut start [10:06:01]*** Purtial cut [10:06:01]*** Stage 1: CUTSNS_PIN = 1 [10:06:01]Read from MH i2c: 01 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: 01 07 00 [10:06:01]MH_I2C_Read... [10:06:01]*** Stop cut motor [10:06:01]*** Cut end [10:06:01]Read from MH i2c: 01 07 00 7C 0B 00 00 00 00 00 FF 0F 9C [10:06:01]process_action print_text done [10:06:01]requested_data is exist [10:06:01]produce_requested_data [10:06:01]requested_item fm.sn is exist - process it [10:06:01]wFMCommunicate request_size=4 [10:06:01]MH_SAM_APDU [10:06:01]CAPDU: 80 11 00 00 [10:06:01]Write to MH i2c: E2 08 00 7D 0B 80 11 00 00 00 00 00 00 02 [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:01]Read from MH i2c: E2 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 17 00 [10:06:01]MH_I2C_Read... [10:06:01]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 39 31 35 90 00 57 [10:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:06:01]wFMCommunicate OK [10:06:01]requested_item fd.num is exist - process it [10:06:01]SAM_PROTO_GetFieldsCounters [10:06:01]wFMCommunicate request_size=4 [10:06:01]MH_SAM_APDU [10:06:01]CAPDU: 80 13 00 00 [10:06:01]Write to MH i2c: E2 08 00 7E 0B 80 13 00 00 00 00 00 00 05 [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:01]Read from MH i2c: E2 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 62 00 [10:06:01]MH_I2C_Read... [10:06:01]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B0 13 01 00 0E 04 04 00 D1 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 D3 [10:06:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B0 13 01 00 0E 04 04 00 D1 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 [10:06:01]wFMCommunicate OK [10:06:01]SAM_PROTO_GetFieldsCounters done [10:06:01]requested_item shift.num is exist - process it [10:06:01]requested_item shift.opened is exist - process it [10:06:01]req_shift_opened [10:06:01]FM_GetShiftState [10:06:01]SAM_PROTO_GetShiftState [10:06:01]wFMCommunicate request_size=4 [10:06:01]MH_SAM_APDU [10:06:01]CAPDU: 80 13 01 00 [10:06:01]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [10:06:01]Write i2c OK [10:06:01]MH_I2C_Read... [10:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:01]Read from MH i2c: E2 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 0E 00 [10:06:01]MH_I2C_Read... [10:06:01]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F4 [10:06:01]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:06:01]wFMCommunicate OK [10:06:01]SAM_PROTO_GetShiftState done [10:06:01]FM_GetShiftState done [10:06:01]req_shift_opened done [10:06:01]requested_item shift.open_date is exist - process it [10:06:01]req_shift_open_date [10:06:01]req_shift_open_date done [10:06:01]produce_requested_data done [10:06:01]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70576,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:06:01]process_action_free print_text [10:06:01]json_value_free [10:06:01]json_value_free done [10:06:01]process_json_proto returns [10:06:01]Send response to host [10:06:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70576,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:06:01]free response buf [10:06:01]execute_script done [10:06:01]execute_script returns [10:06:01]free content buf [10:06:01]Sock 9.Close socket [10:06:01]Sock 9.Thread stoped [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:28]accept exits with 8 [10:07:28]New connection [10:07:28]New thread 3067321700 created [10:07:28]Thread 3067465060 joined [10:07:28]Waiting for new connection... [10:07:28] Sock 8.Parse request [10:07:28]Sock 8.Check first char [10:07:28]Sock 8.First char is OK [10:07:28]request: POST /json_proto HTTP/1.0 [10:07:28]Method: POST [10:07:28]URL: /json_proto [10:07:28]Method is POST - this is cgi request [10:07:28]url: /json_proto [10:07:28]query_string will be loaded in cgi processing [10:07:28]execute_cgi json_proto POST (null) [10:07:28]execute_cgi path=json_proto method=POST [10:07:28]POST find Content-Length [10:07:28]Host: 172.17.58.67:8080 [10:07:28]Content-Length: 805 [10:07:28]Content-Type: application/json [10:07:28] [10:07:28]POST finish read [10:07:28]Found Content-Length = 805 [10:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:28]execute_script... [10:07: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)141014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:28]POST & json_proto [10:07:28]process_json_proto [10:07:28]json parsed OK: [10:07:28]protocol is kg_v1.0 [10:07:28]action value=close_receipt [10:07:28]process_action close_receipt [10:07:28]cmd_close_receipt [10:07:28]MH_GetDate [10:07:28]Write to MH i2c: F0 00 00 80 0B 7A [10:07:28]Write i2c OK [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: F0 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: F0 09 00 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: F0 09 00 80 0B 00 E3 DE B9 66 94 51 63 64 0F [10:07:28]GetLastDocTimeStamp 1723456480 [10:07:28]current date 1723457251 [10:07:28]FM_GetShiftState [10:07:28]SAM_PROTO_GetShiftState [10:07:28]wFMCommunicate request_size=4 [10:07:28]MH_SAM_APDU [10:07:28]CAPDU: 80 13 01 00 [10:07:28]Write to MH i2c: E2 08 00 81 0B 80 13 01 00 00 00 00 00 09 [10:07:28]Write i2c OK [10:07:28]MH_I2C_Read... [10:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:28]Read from MH i2c: E2 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: E2 0E 00 [10:07:28]MH_I2C_Read... [10:07:28]Read from MH i2c: E2 0E 00 81 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F6 [10:07:28]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:07:28]wFMCommunicate OK [10:07:28]SAM_PROTO_GetShiftState done [10:07:28]FM_GetShiftState done [10:07:28]opened in 1723423336 [10:07:28]opened+sec_in_day 1723509736 [10:07:28]quantity*price = 150064 [10:07:28]sum+1 = 150066 [10:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.65 ÐСП 1% : 13.28 ÐДС 12% : 159.36 Ðаличными: 0.00 Безнал.: 1500.65 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 9 12.08.2024 10:07 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70577 ФПД: 177762579872475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T100731&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70577&fm=177762579872475&tin=02508201610067®Number=0000000000090913&sum=150065 [10:07:29]StoreToDocumentArchive [10:07:29]shift 465 fd 70577 [10:07:29]save to /storage/0465/doc_00070577 [10:07:29]save last doc name /storage/0465/doc_00070577 to /storage/kkm_last_doc_name [10:07:29]save OK [10:07:29]Clear old archive folders... [10:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:07:29]tlvbuf is 00B85890 [10:07:29]SAM_PROTO_ClearQueue [10:07:29]wFMCommunicate request_size=4 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 09 00 00 [10:07:29]Write to MH i2c: E2 08 00 8E 0B 80 09 00 00 00 00 00 00 0B [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 03 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [10:07:29]RAPDU: 90 00 [10:07:29]wFMCommunicate OK [10:07:29]SAM_PROTO_ClearQueue done [10:07:29]KKMCreateOFDPacket [10:07:29]OFDProtocolAddRootSTLVToBuf [10:07:29]FM_MakeSignedData [10:07:29]FM_MakeSignedData [10:07:29]SAM_PROTO_SignData [10:07:29]wFMCommunicate request_size=4 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 0D 01 02 [10:07:29]Write to MH i2c: E2 08 00 8F 0B 80 0D 01 02 00 00 00 00 13 [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 03 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [10:07:29]RAPDU: 90 00 [10:07:29]wFMCommunicate OK [10:07:29]wFMCommunicate request_size=255 [10:07:29]MH_SAM_APDU [10:07: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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E3 DE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B1 13 01 00 35 04 06 00 A1 AC 93 6D [10:07:29]Write to MH i2c: E2 02 01 90 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E3 DE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B1 13 01 00 35 04 06 00 A1 AC 93 6D 00 00 AB [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 03 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [10:07:29]RAPDU: 90 00 [10:07:29]wFMCommunicate OK [10:07:29]wFMCommunicate request_size=7 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 0D 02 02 02 7A DB [10:07:29]Write to MH i2c: E2 0A 00 91 0B 80 0D 02 02 02 00 7A DB 00 00 6F [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 03 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [10:07:29]RAPDU: 90 00 [10:07:29]wFMCommunicate OK [10:07:29]wFMCommunicate request_size=4 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 0D 03 02 [10:07:29]Write to MH i2c: E2 08 00 92 0B 80 0D 03 02 00 00 00 00 18 [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 0B 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 0B 00 92 0B 00 C0 9A 16 4D 9D 97 1D DA 90 00 01 [10:07:29]RAPDU: C0 9A 16 4D 9D 97 1D DA 90 00 [10:07:29]wFMCommunicate OK [10:07:29]SAM_PROTO_SignData done [10:07:29]FM_MakeSignedData done [10:07:29]CreateOFDProtocolMessage [10:07:29]wFMCommunicate request_size=4 [10:07:29]MH_SAM_APDU [10:07:29]CAPDU: 80 11 00 00 [10:07:29]Write to MH i2c: E2 08 00 93 0B 80 11 00 00 00 00 00 00 18 [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:29]Read from MH i2c: E2 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 17 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: E2 17 00 93 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6D [10:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:07:29]wFMCommunicate OK [10:07:29]CreateOFDProtocolMessage done [10:07:29]OFDSenderStorePacket 70577 [10:07:29]StoreOFDPacket docnum=70577 [10:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 F1 F7 04 01 1D 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E3 DE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B1 13 01 00 35 04 06 00 A1 AC 93 6D 7A DB C0 9A 16 4D 9D 97 1D DA [10:07:29]CheckFolder [10:07:29]dirname=/storage/ofd_packets [10:07:29]CheckFolder done [10:07:29]ProducePacketName [10:07:29]name=ofd_packets/00070577 [10:07:29]NVStorageSaveData ofd_packets/00070577 [10:07:29]File name is /storage/ofd_packets/00070577 [10:07:29]Write 298 bytes [10:07:29]NVStorageSaveData done [10:07:29]OFDSenderStorePacket done [10:07:29]KKMCreateOFDPacket done [10:07:29]NVStorageSaveData kkm_last_timestamp [10:07:29]File name is /storage/kkm_last_timestamp [10:07:29]Write 4 bytes [10:07:29]NVStorageSaveData done [10:07:29]ExternCall_PrintAddStr [10:07:29]wPrintStart [10:07:29]Write to MH i2c: 01 00 00 94 0B 9F [10:07:29]Write i2c OK [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 07 00 [10:07:29]MH_I2C_Read... [10:07:29]Read from MH i2c: 01 07 00 94 0B 00 00 00 00 00 FF 0F B4 [10:07:29]RasterBufferAndPrint [10:07:29]line Счет N : (1)141014 [10:07:29]line ИÐÐ: 02508201610067 [10:07:29]line Контрольно-КаÑÑовый Чек [10:07:29]line ПРОДÐЖР[10:07:29]line ТРК (МРК, ГÐК) : 24 [10:07:29]line Товар: 2710194210 [10:07:29]line ДТ-К-5 [10:07:29]line 20.170 * 74.40 [10:07:29]line = 1500.65 [10:07:29]line ÐДС 12% ÐСП 1% [10:07:29]line > о реализуемом товаре [10:07:29]line ИТОГО: 1500.65 [10:07:29]line ÐСП 1% : 13.28 [10:07:29]line ÐДС 12% : 159.36 [10:07:29]line Ðаличными: 0.00 [10:07:29]line Безнал.: 1500.65 [10:07:29]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:07:29]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:07:29]line СÐО: Общий режим [10:07:29]line Чек 9 12.08.2024 10:07 [10:07:29]line Смена: 465 ФФД: 1.0 [10:07:29]line ЗÐМ: 0300000140 [10:07:29]line РÐМ: 0000000000090913 [10:07:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:07:29]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [10:07:29]line ФМ: 0000000000874915 [10:07:29]line ФД: 70577 [10:07:29]line ФПД: 177762579872475 [10:07:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T100731&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70577&fm=177762579872475&tin=02508201610067®Number=0000000000090913&sum=150065 [10:07:30]OFD Sender: Processing packet 70577 [packets to send 67, broken 66] [10:07:30]ProducePacketName [10:07:30]name=ofd_packets/00070577 [10:07:30]OFD Sender: To server: ‡•öpG, [10:07:30]CommunicateWithHost lk.salyk.kg:30040 [10:07:30]ConnectInit lk.salyk.kg [10:07:30]written 0, free lines is 4095 [10:07:30]Connected sock=10 [10:07: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 39 31 35 0C 01 00 00 F1 F7 04 01 1D 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 E3 DE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B1 13 01 00 35 04 06 00 A1 AC 93 6D 7A DB C0 9A 16 4D 9D 97 1D DA [10:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F9 F6 47 00 C7 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 39 31 35 10 04 04 00 B1 13 01 00 F4 03 04 00 D0 85 B9 66 B6 04 01 00 00 F0 F1 89 30 8F 26 C4 78 [10:07:30]CommunicateWithHost err = 0 [10:07:30]CheckOFDResponse [10:07:30]1017 (14) - 77093643461234 [10:07:30]1041 (16) - 0000000000874915 [10:07:30]1040 (4) - 70577 [10:07:30]1012 (4) - 12.08.2024 03:47 [10:07:30]1206 (1) - 0 [10:07:30]OFD Sender: Remove packet 70577 [10:07:30]ProducePacketName [10:07:30]name=ofd_packets/00070577 [10:07:30]NVStorageDeleteData [10:07:30]Write to MH i2c: 01 00 00 BE 0B C9 [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 07 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 EF 0C CB [10:07:30]RasterBufferAndPrint [10:07:30]line [10:07:30]line [10:07:30]line [10:07:30]line [10:07:30]line [10:07:30]written 0, free lines is 3317 [10:07:30]MH_Cut [10:07:30]Write to MH i2c: D1 01 00 C5 0B 01 A2 [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: D1 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: D1 01 00 [10:07:30]MH_I2C_Read... [10:07:30]Read from MH i2c: D1 01 00 C5 0B 00 A1 [10:07:30]Write to MH i2c: 01 00 00 C6 0B D1 [10:07:30]Write i2c OK [10:07:30]MH_I2C_Read... [10:07:30]OFD Sender: No OFD packet to send [10:07:31]*** Cut start [10:07:31]*** Purtial cut [10:07:31]*** CUTSNS_PIN = 0 [10:07:31]*** Stage 1: CUTSNS_PIN = 1 [10:07:33]Read from MH i2c: 01 [10:07:33]MH_I2C_Read... [10:07:33]*** Stop cut motor [10:07:33]*** Cut end [10:07:33]Read from MH i2c: 01 07 00 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: 01 07 00 C6 0B 00 00 00 00 00 FF 0F E6 [10:07:33]process_action close_receipt done [10:07:33]requested_data is exist [10:07:33]produce_requested_data [10:07:33]requested_item fm.sn is exist - process it [10:07:33]wFMCommunicate request_size=4 [10:07:33]MH_SAM_APDU [10:07:33]CAPDU: 80 11 00 00 [10:07:33]Write to MH i2c: E2 08 00 C7 0B 80 11 00 00 00 00 00 00 4C [10:07:33]Write i2c OK [10:07:33]MH_I2C_Read... [10:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:33]Read from MH i2c: E2 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 17 00 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 17 00 C7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A1 [10:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:07:33]wFMCommunicate OK [10:07:33]requested_item fd.num is exist - process it [10:07:33]SAM_PROTO_GetFieldsCounters [10:07:33]wFMCommunicate request_size=4 [10:07:33]MH_SAM_APDU [10:07:33]CAPDU: 80 13 00 00 [10:07:33]Write to MH i2c: E2 08 00 C8 0B 80 13 00 00 00 00 00 00 4F [10:07:33]Write i2c OK [10:07:33]MH_I2C_Read... [10:07:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:33]Read from MH i2c: E2 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 62 00 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 62 00 C8 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B1 13 01 00 0E 04 04 00 D1 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 21 [10:07: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B1 13 01 00 0E 04 04 00 D1 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 [10:07:33]wFMCommunicate OK [10:07:33]SAM_PROTO_GetFieldsCounters done [10:07:33]requested_item shift.num is exist - process it [10:07:33]requested_item shift.opened is exist - process it [10:07:33]req_shift_opened [10:07:33]FM_GetShiftState [10:07:33]SAM_PROTO_GetShiftState [10:07:33]wFMCommunicate request_size=4 [10:07:33]MH_SAM_APDU [10:07:33]CAPDU: 80 13 01 00 [10:07:33]Write to MH i2c: E2 08 00 C9 0B 80 13 01 00 00 00 00 00 51 [10:07:33]Write i2c OK [10:07:33]MH_I2C_Read... [10:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:33]Read from MH i2c: E2 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 0E 00 [10:07:33]MH_I2C_Read... [10:07:33]Read from MH i2c: E2 0E 00 C9 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 3E [10:07:33]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:07:33]wFMCommunicate OK [10:07:33]SAM_PROTO_GetShiftState done [10:07:33]FM_GetShiftState done [10:07:33]req_shift_opened done [10:07:33]requested_item shift.open_date is exist - process it [10:07:33]req_shift_open_date [10:07:33]req_shift_open_date done [10:07:33]produce_requested_data done [10:07:33]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70577,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:07:33]process_action_free close_receipt [10:07:33]json_value_free [10:07:33]json_value_free done [10:07:33]process_json_proto returns [10:07:33]Send response to host [10:07:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70577,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:07:33]free response buf [10:07:33]execute_script done [10:07:33]execute_script returns [10:07:33]free content buf [10:07:33]Sock 8.Close socket [10:07:33]Sock 8.Thread stoped [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:09]accept exits with 9 [10:08:09]New connection [10:08:09]New thread 3067465060 created [10:08:09]Thread 3067321700 joined [10:08:09]Waiting for new connection... [10:08:09] Sock 9.Parse request [10:08:09]Sock 9.Check first char [10:08:09]Sock 9.First char is OK [10:08:09]request: POST /json_proto HTTP/1.0 [10:08:09]Method: POST [10:08:09]URL: /json_proto [10:08:09]Method is POST - this is cgi request [10:08:09]url: /json_proto [10:08:09]query_string will be loaded in cgi processing [10:08:09]execute_cgi json_proto POST (null) [10:08:09]execute_cgi path=json_proto method=POST [10:08:09]POST find Content-Length [10:08:09]Host: 172.17.58.67:8080 [10:08:09]Content-Length: 805 [10:08:09]Content-Type: application/json [10:08:09] [10:08:09]POST finish read [10:08:09]Found Content-Length = 805 [10:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:09]execute_script... [10:08: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)141015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:09]POST & json_proto [10:08:09]process_json_proto [10:08:09]json parsed OK: [10:08:09]protocol is kg_v1.0 [10:08:09]action value=close_receipt [10:08:09]process_action close_receipt [10:08:09]cmd_close_receipt [10:08:09]MH_GetDate [10:08:09]Write to MH i2c: F0 00 00 CA 0B C4 [10:08:09]Write i2c OK [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: F0 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: F0 09 00 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: F0 09 00 CA 0B 00 0C DF B9 66 94 51 63 64 83 [10:08:09]GetLastDocTimeStamp 1723457251 [10:08:09]current date 1723457292 [10:08:09]FM_GetShiftState [10:08:09]SAM_PROTO_GetShiftState [10:08:09]wFMCommunicate request_size=4 [10:08:09]MH_SAM_APDU [10:08:09]CAPDU: 80 13 01 00 [10:08:09]Write to MH i2c: E2 08 00 CB 0B 80 13 01 00 00 00 00 00 53 [10:08:09]Write i2c OK [10:08:09]MH_I2C_Read... [10:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:09]Read from MH i2c: E2 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 0E 00 [10:08:09]MH_I2C_Read... [10:08:09]Read from MH i2c: E2 0E 00 CB 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 40 [10:08:09]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:08:09]wFMCommunicate OK [10:08:09]SAM_PROTO_GetShiftState done [10:08:09]FM_GetShiftState done [10:08:09]opened in 1723423336 [10:08:09]opened+sec_in_day 1723509736 [10:08:09]quantity*price = 200061 [10:08:09]sum+1 = 200063 [10:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.62 ÐСП 1% : 17.70 ÐДС 12% : 212.45 Ðаличными: 0.00 Безнал.: 2000.62 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 10 12.08.2024 10:08 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70578 ФПД: 47404465119662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T100812&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70578&fm=47404465119662&tin=02508201610067®Number=0000000000090913&sum=200062 [10:08:10]StoreToDocumentArchive [10:08:10]shift 465 fd 70578 [10:08:10]save to /storage/0465/doc_00070578 [10:08:10]save last doc name /storage/0465/doc_00070578 to /storage/kkm_last_doc_name [10:08:10]save OK [10:08:10]Clear old archive folders... [10:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:08:10]tlvbuf is B6E25730 [10:08:10]SAM_PROTO_ClearQueue [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 09 00 00 [10:08:10]Write to MH i2c: E2 08 00 D8 0B 80 09 00 00 00 00 00 00 55 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [10:08:10]RAPDU: 90 00 [10:08:10]wFMCommunicate OK [10:08:10]SAM_PROTO_ClearQueue done [10:08:10]KKMCreateOFDPacket [10:08:10]OFDProtocolAddRootSTLVToBuf [10:08:10]FM_MakeSignedData [10:08:10]FM_MakeSignedData [10:08:10]SAM_PROTO_SignData [10:08:10]wFMCommunicate request_size=4 [10:08:10]MH_SAM_APDU [10:08:10]CAPDU: 80 0D 01 02 [10:08:10]Write to MH i2c: E2 08 00 D9 0B 80 0D 01 02 00 00 00 00 5D [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:10]Read from MH i2c: E2 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 [10:08:10]MH_I2C_Read... [10:08:10]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [10:08:10]RAPDU: 90 00 [10:08:10]wFMCommunicate OK [10:08:10]wFMCommunicate request_size=255 [10:08:10]MH_SAM_APDU [10:08: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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 00 00 00 00 00 00 39 04 06 00 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 0C DF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B2 13 01 00 35 04 06 00 2B 1D 36 4D [10:08:10]Write to MH i2c: E2 02 01 DA 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 00 00 00 00 00 00 39 04 06 00 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 0C DF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B2 13 01 00 35 04 06 00 2B 1D 36 4D 00 00 B9 [10:08:10]Write i2c OK [10:08:10]MH_I2C_Read... [10:08:10]OFD Sender: No OFD packet to send [10:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [10:08:11]RAPDU: 90 00 [10:08:11]wFMCommunicate OK [10:08:11]wFMCommunicate request_size=7 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 0D 02 02 02 E1 AE [10:08:11]Write to MH i2c: E2 0A 00 DB 0B 80 0D 02 02 02 00 E1 AE 00 00 F3 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 03 00 DB 0B 00 90 00 5A [10:08:11]RAPDU: 90 00 [10:08:11]wFMCommunicate OK [10:08:11]wFMCommunicate request_size=4 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 0D 03 02 [10:08:11]Write to MH i2c: E2 08 00 DC 0B 80 0D 03 02 00 00 00 00 62 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 0B 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 0B 00 DC 0B 00 A7 EE E4 08 31 D4 71 39 90 00 93 [10:08:11]RAPDU: A7 EE E4 08 31 D4 71 39 90 00 [10:08:11]wFMCommunicate OK [10:08:11]SAM_PROTO_SignData done [10:08:11]FM_MakeSignedData done [10:08:11]CreateOFDProtocolMessage [10:08:11]wFMCommunicate request_size=4 [10:08:11]MH_SAM_APDU [10:08:11]CAPDU: 80 11 00 00 [10:08:11]Write to MH i2c: E2 08 00 DD 0B 80 11 00 00 00 00 00 00 62 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:11]Read from MH i2c: E2 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 17 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: E2 17 00 DD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B7 [10:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:08:11]wFMCommunicate OK [10:08:11]CreateOFDProtocolMessage done [10:08:11]OFDSenderStorePacket 70578 [10:08:11]StoreOFDPacket docnum=70578 [10:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 9C 87 04 01 8E 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 00 00 00 00 00 00 39 04 06 00 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 0C DF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B2 13 01 00 35 04 06 00 2B 1D 36 4D E1 AE A7 EE E4 08 31 D4 71 39 [10:08:11]CheckFolder [10:08:11]dirname=/storage/ofd_packets [10:08:11]CheckFolder done [10:08:11]ProducePacketName [10:08:11]name=ofd_packets/00070578 [10:08:11]NVStorageSaveData ofd_packets/00070578 [10:08:11]File name is /storage/ofd_packets/00070578 [10:08:11]Write 298 bytes [10:08:11]NVStorageSaveData done [10:08:11]OFDSenderStorePacket done [10:08:11]KKMCreateOFDPacket done [10:08:11]NVStorageSaveData kkm_last_timestamp [10:08:11]File name is /storage/kkm_last_timestamp [10:08:11]Write 4 bytes [10:08:11]NVStorageSaveData done [10:08:11]ExternCall_PrintAddStr [10:08:11]wPrintStart [10:08:11]Write to MH i2c: 01 00 00 DE 0B E9 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 DE 0B 00 00 00 00 00 FF 0F FE [10:08:11]RasterBufferAndPrint [10:08:11]line Счет N : (1)141015 [10:08:11]line ИÐÐ: 02508201610067 [10:08:11]line Контрольно-КаÑÑовый Чек [10:08:11]line ПРОДÐЖР[10:08:11]line ТРК (МРК, ГÐК) : 34 [10:08:11]line Товар: 2710194210 [10:08:11]line ДТ-К-5 [10:08:11]line 26.890 * 74.40 [10:08:11]line = 2000.62 [10:08:11]line ÐДС 12% ÐСП 1% [10:08:11]line > о реализуемом товаре [10:08:11]line ИТОГО: 2000.62 [10:08:11]line ÐСП 1% : 17.70 [10:08:11]line ÐДС 12% : 212.45 [10:08:11]line Ðаличными: 0.00 [10:08:11]line Безнал.: 2000.62 [10:08:11]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:08:11]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:08:11]line СÐО: Общий режим [10:08:11]line Чек 10 12.08.2024 10:08 [10:08:11]line Смена: 465 ФФД: 1.0 [10:08:11]line ЗÐМ: 0300000140 [10:08:11]line РÐМ: 0000000000090913 [10:08:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:08:11]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [10:08:11]line ФМ: 0000000000874915 [10:08:11]line ФД: 70578 [10:08:11]line ФПД: 47404465119662 [10:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T100812&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70578&fm=47404465119662&tin=02508201610067®Number=0000000000090913&sum=200062 [10:08:11]OFD Sender: Processing packet 70578 [packets to send 67, broken 66] [10:08:11]ProducePacketName [10:08:11]name=ofd_packets/00070578 [10:08:11]OFD Sender: To server: ‡•öpG, [10:08:11]CommunicateWithHost lk.salyk.kg:30040 [10:08:11]ConnectInit lk.salyk.kg [10:08:11]written 0, free lines is 4095 [10:08:11]Connected sock=10 [10:08: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 39 31 35 0C 01 00 00 9C 87 04 01 8E 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 00 00 00 00 00 00 39 04 06 00 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 0C DF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B2 13 01 00 35 04 06 00 2B 1D 36 4D E1 AE A7 EE E4 08 31 D4 71 39 [10:08:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 56 82 47 00 A4 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 39 31 35 10 04 04 00 B2 13 01 00 F4 03 04 00 FA 85 B9 66 B6 04 01 00 00 8D A8 35 4A B2 DF 73 15 [10:08:11]CommunicateWithHost err = 0 [10:08:11]CheckOFDResponse [10:08:11]1017 (14) - 77093643461234 [10:08:11]1041 (16) - 0000000000874915 [10:08:11]1040 (4) - 70578 [10:08:11]1012 (4) - 12.08.2024 03:48 [10:08:11]1206 (1) - 0 [10:08:11]OFD Sender: Remove packet 70578 [10:08:11]ProducePacketName [10:08:11]name=ofd_packets/00070578 [10:08:11]NVStorageDeleteData [10:08:11]Write to MH i2c: 01 00 00 08 0C 14 [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 F4 0C 1B [10:08:11]RasterBufferAndPrint [10:08:11]line [10:08:11]line [10:08:11]line [10:08:11]line [10:08:11]line [10:08:11]written 0, free lines is 3322 [10:08:11]MH_Cut [10:08:11]Write to MH i2c: D1 01 00 0F 0C 01 ED [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: D1 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: D1 01 00 [10:08:11]MH_I2C_Read... [10:08:11]Read from MH i2c: D1 01 00 0F 0C 00 EC [10:08:11]Write to MH i2c: 01 00 00 10 0C 1C [10:08:11]Write i2c OK [10:08:11]MH_I2C_Read... [10:08:12]OFD Sender: No OFD packet to send [10:08:12]*** Cut start [10:08:12]*** Purtial cut [10:08:12]*** Stage 1: CUTSNS_PIN = 1 [10:08:12]Read from MH i2c: 01 [10:08:12]MH_I2C_Read... [10:08:12]*** Stop cut motor [10:08:12]*** Cut end [10:08:12]Read from MH i2c: 01 07 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 FF 0F 31 [10:08:12]process_action close_receipt done [10:08:12]requested_data is exist [10:08:12]produce_requested_data [10:08:12]requested_item fm.sn is exist - process it [10:08:12]wFMCommunicate request_size=4 [10:08:12]MH_SAM_APDU [10:08:12]CAPDU: 80 11 00 00 [10:08:12]Write to MH i2c: E2 08 00 11 0C 80 11 00 00 00 00 00 00 97 [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:12]Read from MH i2c: E2 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 17 00 [10:08:12]MH_I2C_Read... [10:08:12]Read from MH i2c: E2 17 00 11 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EC [10:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:08:12]wFMCommunicate OK [10:08:12]requested_item fd.num is exist - process it [10:08:12]SAM_PROTO_GetFieldsCounters [10:08:12]wFMCommunicate request_size=4 [10:08:12]MH_SAM_APDU [10:08:12]CAPDU: 80 13 00 00 [10:08:12]Write to MH i2c: E2 08 00 12 0C 80 13 00 00 00 00 00 00 9A [10:08:12]Write i2c OK [10:08:12]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 62 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 62 00 12 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B2 13 01 00 0E 04 04 00 D1 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 70 [10:08: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B2 13 01 00 0E 04 04 00 D1 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 [10:08:13]wFMCommunicate OK [10:08:13]SAM_PROTO_GetFieldsCounters done [10:08:13]requested_item shift.num is exist - process it [10:08:13]requested_item shift.opened is exist - process it [10:08:13]req_shift_opened [10:08:13]FM_GetShiftState [10:08:13]SAM_PROTO_GetShiftState [10:08:13]wFMCommunicate request_size=4 [10:08:13]MH_SAM_APDU [10:08:13]CAPDU: 80 13 01 00 [10:08:13]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [10:08:13]Write i2c OK [10:08:13]MH_I2C_Read... [10:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:13]Read from MH i2c: E2 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 0E 00 [10:08:13]MH_I2C_Read... [10:08:13]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 89 [10:08:13]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:08:13]wFMCommunicate OK [10:08:13]SAM_PROTO_GetShiftState done [10:08:13]FM_GetShiftState done [10:08:13]req_shift_opened done [10:08:13]requested_item shift.open_date is exist - process it [10:08:13]req_shift_open_date [10:08:13]req_shift_open_date done [10:08:13]produce_requested_data done [10:08:13]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70578,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:08:13]process_action_free close_receipt [10:08:13]json_value_free [10:08:13]json_value_free done [10:08:13]process_json_proto returns [10:08:13]Send response to host [10:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70578,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:08:13]free response buf [10:08:13]execute_script done [10:08:13]execute_script returns [10:08:13]free content buf [10:08:13]Sock 9.Close socket [10:08:13]Sock 9.Thread stoped [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:34]accept exits with 8 [10:10:34]New connection [10:10:34]New thread 3067321700 created [10:10:34]Thread 3067465060 joined [10:10:34]Waiting for new connection... [10:10:34] Sock 8.Parse request [10:10:34]Sock 8.Check first char [10:10:34]Sock 8.First char is OK [10:10:34]request: POST /json_proto HTTP/1.0 [10:10:34]Method: POST [10:10:34]URL: /json_proto [10:10:34]Method is POST - this is cgi request [10:10:34]url: /json_proto [10:10:34]query_string will be loaded in cgi processing [10:10:34]execute_cgi json_proto POST (null) [10:10:34]execute_cgi path=json_proto method=POST [10:10:34]POST find Content-Length [10:10:34]Host: 172.17.58.67:8080 [10:10:34]Content-Length: 1189 [10:10:34]Content-Type: application/json [10:10:34] [10:10:34]POST finish read [10:10:34]Found Content-Length = 1189 [10:10: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141016\u000A12.08.2024 09:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 988.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74630\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:34]execute_script... [10:10: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141016\u000A12.08.2024 09:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 988.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74630\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:34]POST & json_proto [10:10:34]process_json_proto [10:10:34]json parsed OK: [10:10:34]protocol is kg_v1.0 [10:10:34]action value=print_text [10:10:34]process_action print_text [10:10:34]cmd_print_text [10:10:34]ExternCall_PrintAddStr [10:10:34]wPrintStart [10:10:34]Write to MH i2c: 01 00 00 14 0C 20 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: 01 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: 01 07 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: 01 07 00 14 0C 00 00 00 00 00 FF 0F 35 [10:10:34]RasterBufferAndPrint [10:10:34]line *****ТОВÐРÐЫЙ ЧЕК***** [10:10:34]line ÐЗС 39 [10:10:34]line Партнер нефть [10:10:34]line 02508201610067 [10:10:34]line КаÑÑир : Мирбек к Ð. [10:10:34]line Счет N : (1)141016 [10:10:34]line 12.08.2024 09:29 [10:10:34]line ПРОДÐЖР[10:10:34]line ТРК (МРК, ГÐК): 41 [10:10:34]line Вид ГСМ : 2710124130 [10:10:34]line Ðи-92-К-5 [10:10:34]line 15.000 x 65.90 [10:10:34]line ИТОГ: 988.50 [10:10:34]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [10:10:34]line 74630 [10:10:34]line ______________________ [10:10:34]line (подпиÑÑŒ) [10:10:34]written 0, free lines is 4095 [10:10:34]Write to MH i2c: 01 00 00 28 0C 34 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: 01 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: 01 07 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: 01 07 00 28 0C 00 00 00 00 00 0F 0E 58 [10:10:34]RasterBufferAndPrint [10:10:34]line [10:10:34]line [10:10:34]line [10:10:34]line [10:10:34]line [10:10:34]written 0, free lines is 3600 [10:10:34]MH_Cut [10:10:34]Write to MH i2c: D1 01 00 2F 0C 01 0D [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: D1 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: D1 01 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: D1 01 00 2F 0C 00 0C [10:10:34]Write to MH i2c: 01 00 00 30 0C 3C [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]*** Cut start [10:10:34]*** Purtial cut [10:10:34]*** CUTSNS_PIN = 0 [10:10:35]*** Stage 1: CUTSNS_PIN = 1 [10:10:36]Read from MH i2c: 01 [10:10:36]MH_I2C_Read... [10:10:36]*** Stop cut motor [10:10:36]*** Cut end [10:10:36]Read from MH i2c: 01 07 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 30 0C 00 00 00 00 00 FF 0F 51 [10:10:36]process_action print_text done [10:10:36]requested_data is exist [10:10:36]produce_requested_data [10:10:36]requested_item fm.sn is exist - process it [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 11 00 00 [10:10:36]Write to MH i2c: E2 08 00 31 0C 80 11 00 00 00 00 00 00 B7 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:36]Read from MH i2c: E2 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: E2 17 00 [10:10:36]MH_I2C_Read... [10:10:36]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 39 31 35 90 00 0C [10:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:10:36]wFMCommunicate OK [10:10:36]requested_item fd.num is exist - process it [10:10:36]SAM_PROTO_GetFieldsCounters [10:10:36]wFMCommunicate request_size=4 [10:10:36]MH_SAM_APDU [10:10:36]CAPDU: 80 13 00 00 [10:10:36]Write to MH i2c: E2 08 00 32 0C 80 13 00 00 00 00 00 00 BA [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 62 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 62 00 32 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B2 13 01 00 0E 04 04 00 D1 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 90 [10:10: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B2 13 01 00 0E 04 04 00 D1 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 [10:10:37]wFMCommunicate OK [10:10:37]SAM_PROTO_GetFieldsCounters done [10:10:37]requested_item shift.num is exist - process it [10:10:37]requested_item shift.opened is exist - process it [10:10:37]req_shift_opened [10:10:37]FM_GetShiftState [10:10:37]SAM_PROTO_GetShiftState [10:10:37]wFMCommunicate request_size=4 [10:10:37]MH_SAM_APDU [10:10:37]CAPDU: 80 13 01 00 [10:10:37]Write to MH i2c: E2 08 00 33 0C 80 13 01 00 00 00 00 00 BC [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 0E 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 0E 00 33 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 A9 [10:10:37]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:10:37]wFMCommunicate OK [10:10:37]SAM_PROTO_GetShiftState done [10:10:37]FM_GetShiftState done [10:10:37]req_shift_opened done [10:10:37]requested_item shift.open_date is exist - process it [10:10:37]req_shift_open_date [10:10:37]req_shift_open_date done [10:10:37]produce_requested_data done [10:10:37]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70578,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:10:37]process_action_free print_text [10:10:37]json_value_free [10:10:37]json_value_free done [10:10:37]process_json_proto returns [10:10:37]Send response to host [10:10:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70578,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:10:37]free response buf [10:10:37]execute_script done [10:10:37]execute_script returns [10:10:37]free content buf [10:10:37]Sock 8.Close socket [10:10:37]Sock 8.Thread stoped [10:10:37]OFD Sender: No OFD packet to send [10:10:37]int [10:10:37]Write to MH i2c: 01 00 00 34 0C 40 [10:10:37]*** FLAG_PRN_KEY set [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 34 0C 00 08 00 00 00 FF 0F 5D [10:10:37]state=0 [10:10:37]Key pressed [10:10:37]Feed [10:10:37]Write to MH i2c: D8 00 00 35 0C 18 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: D8 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: D8 01 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: D8 01 00 35 0C 00 19 [10:10:37]int [10:10:37]Write to MH i2c: 01 00 00 36 0C 42 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 36 0C 00 48 00 00 00 3C 00 CD [10:10:37]state=2 [10:10:37]Key pressed [10:10:38]int [10:10:38]Write to MH i2c: 01 00 00 37 0C 43 [10:10:38]*** FLAG_PRN_KEY reset [10:10:38]Write i2c OK [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: 01 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: 01 07 00 [10:10:38]MH_I2C_Read... [10:10:38]Read from MH i2c: 01 07 00 37 0C 00 00 00 00 00 FC 0F 55 [10:10:38]state=2 [10:10:38]Stop feed [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23: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: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:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:47]accept exits with 9 [10:29:47]New connection [10:29:47]New thread 3067465060 created [10:29:47]Thread 3067321700 joined [10:29:47]Waiting for new connection... [10:29:47] Sock 9.Parse request [10:29:47]Sock 9.Check first char [10:29:47]Sock 9.First char is OK [10:29:47]request: POST /json_proto HTTP/1.0 [10:29:47]Method: POST [10:29:47]URL: /json_proto [10:29:47]Method is POST - this is cgi request [10:29:47]url: /json_proto [10:29:47]query_string will be loaded in cgi processing [10:29:47]execute_cgi json_proto POST (null) [10:29:47]execute_cgi path=json_proto method=POST [10:29:47]POST find Content-Length [10:29:47]Host: 172.17.58.67:8080 [10:29:47]Content-Length: 1189 [10:29:47]Content-Type: application/json [10:29:47] [10:29:47]POST finish read [10:29:47]Found Content-Length = 1189 [10:29: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141017\u000A12.08.2024 09:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A53434\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:47]execute_script... [10:29: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141017\u000A12.08.2024 09:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A53434\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:47]POST & json_proto [10:29:47]process_json_proto [10:29:47]json parsed OK: [10:29:47]protocol is kg_v1.0 [10:29:47]action value=print_text [10:29:47]process_action print_text [10:29:47]cmd_print_text [10:29:47]ExternCall_PrintAddStr [10:29:47]wPrintStart [10:29:47]Write to MH i2c: 01 00 00 38 0C 44 [10:29:47]Write i2c OK [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: 01 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: 01 07 00 [10:29:47]MH_I2C_Read... [10:29:47]Read from MH i2c: 01 07 00 38 0C 00 00 00 00 00 FF 0F 59 [10:29:47]RasterBufferAndPrint [10:29:47]line *****ТОВÐРÐЫЙ ЧЕК***** [10:29:47]line ÐЗС 39 [10:29:47]line Партнер нефть [10:29:47]line 02508201610067 [10:29:47]line КаÑÑир : Мирбек к Ð. [10:29:47]line Счет N : (1)141017 [10:29:47]line 12.08.2024 09:49 [10:29:47]line ПРОДÐЖР[10:29:47]line ТРК (МРК, ГÐК): 31 [10:29:47]line Вид ГСМ : 2710124130 [10:29:47]line Ðи-92-К-5 [10:29:47]line 10.000 x 65.90 [10:29:47]line ИТОГ: 659.00 [10:29:47]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [10:29:47]line 53434 [10:29:47]line ______________________ [10:29:47]line (подпиÑÑŒ) [10:29:47]written 0, free lines is 4095 [10:29:48]Write to MH i2c: 01 00 00 4C 0C 58 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 4C 0C 00 00 00 00 00 11 0E 7E [10:29:48]RasterBufferAndPrint [10:29:48]line [10:29:48]line [10:29:48]line [10:29:48]line [10:29:48]line [10:29:48]written 0, free lines is 3602 [10:29:48]MH_Cut [10:29:48]Write to MH i2c: D1 01 00 53 0C 01 31 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: D1 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: D1 01 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: D1 01 00 53 0C 00 30 [10:29:48]Write to MH i2c: 01 00 00 54 0C 60 [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]OFD Sender: No OFD packet to send [10:29:48]*** Cut start [10:29:48]*** Purtial cut [10:29:48]*** Stage 1: CUTSNS_PIN = 1 [10:29:48]Read from MH i2c: 01 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: 01 07 00 [10:29:48]MH_I2C_Read... [10:29:48]*** Stop cut motor [10:29:48]*** Cut end [10:29:48]Read from MH i2c: 01 07 00 54 0C 00 00 00 00 00 FF 0F 75 [10:29:48]process_action print_text done [10:29:48]requested_data is exist [10:29:48]produce_requested_data [10:29:48]requested_item fm.sn is exist - process it [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 11 00 00 [10:29:48]Write to MH i2c: E2 08 00 55 0C 80 11 00 00 00 00 00 00 DB [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:48]Read from MH i2c: E2 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 [10:29:48]MH_I2C_Read... [10:29:48]Read from MH i2c: E2 17 00 55 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 30 [10:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:29:48]wFMCommunicate OK [10:29:48]requested_item fd.num is exist - process it [10:29:48]SAM_PROTO_GetFieldsCounters [10:29:48]wFMCommunicate request_size=4 [10:29:48]MH_SAM_APDU [10:29:48]CAPDU: 80 13 00 00 [10:29:48]Write to MH i2c: E2 08 00 56 0C 80 13 00 00 00 00 00 00 DE [10:29:48]Write i2c OK [10:29:48]MH_I2C_Read... [10:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:49]Read from MH i2c: E2 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 62 00 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 62 00 56 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B2 13 01 00 0E 04 04 00 D1 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 B4 [10:29:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B2 13 01 00 0E 04 04 00 D1 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 [10:29:49]wFMCommunicate OK [10:29:49]SAM_PROTO_GetFieldsCounters done [10:29:49]requested_item shift.num is exist - process it [10:29:49]requested_item shift.opened is exist - process it [10:29:49]req_shift_opened [10:29:49]FM_GetShiftState [10:29:49]SAM_PROTO_GetShiftState [10:29:49]wFMCommunicate request_size=4 [10:29:49]MH_SAM_APDU [10:29:49]CAPDU: 80 13 01 00 [10:29:49]Write to MH i2c: E2 08 00 57 0C 80 13 01 00 00 00 00 00 E0 [10:29:49]Write i2c OK [10:29:49]MH_I2C_Read... [10:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:49]Read from MH i2c: E2 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 0E 00 [10:29:49]MH_I2C_Read... [10:29:49]Read from MH i2c: E2 0E 00 57 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 CD [10:29:49]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:29:49]wFMCommunicate OK [10:29:49]SAM_PROTO_GetShiftState done [10:29:49]FM_GetShiftState done [10:29:49]req_shift_opened done [10:29:49]requested_item shift.open_date is exist - process it [10:29:49]req_shift_open_date [10:29:49]req_shift_open_date done [10:29:49]produce_requested_data done [10:29:49]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70578,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:29:49]process_action_free print_text [10:29:49]json_value_free [10:29:49]json_value_free done [10:29:49]process_json_proto returns [10:29:49]Send response to host [10:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70578,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:29:49]free response buf [10:29:49]execute_script done [10:29:49]execute_script returns [10:29:49]free content buf [10:29:49]Sock 9.Close socket [10:29:49]Sock 9.Thread stoped [10:29:51]int [10:29:51]Write to MH i2c: 01 00 00 58 0C 64 [10:29:51]*** FLAG_PRN_KEY set [10:29:51]Write i2c OK [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: 01 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: 01 07 00 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: 01 07 00 58 0C 00 08 00 00 00 FF 0F 81 [10:29:51]state=0 [10:29:51]Key pressed [10:29:51]Feed [10:29:51]Write to MH i2c: D8 00 00 59 0C 3C [10:29:51]Write i2c OK [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: D8 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: D8 01 00 [10:29:51]MH_I2C_Read... [10:29:51]Read from MH i2c: D8 01 00 59 0C 00 3D [10:29:52]int [10:29:52]Write to MH i2c: 01 00 00 5A 0C 66 [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 5A 0C 00 48 00 00 00 3C 00 F1 [10:29:52]state=2 [10:29:52]Key pressed [10:29:52]int [10:29:52]Write to MH i2c: 01 00 00 5B 0C 67 [10:29:52]*** FLAG_PRN_KEY reset [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 FE 0F 7B [10:29:52]state=2 [10:29:52]Stop feed [10:29:52]int [10:29:52]Write to MH i2c: 01 00 00 5C 0C 68 [10:29:52]*** FLAG_PRN_KEY set [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 5C 0C 00 08 00 00 00 FF 0F 85 [10:29:52]state=0 [10:29:52]Key pressed [10:29:52]Feed [10:29:52]Write to MH i2c: D8 00 00 5D 0C 40 [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: D8 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: D8 01 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: D8 01 00 5D 0C 00 41 [10:29:52]int [10:29:52]Write to MH i2c: 01 00 00 5E 0C 6A [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 5E 0C 00 48 00 00 00 3C 00 F5 [10:29:52]state=2 [10:29:52]Key pressed [10:29:52]int [10:29:52]Write to MH i2c: 01 00 00 5F 0C 6B [10:29:52]*** FLAG_PRN_KEY reset [10:29:52]Write i2c OK [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 [10:29:52]MH_I2C_Read... [10:29:52]Read from MH i2c: 01 07 00 5F 0C 00 00 00 00 00 F5 0F 76 [10:29:52]state=2 [10:29:52]Stop feed [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:22]accept exits with 8 [10:31:22]New connection [10:31:22]New thread 3067321700 created [10:31:22]Thread 3067465060 joined [10:31:22]Waiting for new connection... [10:31:22] Sock 8.Parse request [10:31:22]Sock 8.Check first char [10:31:22]Sock 8.First char is OK [10:31:22]request: POST /json_proto HTTP/1.0 [10:31:22]Method: POST [10:31:22]URL: /json_proto [10:31:22]Method is POST - this is cgi request [10:31:22]url: /json_proto [10:31:22]query_string will be loaded in cgi processing [10:31:22]execute_cgi json_proto POST (null) [10:31:22]execute_cgi path=json_proto method=POST [10:31:22]POST find Content-Length [10:31:22]Host: 172.17.58.67:8080 [10:31:22]Content-Length: 808 [10:31:22]Content-Type: application/json [10:31:22] [10:31:22]POST finish read [10:31:22]Found Content-Length = 808 [10:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:22]execute_script... [10:31:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:22]POST & json_proto [10:31:22]process_json_proto [10:31:22]json parsed OK: [10:31:22]protocol is kg_v1.0 [10:31:22]action value=close_receipt [10:31:22]process_action close_receipt [10:31:22]cmd_close_receipt [10:31:22]MH_GetDate [10:31:22]Write to MH i2c: F0 00 00 60 0C 5B [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: F0 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: F0 09 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: F0 09 00 60 0C 00 7E E4 B9 66 94 51 63 64 91 [10:31:22]GetLastDocTimeStamp 1723457292 [10:31:22]current date 1723458686 [10:31:22]FM_GetShiftState [10:31:22]SAM_PROTO_GetShiftState [10:31:22]wFMCommunicate request_size=4 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 13 01 00 [10:31:22]Write to MH i2c: E2 08 00 61 0C 80 13 01 00 00 00 00 00 EA [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0E 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0E 00 61 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D7 [10:31:22]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:31:22]wFMCommunicate OK [10:31:22]SAM_PROTO_GetShiftState done [10:31:22]FM_GetShiftState done [10:31:22]opened in 1723423336 [10:31:22]opened+sec_in_day 1723509736 [10:31:22]quantity*price = 200006 [10:31:22]sum+1 = 200008 [10:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре [10:37:11]line ИТОГО: 2000.07 [10:37:11]line ÐСП 1% : 17.70 [10:37:11]line ÐДС 12% : 212.40 [10:37:11]line Ðаличными: 0.00 [10:37:11]line Безнал.: 2000.07 [10:37:11]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:37:11]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:37:11]line СÐО: Общий режим [10:37:11]line Чек 11 12.08.2024 10:31 [10:37:11]line Смена: 465 ФФД: 1.0 [10:37:11]line ЗÐМ: 0300000140 [10:37:11]line РÐМ: 0000000000090913 [10:37:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:37:11]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [10:37:11]line ФМ: 0000000000874915 [10:37:11]line ФД: 70579 [10:37:11]line ФПД: 214414969745845 [10:37:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T103126&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70579&fm=214414969745845&tin=02508201610067®Number=0000000000090913&sum=200007 [10:37:11]written 0, free lines is 4095 [10:37:11]Write to MH i2c: 01 00 00 47 00 47 [10:37:11]Write i2c OK [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: 01 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: 01 07 00 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 FF 0C 59 [10:37:11]RasterBufferAndPrint [10:37:11]line [10:37:11]line [10:37:11]line [10:37:11]line [10:37:11]line [10:37:11]written 0, free lines is 3339 [10:37:11]MH_Cut [10:37:11]Write to MH i2c: D1 01 00 4E 00 01 20 [10:37:11]Write i2c OK [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: D1 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: D1 01 00 [10:37:11]MH_I2C_Read... [10:37:11]Read from MH i2c: D1 01 00 4E 00 00 1F [10:37:11]Write to MH i2c: 01 00 00 4F 00 4F [10:37:11]Write i2c OK [10:37:11]MH_I2C_Read... [10:37:12]OFD Sender: No OFD packet to send [10:37:12]*** Cut start [10:37:12]*** Purtial cut [10:37:12]*** Stage 1: CUTSNS_PIN = 1 [10:37:12]Read from MH i2c: 01 [10:37:12]MH_I2C_Read... [10:37:12]*** Stop cut motor [10:37:12]*** Cut end [10:37:12]Read from MH i2c: 01 07 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [10:37:12]process_action print_doc done [10:37:12]requested_data is exist [10:37:12]produce_requested_data [10:37:12]produce_requested_data return (null) [10:37:12]process_action_free print_doc [10:37:12]json_value_free [10:37:12]json_value_free done [10:37:12]process_json_proto returns [10:37:12]Send response to host [10:37:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:37:12]free response buf [10:37:12]execute_script done [10:37:12]execute_script returns [10:37:12]free content buf [10:37:12]Sock 6.Close socket [10:37:12]Sock 6.Thread stoped [10:37:16]accept exits with 9 [10:37:16]New connection [10:37:16]New thread 3066699108 created [10:37:16]Thread 3066842468 joined [10:37:16]Waiting for new connection... [10:37:16] Sock 9.Parse request [10:37:16]Sock 9.Check first char [10:37:16]Sock 9.First char is OK [10:37:16]request: POST /json_proto HTTP/1.0 [10:37:16]Method: POST [10:37:16]URL: /json_proto [10:37:16]Method is POST - this is cgi request [10:37:16]url: /json_proto [10:37:16]query_string will be loaded in cgi processing [10:37:16]execute_cgi json_proto POST (null) [10:37:16]execute_cgi path=json_proto method=POST [10:37:16]POST find Content-Length [10:37:16]Host: 172.17.58.67:8080 [10:37:16]Content-Length: 682 [10:37:16]Content-Type: application/json [10:37:16] [10:37:16]POST finish read [10:37:16]Found Content-Length = 682 [10:37:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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:37:16]execute_script... [10:37: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)141020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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:37:16]POST & json_proto [10:37:16]process_json_proto [10:37:16]json parsed OK: [10:37:16]protocol is kg_v1.0 [10:37:16]action value=close_receipt [10:37:16]process_action close_receipt [10:37:16]cmd_close_receipt [10:37:16]MH_GetDate [10:37:16]Write to MH i2c: F0 00 00 50 00 3F [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: F0 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: F0 09 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: F0 09 00 50 00 00 DC E5 B9 66 94 51 63 64 D4 [10:37:16]GetLastDocTimeStamp 1723458686 [10:37:16]current date 1723459036 [10:37:16]FM_GetShiftState [10:37:16]SAM_PROTO_GetShiftState [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 13 01 00 [10:37:16]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 BB [10:37:16]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_GetShiftState done [10:37:16]FM_GetShiftState done [10:37:16]opened in 1723423336 [10:37:16]opened+sec_in_day 1723509736 [10:37:16]quantity*price = 100036 [10:37:16]sum+1 = 100037 [10:37:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.36 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 12 12.08.2024 10:37 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70580 ФПД: 191695387587741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T103716&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70580&fm=191695387587741&tin=02508201610067®Number=0000000000090913&sum=100000 [10:37:17]StoreToDocumentArchive [10:37:17]shift 465 fd 70580 [10:37:17]save to /storage/0465/doc_00070580 [10:37:17]save last doc name /storage/0465/doc_00070580 to /storage/kkm_last_doc_name [10:37:17]save OK [10:37:17]Clear old archive folders... [10:37:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:17]tlvbuf is 010D60C0 [10:37:17]SAM_PROTO_ClearQueue [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 09 00 00 [10:37:17]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [10:37:17]RAPDU: 90 00 [10:37:17]wFMCommunicate OK [10:37:17]SAM_PROTO_ClearQueue done [10:37:17]KKMCreateOFDPacket [10:37:17]OFDProtocolAddRootSTLVToBuf [10:37:17]FM_MakeSignedData [10:37:17]FM_MakeSignedData [10:37:17]SAM_PROTO_SignData [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 0D 01 02 [10:37:17]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [10:37:17]RAPDU: 90 00 [10:37:17]wFMCommunicate OK [10:37:17]wFMCommunicate request_size=255 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 DC E5 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B4 13 01 00 35 04 06 00 AE [10:37:17]Write to MH i2c: E2 02 01 60 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 OFD Sender: No OFD packet to send [10:37:17]00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 DC E5 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B4 13 01 00 35 04 06 00 AE 00 00 2C [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [10:37:17]RAPDU: 90 00 [10:37:17]wFMCommunicate OK [10:37:17]wFMCommunicate request_size=10 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 0D 02 02 05 58 8F 7B 74 9D [10:37:17]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 58 8F 7B 74 9D 00 00 58 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [10:37:17]RAPDU: 90 00 [10:37:17]wFMCommunicate OK [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 0D 03 02 [10:37:17]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 0B 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 0B 00 62 00 00 CB 77 FB 84 0C 6A 78 AC 90 00 39 [10:37:17]RAPDU: CB 77 FB 84 0C 6A 78 AC 90 00 [10:37:17]wFMCommunicate OK [10:37:17]SAM_PROTO_SignData done [10:37:17]FM_MakeSignedData done [10:37:17]CreateOFDProtocolMessage [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 11 00 00 [10:37:17]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 17 00 [10:37:17]MH_I2C_Read... [10:37: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 39 31 35 90 00 32 [10:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:37:17]wFMCommunicate OK [10:37:17]CreateOFDProtocolMessage done [10:37:17]OFDSenderStorePacket 70580 [10:37:17]StoreOFDPacket docnum=70580 [10:37:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 91 D3 07 01 DE 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 DC E5 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B4 13 01 00 35 04 06 00 AE 58 8F 7B 74 9D CB 77 FB 84 0C 6A 78 AC [10:37:17]CheckFolder [10:37:17]dirname=/storage/ofd_packets [10:37:17]CheckFolder done [10:37:17]ProducePacketName [10:37:17]name=ofd_packets/00070580 [10:37:17]NVStorageSaveData ofd_packets/00070580 [10:37:17]File name is /storage/ofd_packets/00070580 [10:37:17]Write 301 bytes [10:37:17]NVStorageSaveData done [10:37:17]OFDSenderStorePacket done [10:37:17]KKMCreateOFDPacket done [10:37:17]NVStorageSaveData kkm_last_timestamp [10:37:17]File name is /storage/kkm_last_timestamp [10:37:17]Write 4 bytes [10:37:17]NVStorageSaveData done [10:37:17]ExternCall_PrintAddStr [10:37:17]wPrintStart [10:37:17]Write to MH i2c: 01 00 00 64 00 64 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 07 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [10:37:17]RasterBufferAndPrint [10:37:17]line Счет N : (1)141020 [10:37:17]line ИÐÐ: 02508201610067 [10:37:17]line Контрольно-КаÑÑовый Чек [10:37:17]line ПРОДÐЖР[10:37:17]line ТРК (МРК, ГÐК) : 41 [10:37:17]line Товар: 2710124130 [10:37:17]line Ðи-92-К-5 [10:37:17]line 15.180 * 65.90 [10:37:17]line = 1000.36 [10:37:17]line ÐДС 12% ÐСП 1% [10:37:17]line > о реализуемом товаре [10:37:17]line ОКРУГЛЕÐИЕ: -0.36 [10:37:17]line ИТОГО: 1000.00 [10:37:17]line ВнеÑено: 1000.00 [10:37:17]line СДÐЧÐ: 0.00 [10:37:17]line ÐСП 1% : 8.85 [10:37:17]line ÐДС 12% : 106.23 [10:37:17]line Ðаличными: 1000.00 [10:37:17]line Безнал.: 0.00 [10:37:17]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:37:17]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:37:17]line СÐО: Общий режим [10:37:17]line Чек 12 12.08.2024 10:37 [10:37:17]line Смена: 465 ФФД: 1.0 [10:37:17]line ЗÐМ: 0300000140 [10:37:17]line РÐМ: 0000000000090913 [10:37:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:37:17]line ФМ: 0000000000874915 [10:37:17]line ФД: 70580 [10:37:17]line ФПД: 191695387587741 [10:37:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T103716&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70580&fm=191695387587741&tin=02508201610067®Number=0000000000090913&sum=100000 [10:37:17]written 0, free lines is 4095 [10:37:17]OFD Sender: Processing packet 70580 [packets to send 67, broken 66] [10:37:17]ProducePacketName [10:37:17]name=ofd_packets/00070580 [10:37:17]OFD Sender: To server: ‡•öpG, [10:37:17]CommunicateWithHost lk.salyk.kg:30040 [10:37:17]ConnectInit lk.salyk.kg [10:37:18]Connected sock=10 [10:37: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 39 31 35 0F 01 00 00 91 D3 07 01 DE 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 DC E5 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B4 13 01 00 35 04 06 00 AE 58 8F 7B 74 9D CB 77 FB 84 0C 6A 78 AC [10:37:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 EE E8 47 00 A0 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 39 31 35 10 04 04 00 B4 13 01 00 F4 03 04 00 C9 8C B9 66 B6 04 01 00 00 0A F8 92 F2 7D 44 C4 CD [10:37:18]CommunicateWithHost err = 0 [10:37:18]CheckOFDResponse [10:37:18]1017 (14) - 77093643461234 [10:37:18]1041 (16) - 0000000000874915 [10:37:18]1040 (4) - 70580 [10:37:18]1012 (4) - 12.08.2024 04:17 [10:37:18]1206 (1) - 0 [10:37:18]OFD Sender: Remove packet 70580 [10:37:18]ProducePacketName [10:37:18]name=ofd_packets/00070580 [10:37:18]NVStorageDeleteData [10:37:18]Write to MH i2c: 01 00 00 8F 00 8F [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: 01 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: 01 07 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 F6 0C 98 [10:37:18]RasterBufferAndPrint [10:37:18]line [10:37:18]line [10:37:18]line [10:37:18]line [10:37:18]line [10:37:18]written 0, free lines is 3330 [10:37:18]MH_Cut [10:37:18]Write to MH i2c: D1 01 00 96 00 01 68 [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: D1 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: D1 01 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: D1 01 00 96 00 00 67 [10:37:18]Write to MH i2c: 01 00 00 97 00 97 [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]OFD Sender: No OFD packet to send [10:37:19]*** Cut start [10:37:19]*** Purtial cut [10:37:19]*** CUTSNS_PIN = 0 [10:37:19]*** Stage 1: CUTSNS_PIN = 1 [10:37:21]Read from MH i2c: 01 [10:37:21]MH_I2C_Read... [10:37:21]*** Stop cut motor [10:37:21]*** Cut end [10:37:21]Read from MH i2c: 01 07 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [10:37:21]process_action close_receipt done [10:37:21]requested_data is exist [10:37:21]produce_requested_data [10:37:21]requested_item fm.sn is exist - process it [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 11 00 00 [10:37:21]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 17 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 67 [10:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:37:21]wFMCommunicate OK [10:37:21]requested_item fd.num is exist - process it [10:37:21]SAM_PROTO_GetFieldsCounters [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 13 00 00 [10:37:21]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 62 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 62 00 99 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B4 13 01 00 0E 04 04 00 D1 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 F3 [10:37: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B4 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:21]wFMCommunicate OK [10:37:21]SAM_PROTO_GetFieldsCounters done [10:37:21]requested_item shift.num is exist - process it [10:37:21]requested_item shift.opened is exist - process it [10:37:21]req_shift_opened [10:37:21]FM_GetShiftState [10:37:21]SAM_PROTO_GetShiftState [10:37:21]wFMCommunicate request_size=4 [10:37:21]MH_SAM_APDU [10:37:21]CAPDU: 80 13 01 00 [10:37:21]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [10:37:21]Write i2c OK [10:37:21]MH_I2C_Read... [10:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:21]Read from MH i2c: E2 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 0E 00 [10:37:21]MH_I2C_Read... [10:37:21]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 04 [10:37:21]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:37:21]wFMCommunicate OK [10:37:21]SAM_PROTO_GetShiftState done [10:37:21]FM_GetShiftState done [10:37:21]req_shift_opened done [10:37:21]requested_item shift.open_date is exist - process it [10:37:21]req_shift_open_date [10:37:21]req_shift_open_date done [10:37:21]produce_requested_data done [10:37:21]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70580,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:37:21]process_action_free close_receipt [10:37:21]json_value_free [10:37:21]json_value_free done [10:37:21]process_json_proto returns [10:37:21]Send response to host [10:37:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70580,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:37:21]free response buf [10:37:21]execute_script done [10:37:21]execute_script returns [10:37:21]free content buf [10:37:21]Sock 9.Close socket [10:37:21]Sock 9.Thread stoped [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:30]accept exits with 6 [10:38:30]New connection [10:38:30]New thread 3066842468 created [10:38:30]Thread 3066699108 joined [10:38:30]Waiting for new connection... [10:38:30] Sock 6.Parse request [10:38:30]Sock 6.Check first char [10:38:30]Sock 6.First char is OK [10:38:30]request: POST /json_proto HTTP/1.0 [10:38:30]Method: POST [10:38:30]URL: /json_proto [10:38:30]Method is POST - this is cgi request [10:38:30]url: /json_proto [10:38:30]query_string will be loaded in cgi processing [10:38:30]execute_cgi json_proto POST (null) [10:38:30]execute_cgi path=json_proto method=POST [10:38:30]POST find Content-Length [10:38:30]Host: 172.17.58.67:8080 [10:38:30]Content-Length: 738 [10:38:30]Content-Type: application/json [10:38:30] [10:38:30]POST finish read [10:38:30]Found Content-Length = 738 [10:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70580, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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:38:30]execute_script... [10:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70580, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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:38:30]POST & json_proto [10:38:30]process_json_proto [10:38:30]json parsed OK: [10:38:30]protocol is kg_v1.0 [10:38:30]action value=close_receipt [10:38:30]process_action close_receipt [10:38:30]cmd_close_receipt [10:38:30]MH_GetDate [10:38:30]Write to MH i2c: F0 00 00 9B 00 8A [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: F0 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: F0 09 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: F0 09 00 9B 00 00 26 E6 B9 66 94 51 63 64 6A [10:38:30]GetLastDocTimeStamp 1723459036 [10:38:30]current date 1723459110 [10:38:30]FM_GetShiftState [10:38:30]SAM_PROTO_GetShiftState [10:38:30]wFMCommunicate request_size=4 [10:38:30]MH_SAM_APDU [10:38:30]CAPDU: 80 13 01 00 [10:38:30]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [10:38:30]Write i2c OK [10:38:30]MH_I2C_Read... [10:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:30]Read from MH i2c: E2 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 0E 00 [10:38:30]MH_I2C_Read... [10:38:30]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 06 [10:38:30]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:38:30]wFMCommunicate OK [10:38:30]SAM_PROTO_GetShiftState done [10:38:30]FM_GetShiftState done [10:38:30]opened in 1723423336 [10:38:30]opened+sec_in_day 1723509736 [10:38:30]quantity*price = 100036 [10:38:30]sum+1 = 100037 [10:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.36 ИТОГО: 1000.00 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 13 12.08.2024 10:38 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФД оÑн.: 70580 ФМ оÑн.: 0000000000874915 ФМ: 0000000000874915 ФД: 70581 ФПД: 150254377814246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T103830&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70581&fm=150254377814246&tin=02508201610067®Number=0000000000090913&sum=100000 [10:38:31]StoreToDocumentArchive [10:38:31]shift 465 fd 70581 [10:38:31]save to /storage/0465/doc_00070581 [10:38:31]save last doc name /storage/0465/doc_00070581 to /storage/kkm_last_doc_name [10:38:31]save OK [10:38:31]Clear old archive folders... [10:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:38:31]tlvbuf is 010A9FC0 [10:38:31]SAM_PROTO_ClearQueue [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 09 00 00 [10:38:31]Write to MH i2c: E2 08 00 AB 00 80 09 00 00 00 00 00 00 1D [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [10:38:31]RAPDU: 90 00 [10:38:31]wFMCommunicate OK [10:38:31]SAM_PROTO_ClearQueue done [10:38:31]KKMCreateOFDPacket [10:38:31]OFDProtocolAddRootSTLVToBuf [10:38:31]FM_MakeSignedData [10:38:31]FM_MakeSignedData [10:38:31]SAM_PROTO_SignData [10:38:31]wFMCommunicate request_size=4 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 0D 01 02 [10:38:31]Write to MH i2c: E2 08 00 AC 00 80 0D 01 02 00 00 00 00 25 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:31]Read from MH i2c: E2 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 [10:38:31]MH_I2C_Read... [10:38:31]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [10:38:31]RAPDU: 90 00 [10:38:31]wFMCommunicate OK [10:38:31]wFMCommunicate request_size=255 [10:38:31]MH_SAM_APDU [10:38:31]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 26 E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 B4 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 [10:38:31]Write to MH i2c: E2 02 01 AD 00 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 26 E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 B4 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 00 00 79 [10:38:31]Write i2c OK [10:38:31]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=38 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B5 13 01 00 35 04 06 00 88 A7 D2 D0 C8 E6 [10:38:32]Write to MH i2c: E2 29 00 AE 00 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B5 13 01 00 35 04 06 00 88 A7 D2 D0 C8 E6 00 00 FB [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 03 00 AE 00 00 90 00 22 [10:38:32]RAPDU: 90 00 [10:38:32]wFMCommunicate OK [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 0D 03 02 [10:38:32]Write to MH i2c: E2 08 00 AF 00 80 0D 03 02 00 00 00 00 2A [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0B 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 0B 00 AF 00 00 5F 5D 51 45 D5 E9 3D F0 90 00 68 [10:38:32]RAPDU: 5F 5D 51 45 D5 E9 3D F0 90 00 [10:38:32]wFMCommunicate OK [10:38:32]SAM_PROTO_SignData done [10:38:32]FM_MakeSignedData done [10:38:32]CreateOFDProtocolMessage [10:38:32]wFMCommunicate request_size=4 [10:38:32]MH_SAM_APDU [10:38:32]CAPDU: 80 11 00 00 [10:38:32]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:32]Read from MH i2c: E2 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7F [10:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:38:32]wFMCommunicate OK [10:38:32]CreateOFDProtocolMessage done [10:38:32]OFDSenderStorePacket 70581 [10:38:32]StoreOFDPacket docnum=70581 [10:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 2B 01 00 00 9D 40 23 01 C7 16 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 26 E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 B4 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B5 13 01 00 35 04 06 00 88 A7 D2 D0 C8 E6 5F 5D 51 45 D5 E9 3D F0 [10:38:32]CheckFolder [10:38:32]dirname=/storage/ofd_packets [10:38:32]CheckFolder done [10:38:32]ProducePacketName [10:38:32]name=ofd_packets/00070581 [10:38:32]NVStorageSaveData ofd_packets/00070581 [10:38:32]File name is /storage/ofd_packets/00070581 [10:38:32]Write 329 bytes [10:38:32]NVStorageSaveData done [10:38:32]OFDSenderStorePacket done [10:38:32]KKMCreateOFDPacket done [10:38:32]NVStorageSaveData kkm_last_timestamp [10:38:32]File name is /storage/kkm_last_timestamp [10:38:32]Write 4 bytes [10:38:32]NVStorageSaveData done [10:38:32]ExternCall_PrintAddStr [10:38:32]wPrintStart [10:38:32]Write to MH i2c: 01 00 00 B1 00 B1 [10:38:32]Write i2c OK [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 07 00 [10:38:32]MH_I2C_Read... [10:38:32]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 FF 0F C6 [10:38:32]RasterBufferAndPrint [10:38:32]line Счет N : (1)141020 [10:38:32]line ИÐÐ: 02508201610067 [10:38:32]line Контрольно-КаÑÑовый Чек [10:38:32]line ВОЗВРÐТ ПРОДÐЖИ [10:38:32]line ТРК (МРК, ГÐК) : 41 [10:38:32]line Товар: 2710124130 [10:38:32]line Ðи-92-К-5 [10:38:32]line 15.180 * 65.90 [10:38:32]line = 1000.36 [10:38:32]line ÐДС 12% ÐСП 1% [10:38:32]line > о реализуемом товаре [10:38:32]line ОКРУГЛЕÐИЕ: -0.36 [10:38:32]line ИТОГО: 1000.00 [10:38:32]line ÐСП 1% : 8.85 [10:38:32]line ÐДС 12% : 106.23 [10:38:32]line Ðаличными: 1000.00 [10:38:32]line Безнал.: 0.00 [10:38:32]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:38:32]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:38:32]line СÐО: Общий режим [10:38:32]line Чек 13 12.08.2024 10:38 [10:38:32]line Смена: 465 ФФД: 1.0 [10:38:32]line ЗÐМ: 0300000140 [10:38:32]line РÐМ: 0000000000090913 [10:38:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:38:32]line ФД оÑн.: 70580 [10:38:32]line ФМ оÑн.: 0000000000874915 [10:38:32]line ФМ: 0000000000874915 [10:38:32]line ФД: 70581 [10:38:32]line ФПД: 150254377814246 [10:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T103830&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70581&fm=150254377814246&tin=02508201610067®Number=0000000000090913&sum=100000 [10:38:32]OFD Sender: Processing packet 70581 [packets to send 67, broken 66] [10:38:32]ProducePacketName [10:38:32]name=ofd_packets/00070581 [10:38:32]OFD Sender: To server: ‡•öpG, [10:38:32]CommunicateWithHost lk.salyk.kg:30040 [10:38:32]ConnectInit lk.salyk.kg [10:38:32]written 0, free lines is 4095 [10:38:32]Connected sock=10 [10:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 2B 01 00 00 9D 40 23 01 C7 16 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 26 E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 B4 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B5 13 01 00 35 04 06 00 88 A7 D2 D0 C8 E6 5F 5D 51 45 D5 E9 3D F0 [10:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 DA 04 47 00 D4 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 39 31 35 10 04 04 00 B5 13 01 00 F4 03 04 00 13 8D B9 66 B6 04 01 00 00 84 3C 92 E8 F0 E8 39 14 [10:38:32]CommunicateWithHost err = 0 [10:38:32]CheckOFDResponse [10:38:32]1017 (14) - 77093643461234 [10:38:32]1041 (16) - 0000000000874915 [10:38:32]1040 (4) - 70581 [10:38:32]1012 (4) - 12.08.2024 04:18 [10:38:32]1206 (1) - 0 [10:38:32]OFD Sender: Remove packet 70581 [10:38:32]ProducePacketName [10:38:32]name=ofd_packets/00070581 [10:38:32]NVStorageDeleteData [10:38:33]Write to MH i2c: 01 00 00 DC 00 DC [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: 01 07 00 DC 00 00 00 00 00 00 FF 0C EE [10:38:33]RasterBufferAndPrint [10:38:33]line [10:38:33]line [10:38:33]line [10:38:33]line [10:38:33]line [10:38:33]written 0, free lines is 3335 [10:38:33]MH_Cut [10:38:33]Write to MH i2c: D1 01 00 E3 00 01 B5 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: D1 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: D1 01 00 [10:38:33]MH_I2C_Read... [10:38:33]Read from MH i2c: D1 01 00 E3 00 00 B4 [10:38:33]Write to MH i2c: 01 00 00 E4 00 E4 [10:38:33]Write i2c OK [10:38:33]MH_I2C_Read... [10:38:33]OFD Sender: No OFD packet to send [10:38:33]*** Cut start [10:38:33]*** Purtial cut [10:38:33]*** Stage 1: CUTSNS_PIN = 1 [10:38:34]Read from MH i2c: 01 [10:38:34]MH_I2C_Read... [10:38:34]*** Stop cut motor [10:38:34]*** Cut end [10:38:34]Read from MH i2c: 01 07 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FF 0F F9 [10:38:34]process_action close_receipt done [10:38:34]requested_data is exist [10:38:34]produce_requested_data [10:38:34]requested_item fm.sn is exist - process it [10:38:34]wFMCommunicate request_size=4 [10:38:34]MH_SAM_APDU [10:38:34]CAPDU: 80 11 00 00 [10:38:34]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:34]Read from MH i2c: E2 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 17 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 17 00 E5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B4 [10:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:38:34]wFMCommunicate OK [10:38:34]requested_item fd.num is exist - process it [10:38:34]SAM_PROTO_GetFieldsCounters [10:38:34]wFMCommunicate request_size=4 [10:38:34]MH_SAM_APDU [10:38:34]CAPDU: 80 13 00 00 [10:38:34]Write to MH i2c: E2 08 00 E6 00 80 13 00 00 00 00 00 00 62 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:34]Read from MH i2c: E2 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 62 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 62 00 E6 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B5 13 01 00 0E 04 04 00 D1 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 44 [10:38: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B5 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:34]wFMCommunicate OK [10:38:34]SAM_PROTO_GetFieldsCounters done [10:38:34]requested_item shift.num is exist - process it [10:38:34]requested_item shift.opened is exist - process it [10:38:34]req_shift_opened [10:38:34]FM_GetShiftState [10:38:34]SAM_PROTO_GetShiftState [10:38:34]wFMCommunicate request_size=4 [10:38:34]MH_SAM_APDU [10:38:34]CAPDU: 80 13 01 00 [10:38:34]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:34]Read from MH i2c: E2 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 51 [10:38:34]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:38:34]wFMCommunicate OK [10:38:34]SAM_PROTO_GetShiftState done [10:38:34]FM_GetShiftState done [10:38:34]req_shift_opened done [10:38:34]requested_item shift.open_date is exist - process it [10:38:34]req_shift_open_date [10:38:34]req_shift_open_date done [10:38:34]produce_requested_data done [10:38:34]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70581,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:38:34]process_action_free close_receipt [10:38:34]json_value_free [10:38:34]json_value_free done [10:38:34]process_json_proto returns [10:38:34]Send response to host [10:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70581,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:38:34]free response buf [10:38:34]execute_script done [10:38:34]execute_script returns [10:38:34]free content buf [10:38:34]Sock 6.Close socket [10:38:34]Sock 6.Thread stoped [10:38:34]accept exits with 9 [10:38:34]New connection [10:38:34]New thread 3066699108 created [10:38:34]Thread 3066842468 joined [10:38:34]Waiting for new connection... [10:38:34] Sock 9.Parse request [10:38:34]Sock 9.Check first char [10:38:34]Sock 9.First char is OK [10:38:34]request: POST /json_proto HTTP/1.0 [10:38:34]Method: POST [10:38:34]URL: /json_proto [10:38:34]Method is POST - this is cgi request [10:38:34]url: /json_proto [10:38:34]query_string will be loaded in cgi processing [10:38:34]execute_cgi json_proto POST (null) [10:38:34]execute_cgi path=json_proto method=POST [10:38:34]POST find Content-Length [10:38:34]Host: 172.17.58.67:8080 [10:38:34]Content-Length: 675 [10:38:34]Content-Type: application/json [10:38:34] [10:38:34]POST finish read [10:38:34]Found Content-Length = 675 [10:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 0.950, "sum" : 62.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 62.00, "payments": [ { "type": 0, "sum" : 62.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:34]execute_script... [10:38: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)141020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 0.950, "sum" : 62.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 62.00, "payments": [ { "type": 0, "sum" : 62.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:34]POST & json_proto [10:38:34]process_json_proto [10:38:34]json parsed OK: [10:38:34]protocol is kg_v1.0 [10:38:34]action value=close_receipt [10:38:34]process_action close_receipt [10:38:34]cmd_close_receipt [10:38:34]MH_GetDate [10:38:34]Write to MH i2c: F0 00 00 E8 00 D7 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 E8 00 00 2A E6 B9 66 94 51 63 64 BB [10:38:34]GetLastDocTimeStamp 1723459110 [10:38:34]current date 1723459114 [10:38:34]FM_GetShiftState [10:38:34]SAM_PROTO_GetShiftState [10:38:34]wFMCommunicate request_size=4 [10:38:34]MH_SAM_APDU [10:38:34]CAPDU: 80 13 01 00 [10:38:34]Write to MH i2c: E2 08 00 E9 00 80 13 01 00 00 00 00 00 66 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:34]Read from MH i2c: E2 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 E9 00 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 53 [10:38:34]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:38:34]wFMCommunicate OK [10:38:34]SAM_PROTO_GetShiftState done [10:38:34]FM_GetShiftState done [10:38:34]opened in 1723423336 [10:38:34]opened+sec_in_day 1723509736 [10:38:34]quantity*price = 6260 [10:38:34]sum+1 = 6262 [10:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.61 ИТОГО: 62.00 ВнеÑено: 1000.00 СДÐЧÐ: 938.00 ÐСП 1% : 0.55 ÐДС 12% : 6.65 Ðаличными: 62.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 14 12.08.2024 10:38 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70582 ФПД: 81266173434139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T103834&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70582&fm=81266173434139&tin=02508201610067®Number=0000000000090913&sum=6200 [10:38:36]StoreToDocumentArchive [10:38:36]shift 465 fd 70582 [10:38:36]save to /storage/0465/doc_00070582 [10:38:36]save last doc name /storage/0465/doc_00070582 to /storage/kkm_last_doc_name [10:38:36]save OK [10:38:36]Clear old archive folders... [10:38:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:36]tlvbuf is 010F3C40 [10:38:36]SAM_PROTO_ClearQueue [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 09 00 00 [10:38:36]Write to MH i2c: E2 08 00 F6 00 80 09 00 00 00 00 00 00 68 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]SAM_PROTO_ClearQueue done [10:38:36]KKMCreateOFDPacket [10:38:36]OFDProtocolAddRootSTLVToBuf [10:38:36]FM_MakeSignedData [10:38:36]FM_MakeSignedData [10:38:36]SAM_PROTO_SignData [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 01 02 [10:38:36]Write to MH i2c: E2 08 00 F7 00 80 0D 01 02 00 00 00 00 70 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=255 [10:38:36]MH_SAM_APDU [10:38: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 B6 03 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 75 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2A E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B6 13 01 00 35 04 06 00 49 [10:38:36]Write to MH i2c: E2 02 01 F8 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 B6 03 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 75 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2A E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B6 13 01 00 35 04 06 00 49 00 00 2A [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=10 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 02 02 05 E9 41 66 59 1B [10:38:36]Write to MH i2c: E2 0D 00 F9 00 80 0D 02 02 05 00 E9 41 66 59 1B 00 00 81 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 03 02 [10:38:36]Write to MH i2c: E2 08 00 FA 00 80 0D 03 02 00 00 00 00 75 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0B 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0B 00 FA 00 00 27 A6 F4 70 79 6F 48 3A 90 00 11 [10:38:36]RAPDU: 27 A6 F4 70 79 6F 48 3A 90 00 [10:38:36]wFMCommunicate OK [10:38:36]SAM_PROTO_SignData done [10:38:36]FM_MakeSignedData done [10:38:36]CreateOFDProtocolMessage [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 11 00 00 [10:38:36]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 CA [10:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:38:36]wFMCommunicate OK [10:38:36]CreateOFDProtocolMessage done [10:38:36]OFDSenderStorePacket 70582 [10:38:36]StoreOFDPacket docnum=70582 [10:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 6F 5F 07 01 70 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 B6 03 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 75 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2A E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B6 13 01 00 35 04 06 00 49 E9 41 66 59 1B 27 A6 F4 70 79 6F 48 3A [10:38:36]CheckFolder [10:38:36]dirname=/storage/ofd_packets [10:38:36]CheckFolder done [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00070582 [10:38:36]NVStorageSaveData ofd_packets/00070582 [10:38:36]File name is /storage/ofd_packets/00070582 [10:38:36]Write 301 bytes [10:38:36]NVStorageSaveData done [10:38:36]OFDSenderStorePacket done [10:38:36]KKMCreateOFDPacket done [10:38:36]NVStorageSaveData kkm_last_timestamp [10:38:36]File name is /storage/kkm_last_timestamp [10:38:36]Write 4 bytes [10:38:36]NVStorageSaveData done [10:38:36]ExternCall_PrintAddStr [10:38:36]wPrintStart [10:38:36]Write to MH i2c: 01 00 00 FC 00 FC [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 FF 0F 11 [10:38:36]RasterBufferAndPrint [10:38:36]line Счет N : (1)141020 [10:38:36]line ИÐÐ: 02508201610067 [10:38:36]line Контрольно-КаÑÑовый Чек [10:38:36]line ПРОДÐЖР[10:38:36]line ТРК (МРК, ГÐК) : 41 [10:38:36]line Товар: 2710124130 [10:38:36]line Ðи-92-К-5 [10:38:36]line 0.950 * 65.90 [10:38:36]line = 62.61 [10:38:36]line ÐДС 12% ÐСП 1% [10:38:36]line > о реализуемом товаре [10:38:36]line ОКРУГЛЕÐИЕ: -0.61 [10:38:36]line ИТОГО: 62.00 [10:38:36]line ВнеÑено: 1000.00 [10:38:36]line СДÐЧÐ: 938.00 [10:38:36]line ÐСП 1% : 0.55 [10:38:36]line ÐДС 12% : 6.65 [10:38:36]line Ðаличными: 62.00 [10:38:36]line Безнал.: 0.00 [10:38:36]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:38:36]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:38:36]line СÐО: Общий режим [10:38:36]line Чек 14 12.08.2024 10:38 [10:38:36]line Смена: 465 ФФД: 1.0 [10:38:36]line ЗÐМ: 0300000140 [10:38:36]line РÐМ: 0000000000090913 [10:38:36]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:38:36]line ФМ: 0000000000874915 [10:38:36]line ФД: 70582 [10:38:36]line ФПД: 81266173434139 [10:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T103834&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70582&fm=81266173434139&tin=02508201610067®Number=0000000000090913&sum=6200 [10:38:36]written 0, free lines is 4095 [10:38:36]OFD Sender: Processing packet 70582 [packets to send 67, broken 66] [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00070582 [10:38:36]OFD Sender: To server: ‡•öpG, [10:38:36]CommunicateWithHost lk.salyk.kg:30040 [10:38:36]ConnectInit lk.salyk.kg [10:38:36]Connected sock=7 [10:38: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 39 31 35 0F 01 00 00 6F 5F 07 01 70 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 B6 03 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 75 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2A E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B6 13 01 00 35 04 06 00 49 E9 41 66 59 1B 27 A6 F4 70 79 6F 48 3A [10: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 39 31 35 4F 00 00 00 1C 31 47 00 97 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 39 31 35 10 04 04 00 B6 13 01 00 F4 03 04 00 18 8D B9 66 B6 04 01 00 00 EB 9E C1 83 19 DD DC 13 [10:38:37]CommunicateWithHost err = 0 [10:38:37]CheckOFDResponse [10:38:37]1017 (14) - 77093643461234 [10:38:37]1041 (16) - 0000000000874915 [10:38:37]1040 (4) - 70582 [10:38:37]1012 (4) - 12.08.2024 04:18 [10:38:37]1206 (1) - 0 [10:38:37]OFD Sender: Remove packet 70582 [10:38:37]ProducePacketName [10:38:37]name=ofd_packets/00070582 [10:38:37]NVStorageDeleteData [10:38:37]Write to MH i2c: 01 00 00 27 01 28 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 07 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 07 00 27 01 00 00 00 00 00 F6 0C 31 [10:38:37]RasterBufferAndPrint [10:38:37]line [10:38:37]line [10:38:37]line [10:38:37]line [10:38:37]line [10:38:37]written 0, free lines is 3333 [10:38:37]MH_Cut [10:38:37]Write to MH i2c: D1 01 00 2E 01 01 01 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: D1 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: D1 01 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: D1 01 00 2E 01 00 00 [10:38:37]Write to MH i2c: 01 00 00 2F 01 30 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]OFD Sender: No OFD packet to send [10:38:37]*** Cut start [10:38:37]*** Purtial cut [10:38:37]*** CUTSNS_PIN = 0 [10:38:38]*** Stage 1: CUTSNS_PIN = 1 [10:38:39]Read from MH i2c: 01 [10:38:39]MH_I2C_Read... [10:38:39]*** Stop cut motor [10:38:39]*** Cut end [10:38:39]Read from MH i2c: 01 07 00 [10:38:39]MH_I2C_Read... [10:38:39]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 FF 0F 45 [10:38:39]process_action close_receipt done [10:38:39]requested_data is exist [10:38:39]produce_requested_data [10:38:39]requested_item fm.sn is exist - process it [10:38:39]wFMCommunicate request_size=4 [10:38:39]MH_SAM_APDU [10:38:39]CAPDU: 80 11 00 00 [10:38:39]Write to MH i2c: E2 08 00 30 01 80 11 00 00 00 00 00 00 AB [10:38:39]Write i2c OK [10:38:39]MH_I2C_Read... [10:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:40]Read from MH i2c: E2 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 17 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 17 00 30 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 00 [10:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:38:40]wFMCommunicate OK [10:38:40]requested_item fd.num is exist - process it [10:38:40]SAM_PROTO_GetFieldsCounters [10:38:40]wFMCommunicate request_size=4 [10:38:40]MH_SAM_APDU [10:38:40]CAPDU: 80 13 00 00 [10:38:40]Write to MH i2c: E2 08 00 31 01 80 13 00 00 00 00 00 00 AE [10:38:40]Write i2c OK [10:38:40]MH_I2C_Read... [10:38:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:40]Read from MH i2c: E2 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 62 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 62 00 31 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B6 13 01 00 0E 04 04 00 D1 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 94 [10:38:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B6 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:40]wFMCommunicate OK [10:38:40]SAM_PROTO_GetFieldsCounters done [10:38:40]requested_item shift.num is exist - process it [10:38:40]requested_item shift.opened is exist - process it [10:38:40]req_shift_opened [10:38:40]FM_GetShiftState [10:38:40]SAM_PROTO_GetShiftState [10:38:40]wFMCommunicate request_size=4 [10:38:40]MH_SAM_APDU [10:38:40]CAPDU: 80 13 01 00 [10:38:40]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [10:38:40]Write i2c OK [10:38:40]MH_I2C_Read... [10:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:40]Read from MH i2c: E2 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 0E 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 9D [10:38:40]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:38:40]wFMCommunicate OK [10:38:40]SAM_PROTO_GetShiftState done [10:38:40]FM_GetShiftState done [10:38:40]req_shift_opened done [10:38:40]requested_item shift.open_date is exist - process it [10:38:40]req_shift_open_date [10:38:40]req_shift_open_date done [10:38:40]produce_requested_data done [10:38:40]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70582,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:38:40]process_action_free close_receipt [10:38:40]json_value_free [10:38:40]json_value_free done [10:38:40]process_json_proto returns [10:38:40]Send response to host [10:38:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70582,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:38:40]free response buf [10:38:40]execute_script done [10:38:40]execute_script returns [10:38:40]free content buf [10:38:40]Sock 9.Close socket [10:38:40]Sock 9.Thread stoped [10:38:40]accept exits with 10 [10:38:40]New connection [10:38:40]New thread 3066842468 created [10:38:40]Thread 3066699108 joined [10:38:40]Waiting for new connection... [10:38:40] Sock 10.Parse request [10:38:40]Sock 10.Check first char [10:38:40]Sock 10.First char is OK [10:38:40]request: POST /json_proto HTTP/1.0 [10:38:40]Method: POST [10:38:40]URL: /json_proto [10:38:40]Method is POST - this is cgi request [10:38:40]url: /json_proto [10:38:40]query_string will be loaded in cgi processing [10:38:40]execute_cgi json_proto POST (null) [10:38:40]execute_cgi path=json_proto method=POST [10:38:40]POST find Content-Length [10:38:40]Host: 172.17.58.67:8080 [10:38:40]Content-Length: 682 [10:38:40]Content-Type: application/json [10:38:40] [10:38:40]POST finish read [10:38:40]Found Content-Length = 682 [10:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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:38:40]execute_script... [10:38:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "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:38:40]POST & json_proto [10:38:40]process_json_proto [10:38:40]json parsed OK: [10:38:40]protocol is kg_v1.0 [10:38:40]action value=close_receipt [10:38:40]process_action close_receipt [10:38:40]cmd_close_receipt [10:38:40]MH_GetDate [10:38:40]Write to MH i2c: F0 00 00 33 01 23 [10:38:40]Write i2c OK [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: F0 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: F0 09 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: F0 09 00 33 01 00 30 E6 B9 66 94 51 63 64 0D [10:38:40]GetLastDocTimeStamp 1723459114 [10:38:40]current date 1723459120 [10:38:40]FM_GetShiftState [10:38:40]SAM_PROTO_GetShiftState [10:38:40]wFMCommunicate request_size=4 [10:38:40]MH_SAM_APDU [10:38:40]CAPDU: 80 13 01 00 [10:38:40]Write to MH i2c: E2 08 00 34 01 80 13 01 00 00 00 00 00 B2 [10:38:40]Write i2c OK [10:38:40]MH_I2C_Read... [10:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:40]Read from MH i2c: E2 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 0E 00 [10:38:40]MH_I2C_Read... [10:38:40]Read from MH i2c: E2 0E 00 34 01 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 9F [10:38:40]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:38:40]wFMCommunicate OK [10:38:40]SAM_PROTO_GetShiftState done [10:38:40]FM_GetShiftState done [10:38:40]opened in 1723423336 [10:38:40]opened+sec_in_day 1723509736 [10:38:40]quantity*price = 100036 [10:38:40]sum+1 = 100037 [10:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.36 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 15 12.08.2024 10:38 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70583 ФПД: 149577667271889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T103840&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70583&fm=149577667271889&tin=02508201610067®Number=0000000000090913&sum=100000 [10:38:41]StoreToDocumentArchive [10:38:41]shift 465 fd 70583 [10:38:41]save to /storage/0465/doc_00070583 [10:38:41]save last doc name /storage/0465/doc_00070583 to /storage/kkm_last_doc_name [10:38:41]save OK [10:38:41]Clear old archive folders... [10:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:41]tlvbuf is 010BA3A0 [10:38:41]SAM_PROTO_ClearQueue [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 09 00 00 [10:38:41]Write to MH i2c: E2 08 00 41 01 80 09 00 00 00 00 00 00 B4 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]SAM_PROTO_ClearQueue done [10:38:41]KKMCreateOFDPacket [10:38:41]OFDProtocolAddRootSTLVToBuf [10:38:41]FM_MakeSignedData [10:38:41]FM_MakeSignedData [10:38:41]SAM_PROTO_SignData [10:38:41]wFMCommunicate request_size=4 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 0D 01 02 [10:38:41]Write to MH i2c: E2 08 00 42 01 80 0D 01 02 00 00 00 00 BC [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:41]Read from MH i2c: E2 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 [10:38:41]MH_I2C_Read... [10:38:41]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [10:38:41]RAPDU: 90 00 [10:38:41]wFMCommunicate OK [10:38:41]wFMCommunicate request_size=255 [10:38:41]MH_SAM_APDU [10:38:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B7 13 01 00 35 04 06 00 88 [10:38:41]Write to MH i2c: E2 02 01 43 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B7 13 01 00 35 04 06 00 88 00 00 45 [10:38:41]Write i2c OK [10:38:41]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]wFMCommunicate request_size=10 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 02 02 05 0A 43 B9 5C D1 [10:38:42]Write to MH i2c: E2 0D 00 44 01 80 0D 02 02 05 00 0A 43 B9 5C D1 00 00 FC [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [10:38:42]RAPDU: 90 00 [10:38:42]wFMCommunicate OK [10:38:42]wFMCommunicate request_size=4 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 0D 03 02 [10:38:42]Write to MH i2c: E2 08 00 45 01 80 0D 03 02 00 00 00 00 C1 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 0B 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 0B 00 45 01 00 D5 B4 EB A0 F2 9B 1C C9 90 00 48 [10:38:42]RAPDU: D5 B4 EB A0 F2 9B 1C C9 90 00 [10:38:42]wFMCommunicate OK [10:38:42]SAM_PROTO_SignData done [10:38:42]FM_MakeSignedData done [10:38:42]CreateOFDProtocolMessage [10:38:42]wFMCommunicate request_size=4 [10:38:42]MH_SAM_APDU [10:38:42]CAPDU: 80 11 00 00 [10:38:42]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:42]Read from MH i2c: E2 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 17 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 16 [10:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:38:42]wFMCommunicate OK [10:38:42]CreateOFDProtocolMessage done [10:38:42]OFDSenderStorePacket 70583 [10:38:42]StoreOFDPacket docnum=70583 [10:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 CE 6E 07 01 43 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B7 13 01 00 35 04 06 00 88 0A 43 B9 5C D1 D5 B4 EB A0 F2 9B 1C C9 [10:38:42]CheckFolder [10:38:42]dirname=/storage/ofd_packets [10:38:42]CheckFolder done [10:38:42]ProducePacketName [10:38:42]name=ofd_packets/00070583 [10:38:42]NVStorageSaveData ofd_packets/00070583 [10:38:42]File name is /storage/ofd_packets/00070583 [10:38:42]Write 301 bytes [10:38:42]NVStorageSaveData done [10:38:42]OFDSenderStorePacket done [10:38:42]KKMCreateOFDPacket done [10:38:42]NVStorageSaveData kkm_last_timestamp [10:38:42]File name is /storage/kkm_last_timestamp [10:38:42]Write 4 bytes [10:38:42]NVStorageSaveData done [10:38:42]ExternCall_PrintAddStr [10:38:42]wPrintStart [10:38:42]Write to MH i2c: 01 00 00 47 01 48 [10:38:42]OFD Sender: No OFD packet to send [10:38:42]Write i2c OK [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 07 00 [10:38:42]MH_I2C_Read... [10:38:42]Read from MH i2c: 01 07 00 47 01 00 00 00 00 00 FF 0F 5D [10:38:42]RasterBufferAndPrint [10:38:42]line Счет N : (1)141021 [10:38:42]line ИÐÐ: 02508201610067 [10:38:42]line Контрольно-КаÑÑовый Чек [10:38:42]line ПРОДÐЖР[10:38:42]line ТРК (МРК, ГÐК) : 41 [10:38:42]line Товар: 2710124130 [10:38:42]line Ðи-92-К-5 [10:38:42]line 15.180 * 65.90 [10:38:42]line = 1000.36 [10:38:42]line ÐДС 12% ÐСП 1% [10:38:42]line > о реализуемом товаре [10:38:42]line ОКРУГЛЕÐИЕ: -0.36 [10:38:42]line ИТОГО: 1000.00 [10:38:42]line ВнеÑено: 1000.00 [10:38:42]line СДÐЧÐ: 0.00 [10:38:42]line ÐСП 1% : 8.85 [10:38:42]line ÐДС 12% : 106.23 [10:38:42]line Ðаличными: 1000.00 [10:38:42]line Безнал.: 0.00 [10:38:42]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [10:38:42]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [10:38:42]line СÐО: Общий режим [10:38:42]line Чек 15 12.08.2024 10:38 [10:38:42]line Смена: 465 ФФД: 1.0 [10:38:42]line ЗÐМ: 0300000140 [10:38:42]line РÐМ: 0000000000090913 [10:38:42]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:38:42]line ФМ: 0000000000874915 [10:38:42]line ФД: 70583 [10:38:42]line ФПД: 149577667271889 [10:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T103840&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70583&fm=149577667271889&tin=02508201610067®Number=0000000000090913&sum=100000 [10:38:42]written 0, free lines is 4095 [10:38:42]OFD Sender: Processing packet 70583 [packets to send 67, broken 66] [10:38:42]ProducePacketName [10:38:42]name=ofd_packets/00070583 [10:38:42]OFD Sender: To server: ‡•öpG, [10:38:42]CommunicateWithHost lk.salyk.kg:30040 [10:38:42]ConnectInit lk.salyk.kg [10:38:42]Connected sock=9 [10:38: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 39 31 35 0F 01 00 00 CE 6E 07 01 43 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 E6 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B7 13 01 00 35 04 06 00 88 0A 43 B9 5C D1 D5 B4 EB A0 F2 9B 1C C9 [10:38:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F3 AA 47 00 F7 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B7 13 01 00 F4 03 04 00 1E 8D B9 66 B6 04 01 00 00 28 25 61 05 1E 79 7C 25 [10:38:43]CommunicateWithHost err = 0 [10:38:43]CheckOFDResponse [10:38:43]1017 (14) - 77093643461234 [10:38:43]1041 (16) - 0000000000874915 [10:38:43]1040 (4) - 70583 [10:38:43]Write to MH i2c: 01 00 00 72 01 73 [10:38:43]1012 (4) - 12.08.2024 04:18 [10:38:43]1206 (1) - 0 [10:38:43]OFD Sender: Remove packet 70583 [10:38:43]ProducePacketName [10:38:43]name=ofd_packets/00070583 [10:38:43]NVStorageDeleteData [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 07 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: 01 07 00 72 01 00 00 00 00 00 1A 0D A1 [10:38:43]RasterBufferAndPrint [10:38:43]line [10:38:43]line [10:38:43]line [10:38:43]line [10:38:43]line [10:38:43]written 0, free lines is 3390 [10:38:43]MH_Cut [10:38:43]Write to MH i2c: D1 01 00 79 01 01 4C [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: D1 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: D1 01 00 [10:38:43]MH_I2C_Read... [10:38:43]Read from MH i2c: D1 01 00 79 01 00 4B [10:38:43]Write to MH i2c: 01 00 00 7A 01 7B [10:38:43]Write i2c OK [10:38:43]MH_I2C_Read... [10:38:43]OFD Sender: No OFD packet to send [10:38:43]*** Cut start [10:38:43]*** Purtial cut [10:38:43]*** Stage 1: CUTSNS_PIN = 1 [10:38:44]Read from MH i2c: *** Stop cut motor [10:38:44]01 *** Cut end [10:38:44] [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: 01 07 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 FF 0F 90 [10:38:44]process_action close_receipt done [10:38:44]requested_data is exist [10:38:44]produce_requested_data [10:38:44]requested_item fm.sn is exist - process it [10:38:44]wFMCommunicate request_size=4 [10:38:44]MH_SAM_APDU [10:38:44]CAPDU: 80 11 00 00 [10:38:44]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [10:38:44]Write i2c OK [10:38:44]MH_I2C_Read... [10:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:44]Read from MH i2c: E2 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 17 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4B [10:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [10:38:44]wFMCommunicate OK [10:38:44]requested_item fd.num is exist - process it [10:38:44]SAM_PROTO_GetFieldsCounters [10:38:44]wFMCommunicate request_size=4 [10:38:44]MH_SAM_APDU [10:38:44]CAPDU: 80 13 00 00 [10:38:44]Write to MH i2c: E2 08 00 7C 01 80 13 00 00 00 00 00 00 F9 [10:38:44]Write i2c OK [10:38:44]MH_I2C_Read... [10:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:44]Read from MH i2c: E2 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 62 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 62 00 7C 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B7 13 01 00 0E 04 04 00 D1 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 E3 [10:38: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B7 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:44]wFMCommunicate OK [10:38:44]SAM_PROTO_GetFieldsCounters done [10:38:44]requested_item shift.num is exist - process it [10:38:44]requested_item shift.opened is exist - process it [10:38:44]req_shift_opened [10:38:44]FM_GetShiftState [10:38:44]SAM_PROTO_GetShiftState [10:38:44]wFMCommunicate request_size=4 [10:38:44]MH_SAM_APDU [10:38:44]CAPDU: 80 13 01 00 [10:38:44]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [10:38:44]Write i2c OK [10:38:44]MH_I2C_Read... [10:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:44]Read from MH i2c: E2 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 0E 00 [10:38:44]MH_I2C_Read... [10:38:44]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 E8 [10:38:44]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [10:38:44]wFMCommunicate OK [10:38:44]SAM_PROTO_GetShiftState done [10:38:44]FM_GetShiftState done [10:38:44]req_shift_opened done [10:38:44]requested_item shift.open_date is exist - process it [10:38:44]req_shift_open_date [10:38:44]req_shift_open_date done [10:38:44]produce_requested_data done [10:38:44]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70583,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [10:38:44]process_action_free close_receipt [10:38:44]json_value_free [10:38:44]json_value_free done [10:38:44]process_json_proto returns [10:38:44]Send response to host [10:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70583,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [10:38:44]free response buf [10:38:44]execute_script done [10:38:44]execute_script returns [10:38:44]free content buf [10:38:44]Sock 10.Close socket [10:38:44]Sock 10.Thread stoped [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:31]accept exits with 7 [11:04:31]New connection [11:04:31]New thread 3066699108 created [11:04:31]Thread 3066842468 joined [11:04:31]Waiting for new connection... [11:04:31] Sock 7.Parse request [11:04:31]Sock 7.Check first char [11:04:31]Sock 7.First char is OK [11:04:31]request: POST /json_proto HTTP/1.0 [11:04:31]Method: POST [11:04:31]URL: /json_proto [11:04:31]Method is POST - this is cgi request [11:04:31]url: /json_proto [11:04:31]query_string will be loaded in cgi processing [11:04:31]execute_cgi json_proto POST (null) [11:04:31]execute_cgi path=json_proto method=POST [11:04:31]POST find Content-Length [11:04:31]Host: 172.17.58.67:8080 [11:04:31]Content-Length: 805 [11:04:31]Content-Type: application/json [11:04:31] [11:04:31]POST finish read [11:04:31]Found Content-Length = 805 [11:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:31]execute_script... [11:04: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)141022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:31]POST & json_proto [11:04:31]process_json_proto [11:04:31]json parsed OK: [11:04:31]protocol is kg_v1.0 [11:04:31]action value=close_receipt [11:04:31]process_action close_receipt [11:04:31]cmd_close_receipt [11:04:31]MH_GetDate [11:04:31]Write to MH i2c: F0 00 00 7E 01 6E [11:04:31]Write i2c OK [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: F0 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: F0 09 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: F0 09 00 7E 01 00 3F EC B9 66 94 51 63 64 6D [11:04:31]GetLastDocTimeStamp 1723459120 [11:04:31]current date 1723460671 [11:04:31]FM_GetShiftState [11:04:31]SAM_PROTO_GetShiftState [11:04:31]wFMCommunicate request_size=4 [11:04:31]MH_SAM_APDU [11:04:31]CAPDU: 80 13 01 00 [11:04:31]Write to MH i2c: E2 08 00 7F 01 80 13 01 00 00 00 00 00 FD [11:04:31]Write i2c OK [11:04:31]MH_I2C_Read... [11:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:31]Read from MH i2c: E2 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 0E 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 0E 00 7F 01 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 EA [11:04:31]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:04:31]wFMCommunicate OK [11:04:31]SAM_PROTO_GetShiftState done [11:04:31]FM_GetShiftState done [11:04:31]opened in 1723423336 [11:04:31]opened+sec_in_day 1723509736 [11:04:31]quantity*price = 40001 [11:04:31]sum+1 = 40002 [11:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.01 ÐСП 1% : 3.54 ÐДС 12% : 42.48 Ðаличными: 0.00 Безнал.: 400.01 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 16 12.08.2024 11:04 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70584 ФПД: 9940475148203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T110432&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70584&fm=9940475148203&tin=02508201610067®Number=0000000000090913&sum=40001 [11:04:32]StoreToDocumentArchive [11:04:32]shift 465 fd 70584 [11:04:32]save to /storage/0465/doc_00070584 [11:04:32]save last doc name /storage/0465/doc_00070584 to /storage/kkm_last_doc_name [11:04:32]save OK [11:04:32]Clear old archive folders... [11:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:32]tlvbuf is 010D0720 [11:04:32]SAM_PROTO_ClearQueue [11:04:32]wFMCommunicate request_size=4 [11:04:32]MH_SAM_APDU [11:04:32]CAPDU: 80 09 00 00 [11:04:32]Write to MH i2c: E2 08 00 8C 01 80 09 00 00 00 00 00 00 FF [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [11:04:33]RAPDU: 90 00 [11:04:33]wFMCommunicate OK [11:04:33]SAM_PROTO_ClearQueue done [11:04:33]KKMCreateOFDPacket [11:04:33]OFDProtocolAddRootSTLVToBuf [11:04:33]FM_MakeSignedData [11:04:33]FM_MakeSignedData [11:04:33]SAM_PROTO_SignData [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 0D 01 02 [11:04:33]Write to MH i2c: E2 08 00 8D 01 80 0D 01 02 00 00 00 00 07 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [11:04:33]RAPDU: 90 00 [11:04:33]wFMCommunicate OK [11:04:33]wFMCommunicate request_size=255 [11:04:33]MH_SAM_APDU [11: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 40 EC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B8 13 01 00 35 04 06 00 09 [11:04:33]Write to MH i2c: E2 02 01 8E 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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 40 EC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B8 13 01 00 35 04 06 00 09 00 00 58 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [11:04:33]RAPDU: 90 00 [11:04:33]wFMCommunicate OK [11:04:33]wFMCommunicate request_size=10 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 0D 02 02 05 0A 72 7D 77 AB [11:04:33]Write to MH i2c: E2 0D 00 8F 01 80 0D 02 02 05 00 0A 72 7D 77 AB 00 00 2F [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [11:04:33]RAPDU: 90 00 [11:04:33]wFMCommunicate OK [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 0D 03 02 [11:04:33]Write to MH i2c: E2 08 00 90 01 80 0D 03 02 00 00 00 00 0C [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 0B 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 0B 00 90 01 00 F4 37 4E 28 E3 D8 95 58 90 00 56 [11:04:33]RAPDU: F4 37 4E 28 E3 D8 95 58 90 00 [11:04:33]wFMCommunicate OK [11:04:33]SAM_PROTO_SignData done [11:04:33]FM_MakeSignedData done [11:04:33]CreateOFDProtocolMessage [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 11 00 00 [11:04:33]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 17 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 61 [11:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:04:33]wFMCommunicate OK [11:04:33]CreateOFDProtocolMessage done [11:04:33]OFDSenderStorePacket 70584 [11:04:33]StoreOFDPacket docnum=70584 [11:04:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 30 B4 07 01 6B 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 40 EC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B8 13 01 00 35 04 06 00 09 0A 72 7D 77 AB F4 37 4E 28 E3 D8 95 58 [11:04:33]CheckFolder [11:04:33]dirname=/storage/ofd_packets [11:04:33]CheckFolder done [11:04:33]ProducePacketName [11:04:33]name=ofd_packets/00070584 [11:04:33]NVStorageSaveData ofd_packets/00070584 [11:04:33]File name is /storage/ofd_packets/00070584 [11:04:33]Write 301 bytes [11:04:33]NVStorageSaveData done [11:04:33]OFDSenderStorePacket done [11:04:33]KKMCreateOFDPacket done [11:04:33]NVStorageSaveData kkm_last_timestamp [11:04:33]File name is /storage/kkm_last_timestamp [11:04:33]Write 4 bytes [11:04:33]NVStorageSaveData done [11:04:33]ExternCall_PrintAddStr [11:04:33]wPrintStart [11:04:33]Write to MH i2c: 01 00 00 92 01 93 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 FF 0F A8 [11:04:33]RasterBufferAndPrint [11:04:33]line Счет N : (1)141022 [11:04:33]line ИÐÐ: 02508201610067 [11:04:33]line Контрольно-КаÑÑовый Чек [11:04:33]line ПРОДÐЖР[11:04:33]line ТРК (МРК, ГÐК) : 41 [11:04:33]line Товар: 2710124130 [11:04:33]line Ðи-92-К-5 [11:04:33]line 6.070 * 65.90 [11:04:33]line = 400.01 [11:04:33]line ÐДС 12% ÐСП 1% [11:04:33]line > о реализуемом товаре [11:04:33]line ИТОГО: 400.01 [11:04:33]line ÐСП 1% : 3.54 [11:04:33]line ÐДС 12% : 42.48 [11:04:33]line Ðаличными: 0.00 [11:04:33]line Безнал.: 400.01 [11:04:33]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:04:33]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:04:33]line СÐО: Общий режим [11:04:33]line Чек 16 12.08.2024 11:04 [11:04:33]line Смена: 465 ФФД: 1.0 [11:04:33]line ЗÐМ: 0300000140 [11:04:33]line РÐМ: 0000000000090913 [11:04:33]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:04:33]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [11:04:33]line ФМ: 0000000000874915 [11:04:33]line ФД: 70584 [11:04:33]line ФПД: 9940475148203 [11:04:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T110432&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70584&fm=9940475148203&tin=02508201610067®Number=0000000000090913&sum=40001 [11:04:33]written 0, free lines is 4095 [11:04:33]OFD Sender: Processing packet 70584 [packets to send 67, broken 66] [11:04:33]ProducePacketName [11:04:33]name=ofd_packets/00070584 [11:04:33]OFD Sender: To server: ‡•öpG, [11:04:33]CommunicateWithHost lk.salyk.kg:30040 [11:04:33]ConnectInit lk.salyk.kg [11:04:33]Connected sock=11 [11:04: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 39 31 35 0F 01 00 00 30 B4 07 01 6B 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 40 EC B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B8 13 01 00 35 04 06 00 09 0A 72 7D 77 AB F4 37 4E 28 E3 D8 95 58 [11:04:33]Write to MH i2c: 01 00 00 BC 01 BD [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 F9 0C C9 [11:04:33]RasterBufferAndPrint [11:04:33]line [11:04:33]line [11:04:33]line [11:04:33]line [11:04:33]line [11:04:33]written 0, free lines is 3327 [11:04:33]MH_Cut [11:04:33]Write to MH i2c: D1 01 00 C3 01 01 96 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: D1 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: D1 01 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: D1 01 00 C3 01 00 95 [11:04:33]Write to MH i2c: 01 00 00 C4 01 C5 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 FB 26 47 00 F1 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 39 31 35 10 04 04 00 B8 13 01 00 F4 03 04 00 2D 93 B9 66 B6 04 01 00 00 78 6F 24 B9 E4 F2 94 E5 [11:04:34]CommunicateWithHost err = 0 [11:04:34]CheckOFDResponse [11:04:34]1017 (14) - 77093643461234 [11:04:34]1041 (16) - 0000000000874915 [11:04:34]1040 (4) - 70584 [11:04:34]1012 (4) - 12.08.2024 04:44 [11:04:34]1206 (1) - 0 [11:04:34]OFD Sender: Remove packet 70584 [11:04:34]ProducePacketName [11:04:34]name=ofd_packets/00070584 [11:04:34]NVStorageDeleteData [11:04:34]OFD Sender: No OFD packet to send [11:04:34]*** Cut start [11:04:34]*** Purtial cut [11:04:34]*** CUTSNS_PIN = 0 [11:04:34]*** Stage 1: CUTSNS_PIN = 1 [11:04:36]Read from MH i2c: 01 [11:04:36]MH_I2C_Read... [11:04:36]*** Stop cut motor [11:04:36]*** Cut end [11:04:36]Read from MH i2c: 01 07 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 FF 0F DA [11:04:36]process_action close_receipt done [11:04:36]requested_data is exist [11:04:36]produce_requested_data [11:04:36]requested_item fm.sn is exist - process it [11:04:36]wFMCommunicate request_size=4 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 11 00 00 [11:04:36]Write to MH i2c: E2 08 00 C5 01 80 11 00 00 00 00 00 00 40 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:36]Read from MH i2c: E2 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 17 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 17 00 C5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 95 [11:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:04:36]wFMCommunicate OK [11:04:36]requested_item fd.num is exist - process it [11:04:36]SAM_PROTO_GetFieldsCounters [11:04:36]wFMCommunicate request_size=4 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 13 00 00 [11:04:36]Write to MH i2c: E2 08 00 C6 01 80 13 00 00 00 00 00 00 43 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:36]Read from MH i2c: E2 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 62 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 62 00 C6 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B8 13 01 00 0E 04 04 00 D1 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 31 [11: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B8 13 01 00 0E 04 04 00 D1 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 [11:04:36]wFMCommunicate OK [11:04:36]SAM_PROTO_GetFieldsCounters done [11:04:36]requested_item shift.num is exist - process it [11:04:36]requested_item shift.opened is exist - process it [11:04:36]req_shift_opened [11:04:36]FM_GetShiftState [11:04:36]SAM_PROTO_GetShiftState [11:04:36]wFMCommunicate request_size=4 [11:04:36]MH_SAM_APDU [11:04:36]CAPDU: 80 13 01 00 [11:04:36]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [11:04:36]Write i2c OK [11:04:36]MH_I2C_Read... [11:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:36]Read from MH i2c: E2 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 0E 00 [11:04:36]MH_I2C_Read... [11:04:36]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 32 [11:04:36]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:04:36]wFMCommunicate OK [11:04:36]SAM_PROTO_GetShiftState done [11:04:36]FM_GetShiftState done [11:04:36]req_shift_opened done [11:04:36]requested_item shift.open_date is exist - process it [11:04:36]req_shift_open_date [11:04:36]req_shift_open_date done [11:04:36]produce_requested_data done [11:04:36]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70584,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:04:36]process_action_free close_receipt [11:04:36]json_value_free [11:04:36]json_value_free done [11:04:36]process_json_proto returns [11:04:36]Send response to host [11:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70584,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:04:36]free response buf [11:04:36]execute_script done [11:04:36]execute_script returns [11:04:36]free content buf [11:04:36]Sock 7.Close socket [11:04:36]Sock 7.Thread stoped [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]accept exits with 9 [11:09:59]New connection [11:09:59]New thread 3066842468 created [11:09:59]Thread 3066699108 joined [11:09:59]Waiting for new connection... [11:09:59] Sock 9.Parse request [11:09:59]Sock 9.Check first char [11:09:59]Sock 9.First char is OK [11:09:59]request: POST /json_proto HTTP/1.0 [11:09:59]Method: POST [11:09:59]URL: /json_proto [11:09:59]Method is POST - this is cgi request [11:09:59]url: /json_proto [11:09:59]query_string will be loaded in cgi processing [11:09:59]execute_cgi json_proto POST (null) [11:09:59]execute_cgi path=json_proto method=POST [11:09:59]POST find Content-Length [11:09:59]Host: 172.17.58.67:8080 [11:09:59]Content-Length: 1179 [11:09:59]Content-Type: application/json [11:09:59] [11:09:59]POST finish read [11:09:59]Found Content-Length = 1179 [11:09: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141023\u000A12.08.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4134731\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:59]execute_script... [11:09: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141023\u000A12.08.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4134731\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:59]POST & json_proto [11:09:59]process_json_proto [11:09:59]json parsed OK: [11:09:59]protocol is kg_v1.0 [11:09:59]action value=print_text [11:09:59]process_action print_text [11:09:59]cmd_print_text [11:09:59]ExternCall_PrintAddStr [11:09:59]wPrintStart [11:09:59]Write to MH i2c: 01 00 00 C8 01 C9 [11:09:59]Write i2c OK [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: 01 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: 01 07 00 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: 01 07 00 C8 01 00 00 00 00 00 FF 0F DE [11:09:59]RasterBufferAndPrint [11:09:59]line *****ТОВÐРÐЫЙ ЧЕК***** [11:09:59]line ÐЗС 39 [11:09:59]line Партнер нефть [11:09:59]line 02508201610067 [11:09:59]line КаÑÑир : Мирбек к Ð. [11:09:59]line Счет N : (1)141023 [11:09:59]line 12.08.2024 10:29 [11:09:59]line ПРОДÐЖР[11:09:59]line ТРК (МРК, ГÐК): 31 [11:09:59]line Вид ГСМ : 2710124130 [11:09:59]line Ðи-92-К-5 [11:09:59]line 10.000 x 65.90 [11:09:59]line ИТОГ: 659.00 [11:09:59]line Тип оплаты: Талоны: Партнер нефть [11:09:59]line 4134731 [11:09:59]line ______________________ [11:09:59]line (подпиÑÑŒ) [11:09:59]written 0, free lines is 4095 [11:09:59]OFD Sender: No OFD packet to send [11:09:59]Write to MH i2c: 01 00 00 DC 01 DD [11:09:59]Write i2c OK [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: 01 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: 01 07 00 [11:09:59]MH_I2C_Read... [11:09:59]Read from MH i2c: 01 07 00 DC 01 00 00 00 00 00 11 0E 03 [11:09:59]RasterBufferAndPrint [11:09:59]line [11:09:59]line [11:09:59]line [11:09:59]line [11:09:59]line [11:09:59]written 0, free lines is 3603 [11:10:00]MH_Cut [11:10:00]Write to MH i2c: D1 01 00 E3 01 01 B6 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: D1 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: D1 01 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: D1 01 00 E3 01 00 B5 [11:10:00]Write to MH i2c: 01 00 00 E4 01 E5 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]*** Cut start [11:10:00]*** Purtial cut [11:10:00]*** Stage 1: CUTSNS_PIN = 1 [11:10:00]Read from MH i2c: 01 [11:10:00]MH_I2C_Read... [11:10:00]*** Stop cut motor [11:10:00]*** Cut end [11:10:00]Read from MH i2c: 01 07 00 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 FF 0F FA [11:10:00]process_action print_text done [11:10:00]requested_data is exist [11:10:00]produce_requested_data [11:10:00]requested_item fm.sn is exist - process it [11:10:00]wFMCommunicate request_size=4 [11:10:00]MH_SAM_APDU [11:10:00]CAPDU: 80 11 00 00 [11:10:00]Write to MH i2c: E2 08 00 E5 01 80 11 00 00 00 00 00 00 60 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:00]Read from MH i2c: E2 [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 17 00 [11:10:00]MH_I2C_Read... [11:10:00]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 39 31 35 90 00 B5 [11:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:10:00]wFMCommunicate OK [11:10:00]requested_item fd.num is exist - process it [11:10:00]SAM_PROTO_GetFieldsCounters [11:10:00]wFMCommunicate request_size=4 [11:10:00]MH_SAM_APDU [11:10:00]CAPDU: 80 13 00 00 [11:10:00]Write to MH i2c: E2 08 00 E6 01 80 13 00 00 00 00 00 00 63 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:00]Read from MH i2c: E2 [11:10:00]MH_I2C_Read... [11:10:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:00]Read from MH i2c: E2 62 00 [11:10:00]MH_I2C_Read... [11:10:00]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B8 13 01 00 0E 04 04 00 D1 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 51 [11:10: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B8 13 01 00 0E 04 04 00 D1 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 [11:10:00]wFMCommunicate OK [11:10:00]SAM_PROTO_GetFieldsCounters done [11:10:00]requested_item shift.num is exist - process it [11:10:00]requested_item shift.opened is exist - process it [11:10:00]req_shift_opened [11:10:00]FM_GetShiftState [11:10:00]SAM_PROTO_GetShiftState [11:10:00]wFMCommunicate request_size=4 [11:10:00]MH_SAM_APDU [11:10:00]CAPDU: 80 13 01 00 [11:10:00]Write to MH i2c: E2 08 00 E7 01 80 13 01 00 00 00 00 00 65 [11:10:00]Write i2c OK [11:10:00]MH_I2C_Read... [11:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:01]Read from MH i2c: E2 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 0E 00 [11:10:01]MH_I2C_Read... [11:10:01]Read from MH i2c: E2 0E 00 E7 01 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 52 [11:10:01]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:10:01]wFMCommunicate OK [11:10:01]SAM_PROTO_GetShiftState done [11:10:01]FM_GetShiftState done [11:10:01]req_shift_opened done [11:10:01]requested_item shift.open_date is exist - process it [11:10:01]req_shift_open_date [11:10:01]req_shift_open_date done [11:10:01]produce_requested_data done [11:10:01]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70584,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:10:01]process_action_free print_text [11:10:01]json_value_free [11:10:01]json_value_free done [11:10:01]process_json_proto returns [11:10:01]Send response to host [11:10:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70584,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:10:01]free response buf [11:10:01]execute_script done [11:10:01]execute_script returns [11:10:01]free content buf [11:10:01]Sock 9.Close socket [11:10:01]Sock 9.Thread stoped [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:33]accept exits with 7 [11:12:33]New connection [11:12:33]New thread 3066699108 created [11:12:33]Thread 3066842468 joined [11:12:33]Waiting for new connection... [11:12:33] Sock 7.Parse request [11:12:33]Sock 7.Check first char [11:12:33]Sock 7.First char is OK [11:12:33]request: POST /json_proto HTTP/1.0 [11:12:33]Method: POST [11:12:33]URL: /json_proto [11:12:33]Method is POST - this is cgi request [11:12:33]url: /json_proto [11:12:33]query_string will be loaded in cgi processing [11:12:33]execute_cgi json_proto POST (null) [11:12:33]execute_cgi path=json_proto method=POST [11:12:33]POST find Content-Length [11:12:33]Host: 172.17.58.67:8080 [11:12:33]Content-Length: 805 [11:12:33]Content-Type: application/json [11:12:33] [11:12:33]POST finish read [11:12:33]Found Content-Length = 805 [11:12:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:33]execute_script... [11:12: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)141024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:33]POST & json_proto [11:12:33]process_json_proto [11:12:33]json parsed OK: [11:12:33]protocol is kg_v1.0 [11:12:33]action value=close_receipt [11:12:33]process_action close_receipt [11:12:33]cmd_close_receipt [11:12:33]MH_GetDate [11:12:33]Write to MH i2c: F0 00 00 E8 01 D8 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: F0 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: F0 09 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: F0 09 00 E8 01 00 22 EE B9 66 94 51 63 64 BC [11:12:33]GetLastDocTimeStamp 1723460672 [11:12:33]current date 1723461154 [11:12:33]FM_GetShiftState [11:12:33]SAM_PROTO_GetShiftState [11:12:33]wFMCommunicate request_size=4 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 13 01 00 [11:12:33]Write to MH i2c: E2 08 00 E9 01 80 13 01 00 00 00 00 00 67 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 0E 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 0E 00 E9 01 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 54 [11:12:33]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:12:33]wFMCommunicate OK [11:12:33]SAM_PROTO_GetShiftState done [11:12:33]FM_GetShiftState done [11:12:33]opened in 1723423336 [11:12:33]opened+sec_in_day 1723509736 [11:12:33]quantity*price = 100068 [11:12:33]sum+1 = 100069 [11:12:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.68 ÐСП 1% : 8.86 ÐДС 12% : 106.27 Ðаличными: 0.00 Безнал.: 1000.68 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 17 12.08.2024 11:12 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70585 ФПД: 251993752838574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T111234&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70585&fm=251993752838574&tin=02508201610067®Number=0000000000090913&sum=100068 [11:12:35]StoreToDocumentArchive [11:12:35]shift 465 fd 70585 [11:12:35]save to /storage/0465/doc_00070585 [11:12:35]save last doc name /storage/0465/doc_00070585 to /storage/kkm_last_doc_name [11:12:35]save OK [11:12:35]Clear old archive folders... [11:12:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:12:35]tlvbuf is 010CC760 [11:12:35]SAM_PROTO_ClearQueue [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 09 00 00 [11:12:35]Write to MH i2c: E2 08 00 F6 01 80 09 00 00 00 00 00 00 69 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [11:12:35]RAPDU: 90 00 [11:12:35]wFMCommunicate OK [11:12:35]SAM_PROTO_ClearQueue done [11:12:35]KKMCreateOFDPacket [11:12:35]OFDProtocolAddRootSTLVToBuf [11:12:35]FM_MakeSignedData [11:12:35]FM_MakeSignedData [11:12:35]SAM_PROTO_SignData [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 0D 01 02 [11:12:35]Write to MH i2c: E2 08 00 F7 01 80 0D 01 02 00 00 00 00 71 [11:12:35]OFD Sender: No OFD packet to send [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [11:12:35]RAPDU: 90 00 [11:12:35]wFMCommunicate OK [11:12:35]wFMCommunicate request_size=255 [11:12:35]MH_SAM_APDU [11:12: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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 22 EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B9 13 01 00 35 04 06 00 E5 2F DE 1F [11:12:35]Write to MH i2c: E2 02 01 F8 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 22 EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B9 13 01 00 35 04 06 00 E5 2F DE 1F 00 00 0E [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [11:12:35]RAPDU: 90 00 [11:12:35]wFMCommunicate OK [11:12:35]wFMCommunicate request_size=7 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 0D 02 02 02 A1 AE [11:12:35]Write to MH i2c: E2 0A 00 F9 01 80 0D 02 02 02 00 A1 AE 00 00 C7 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [11:12:35]RAPDU: 90 00 [11:12:35]wFMCommunicate OK [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 0D 03 02 [11:12:35]Write to MH i2c: E2 08 00 FA 01 80 0D 03 02 00 00 00 00 76 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0B 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0B 00 FA 01 00 E6 86 6D 60 B9 BD A4 DE 90 00 A8 [11:12:35]RAPDU: E6 86 6D 60 B9 BD A4 DE 90 00 [11:12:35]wFMCommunicate OK [11:12:35]SAM_PROTO_SignData done [11:12:35]FM_MakeSignedData done [11:12:35]CreateOFDProtocolMessage [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 11 00 00 [11:12:35]Write to MH i2c: E2 08 00 FB 01 80 11 00 00 00 00 00 00 76 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 17 00 [11:12:35]MH_I2C_Read... [11:12:35]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 39 31 35 90 00 CB [11:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:12:35]wFMCommunicate OK [11:12:35]CreateOFDProtocolMessage done [11:12:35]OFDSenderStorePacket 70585 [11:12:35]StoreOFDPacket docnum=70585 [11:12:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 D3 C8 04 01 30 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 22 EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B9 13 01 00 35 04 06 00 E5 2F DE 1F A1 AE E6 86 6D 60 B9 BD A4 DE [11:12:35]CheckFolder [11:12:35]dirname=/storage/ofd_packets [11:12:35]CheckFolder done [11:12:35]ProducePacketName [11:12:35]name=ofd_packets/00070585 [11:12:35]NVStorageSaveData ofd_packets/00070585 [11:12:35]File name is /storage/ofd_packets/00070585 [11:12:35]Write 298 bytes [11:12:35]NVStorageSaveData done [11:12:35]OFDSenderStorePacket done [11:12:35]KKMCreateOFDPacket done [11:12:35]NVStorageSaveData kkm_last_timestamp [11:12:35]File name is /storage/kkm_last_timestamp [11:12:35]Write 4 bytes [11:12:35]NVStorageSaveData done [11:12:35]ExternCall_PrintAddStr [11:12:35]wPrintStart [11:12:35]Write to MH i2c: 01 00 00 FC 01 FD [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 07 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 07 00 FC 01 00 00 00 00 00 FF 0F 12 [11:12:35]RasterBufferAndPrint [11:12:35]line Счет N : (1)141024 [11:12:35]line ИÐÐ: 02508201610067 [11:12:35]line Контрольно-КаÑÑовый Чек [11:12:35]line ПРОДÐЖР[11:12:35]line ТРК (МРК, ГÐК) : 44 [11:12:35]line Товар: 2710194210 [11:12:35]line ДТ-К-5 [11:12:35]line 13.450 * 74.40 [11:12:35]line = 1000.68 [11:12:35]line ÐДС 12% ÐСП 1% [11:12:35]line > о реализуемом товаре [11:12:35]line ИТОГО: 1000.68 [11:12:35]line ÐСП 1% : 8.86 [11:12:35]line ÐДС 12% : 106.27 [11:12:35]line Ðаличными: 0.00 [11:12:35]line Безнал.: 1000.68 [11:12:35]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:12:35]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:12:35]line СÐО: Общий режим [11:12:35]line Чек 17 12.08.2024 11:12 [11:12:35]line Смена: 465 ФФД: 1.0 [11:12:35]line ЗÐМ: 0300000140 [11:12:35]line РÐМ: 0000000000090913 [11:12:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:12:35]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [11:12:35]line ФМ: 0000000000874915 [11:12:35]line ФД: 70585 [11:12:35]line ФПД: 251993752838574 [11:12:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T111234&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70585&fm=251993752838574&tin=02508201610067®Number=0000000000090913&sum=100068 [11:12:35]OFD Sender: Processing packet 70585 [packets to send 67, broken 66] [11:12:35]ProducePacketName [11:12:35]name=ofd_packets/00070585 [11:12:35]OFD Sender: To server: ‡•öpG, [11:12:35]CommunicateWithHost lk.salyk.kg:30040 [11:12:35]ConnectInit lk.salyk.kg [11:12:35]written 0, free lines is 4095 [11:12:36]Connected sock=10 [11:12: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 39 31 35 0C 01 00 00 D3 C8 04 01 30 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 22 EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 B9 13 01 00 35 04 06 00 E5 2F DE 1F A1 AE E6 86 6D 60 B9 BD A4 DE [11:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 96 B1 47 00 01 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 39 31 35 10 04 04 00 B9 13 01 00 F4 03 04 00 0F 95 B9 66 B6 04 01 00 00 1F 1B 8B A5 8F 72 46 94 [11:12:36]CommunicateWithHost err = 0 [11:12:36]CheckOFDResponse [11:12:36]1017 (14) - 77093643461234 [11:12:36]1041 (16) - 0000000000874915 [11:12:36]1040 (4) - 70585 [11:12:36]1012 (4) - 12.08.2024 04:52 [11:12:36]1206 (1) - 0 [11:12:36]OFD Sender: Remove packet 70585 [11:12:36]ProducePacketName [11:12:36]name=ofd_packets/00070585 [11:12:36]NVStorageDeleteData [11:12:36]Write to MH i2c: 01 00 00 26 02 28 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 07 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FF 0C 3A [11:12:36]RasterBufferAndPrint [11:12:36]line [11:12:36]line [11:12:36]line [11:12:36]line [11:12:36]line [11:12:36]written 0, free lines is 3332 [11:12:36]MH_Cut [11:12:36]Write to MH i2c: D1 01 00 2D 02 01 01 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: D1 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: D1 01 00 [11:12:36]MH_I2C_Read... [11:12:36]Read from MH i2c: D1 01 00 2D 02 00 00 [11:12:36]Write to MH i2c: 01 00 00 2E 02 30 [11:12:36]Write i2c OK [11:12:36]MH_I2C_Read... [11:12:36]OFD Sender: No OFD packet to send [11:12:37]*** Cut start [11:12:37]*** Purtial cut [11:12:37]*** CUTSNS_PIN = 0 [11:12:37]*** Stage 1: CUTSNS_PIN = 1 [11:12:39]Read from MH i2c: 01 [11:12:39]MH_I2C_Read... [11:12:39]*** Stop cut motor [11:12:39]*** Cut end [11:12:39]Read from MH i2c: 01 07 00 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 FF 0F 45 [11:12:39]process_action close_receipt done [11:12:39]requested_data is exist [11:12:39]produce_requested_data [11:12:39]requested_item fm.sn is exist - process it [11:12:39]wFMCommunicate request_size=4 [11:12:39]MH_SAM_APDU [11:12:39]CAPDU: 80 11 00 00 [11:12:39]Write to MH i2c: E2 08 00 2F 02 80 11 00 00 00 00 00 00 AB [11:12:39]Write i2c OK [11:12:39]MH_I2C_Read... [11:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:39]Read from MH i2c: E2 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 17 00 [11:12:39]MH_I2C_Read... [11:12:39]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 39 31 35 90 00 00 [11:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:12:39]wFMCommunicate OK [11:12:39]requested_item fd.num is exist - process it [11:12:39]SAM_PROTO_GetFieldsCounters [11:12:39]wFMCommunicate request_size=4 [11:12:39]MH_SAM_APDU [11:12:39]CAPDU: 80 13 00 00 [11:12:39]Write to MH i2c: E2 08 00 30 02 80 13 00 00 00 00 00 00 AE [11:12:39]Write i2c OK [11:12:39]MH_I2C_Read... [11:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:39]Read from MH i2c: E2 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 62 00 [11:12:39]MH_I2C_Read... [11:12:39]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B9 13 01 00 0E 04 04 00 D1 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 A0 [11:12: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 B9 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:39]wFMCommunicate OK [11:12:39]SAM_PROTO_GetFieldsCounters done [11:12:39]requested_item shift.num is exist - process it [11:12:39]requested_item shift.opened is exist - process it [11:12:39]req_shift_opened [11:12:39]FM_GetShiftState [11:12:39]SAM_PROTO_GetShiftState [11:12:39]wFMCommunicate request_size=4 [11:12:39]MH_SAM_APDU [11:12:39]CAPDU: 80 13 01 00 [11:12:39]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [11:12:39]Write i2c OK [11:12:39]MH_I2C_Read... [11:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:39]Read from MH i2c: E2 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 0E 00 [11:12:39]MH_I2C_Read... [11:12:39]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 9D [11:12:39]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:12:39]wFMCommunicate OK [11:12:39]SAM_PROTO_GetShiftState done [11:12:39]FM_GetShiftState done [11:12:39]req_shift_opened done [11:12:39]requested_item shift.open_date is exist - process it [11:12:39]req_shift_open_date [11:12:39]req_shift_open_date done [11:12:39]produce_requested_data done [11:12:39]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70585,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:12:39]process_action_free close_receipt [11:12:39]json_value_free [11:12:39]json_value_free done [11:12:39]process_json_proto returns [11:12:39]Send response to host [11:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70585,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:12:39]free response buf [11:12:39]execute_script done [11:12:39]execute_script returns [11:12:39]free content buf [11:12:39]Sock 7.Close socket [11:12:39]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]accept exits with 9 [11:14:51]New connection [11:14:51]New thread 3066842468 created [11:14:51]Thread 3066699108 joined [11:14:51]Waiting for new connection... [11:14:51] Sock 9.Parse request [11:14:51]Sock 9.Check first char [11:14:51]Sock 9.First char is OK [11:14:51]request: POST /json_proto HTTP/1.0 [11:14:51]Method: POST [11:14:51]URL: /json_proto [11:14:51]Method is POST - this is cgi request [11:14:51]url: /json_proto [11:14:51]query_string will be loaded in cgi processing [11:14:51]execute_cgi json_proto POST (null) [11:14:51]execute_cgi path=json_proto method=POST [11:14:51]POST find Content-Length [11:14:51]Host: 172.17.58.67:8080 [11:14:51]Content-Length: 805 [11:14:51]Content-Type: application/json [11:14:51] [11:14:51]POST finish read [11:14:51]Found Content-Length = 805 [11:14:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:51]execute_script... [11:14: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)141026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:51]POST & json_proto [11:14:51]process_json_proto [11:14:51]json parsed OK: [11:14:51]protocol is kg_v1.0 [11:14:51]action value=close_receipt [11:14:51]process_action close_receipt [11:14:51]cmd_close_receipt [11:14:51]MH_GetDate [11:14:51]Write to MH i2c: F0 00 00 32 02 23 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: F0 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: F0 09 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: F0 09 00 32 02 00 AB EE B9 66 94 51 63 64 90 [11:14:51]GetLastDocTimeStamp 1723461154 [11:14:51]current date 1723461291 [11:14:51]FM_GetShiftState [11:14:51]SAM_PROTO_GetShiftState [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 13 01 00 [11:14:51]Write to MH i2c: E2 08 00 33 02 80 13 01 00 00 00 00 00 B2 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 0E 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 0E 00 33 02 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 9F [11:14:51]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:14:51]wFMCommunicate OK [11:14:51]SAM_PROTO_GetShiftState done [11:14:51]FM_GetShiftState done [11:14:51]opened in 1723423336 [11:14:51]opened+sec_in_day 1723509736 [11:14:51]quantity*price = 100068 [11:14:51]sum+1 = 100069 [11:14:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.68 ÐСП 1% : 8.86 ÐДС 12% : 106.27 Ðаличными: 0.00 Безнал.: 1000.68 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 18 12.08.2024 11:14 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70586 ФПД: 83192898091434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T111451&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70586&fm=83192898091434&tin=02508201610067®Number=0000000000090913&sum=100068 [11:14:52]StoreToDocumentArchive [11:14:52]shift 465 fd 70586 [11:14:52]save to /storage/0465/doc_00070586 [11:14:52]save last doc name /storage/0465/doc_00070586 to /storage/kkm_last_doc_name [11:14:52]save OK [11:14:52]Clear old archive folders... [11:14:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:14:52]tlvbuf is 010D9A20 [11:14:52]SAM_PROTO_ClearQueue [11:14:52]wFMCommunicate request_size=4 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 09 00 00 [11:14:52]Write to MH i2c: E2 08 00 40 02 80 09 00 00 00 00 00 00 B4 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [11:14:52]RAPDU: 90 00 [11:14:52]wFMCommunicate OK [11:14:52]SAM_PROTO_ClearQueue done [11:14:52]KKMCreateOFDPacket [11:14:52]OFDProtocolAddRootSTLVToBuf [11:14:52]FM_MakeSignedData [11:14:52]FM_MakeSignedData [11:14:52]SAM_PROTO_SignData [11:14:52]wFMCommunicate request_size=4 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 0D 01 02 [11:14:52]Write to MH i2c: E2 08 00 41 02 80 0D 01 02 00 00 00 00 BC [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [11:14:52]RAPDU: 90 00 [11:14:52]wFMCommunicate OK [11:14:52]wFMCommunicate request_size=255 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AB EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BA 13 01 00 35 04 06 00 4B A9 DB 23 [11:14:52]Write to MH i2c: E2 02 01 42 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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AB EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BA 13 01 00 35 04 06 00 4B A9 DB 23 00 00 C5 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:53]Read from MH i2c: E2 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 03 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 03 00 42 02 00 90 00 B8 [11:14:53]RAPDU: 90 00 [11:14:53]wFMCommunicate OK [11:14:53]wFMCommunicate request_size=7 [11:14:53]MH_SAM_APDU [11:14:53]CAPDU: 80 0D 02 02 02 79 AA [11:14:53]Write to MH i2c: E2 0A 00 43 02 80 0D 02 02 02 00 79 AA 00 00 E6 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:53]Read from MH i2c: E2 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 03 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [11:14:53]RAPDU: 90 00 [11:14:53]wFMCommunicate OK [11:14:53]wFMCommunicate request_size=4 [11:14:53]MH_SAM_APDU [11:14:53]CAPDU: 80 0D 03 02 [11:14:53]Write to MH i2c: E2 08 00 44 02 80 0D 03 02 00 00 00 00 C1 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:53]Read from MH i2c: E2 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 0B 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 0B 00 44 02 00 4C B9 54 26 67 4E 03 6D 90 00 66 [11:14:53]RAPDU: 4C B9 54 26 67 4E 03 6D 90 00 [11:14:53]wFMCommunicate OK [11:14:53]SAM_PROTO_SignData done [11:14:53]FM_MakeSignedData done [11:14:53]CreateOFDProtocolMessage [11:14:53]wFMCommunicate request_size=4 [11:14:53]MH_SAM_APDU [11:14:53]CAPDU: 80 11 00 00 [11:14:53]Write to MH i2c: E2 08 00 45 02 80 11 00 00 00 00 00 00 C1 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:53]Read from MH i2c: E2 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: E2 17 00 [11:14:53]MH_I2C_Read... [11:14:53]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 39 31 35 90 00 16 [11:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:14:53]wFMCommunicate OK [11:14:53]CreateOFDProtocolMessage done [11:14:53]OFDSenderStorePacket 70586 [11:14:53]StoreOFDPacket docnum=70586 [11:14:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 67 CD 04 01 A9 BA 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 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AB EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BA 13 01 00 35 04 06 00 4B A9 DB 23 79 AA 4C B9 54 26 67 4E 03 6D [11:14:53]CheckFolder [11:14:53]dirname=/storage/ofd_packets [11:14:53]CheckFolder done [11:14:53]ProducePacketName [11:14:53]name=ofd_packets/00070586 [11:14:53]NVStorageSaveData ofd_packets/00070586 [11:14:53]File name is /storage/ofd_packets/00070586 [11:14:53]Write 298 bytes [11:14:53]NVStorageSaveData done [11:14:53]OFDSenderStorePacket done [11:14:53]KKMCreateOFDPacket done [11:14:53]NVStorageSaveData kkm_last_timestamp [11:14:53]File name is /storage/kkm_last_timestamp [11:14:53]Write 4 bytes [11:14:53]NVStorageSaveData done [11:14:53]ExternCall_PrintAddStr [11:14:53]wPrintStart [11:14:53]Write to MH i2c: 01 00 00 46 02 48 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: 01 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: 01 07 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: 01 07 00 46 02 00 00 00 00 00 FF 0F 5D [11:14:53]RasterBufferAndPrint [11:14:53]line Счет N : (1)141026 [11:14:53]line ИÐÐ: 02508201610067 [11:14:53]line Контрольно-КаÑÑовый Чек [11:14:53]line ПРОДÐЖР[11:14:53]line ТРК (МРК, ГÐК) : 24 [11:14:53]line Товар: 2710194210 [11:14:53]line ДТ-К-5 [11:14:53]line 13.450 * 74.40 [11:14:53]line = 1000.68 [11:14:53]line ÐДС 12% ÐСП 1% [11:14:53]line > о реализуемом товаре [11:14:53]line ИТОГО: 1000.68 [11:14:53]line ÐСП 1% : 8.86 [11:14:53]line ÐДС 12% : 106.27 [11:14:53]line Ðаличными: 0.00 [11:14:53]line Безнал.: 1000.68 [11:14:53]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:14:53]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:14:53]line СÐО: Общий режим [11:14:53]line Чек 18 12.08.2024 11:14 [11:14:53]line Смена: 465 ФФД: 1.0 [11:14:53]line ЗÐМ: 0300000140 [11:14:53]line РÐМ: 0000000000090913 [11:14:53]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:14:53]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [11:14:53]line ФМ: 0000000000874915 [11:14:53]line ФД: 70586 [11:14:53]line ФПД: 83192898091434 [11:14:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T111451&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70586&fm=83192898091434&tin=02508201610067®Number=0000000000090913&sum=100068 [11:14:53]OFD Sender: Processing packet 70586 [packets to send 67, broken 66] [11:14:53]ProducePacketName [11:14:53]name=ofd_packets/00070586 [11:14:53]OFD Sender: To server: ‡•öpG, [11:14:53]CommunicateWithHost lk.salyk.kg:30040 [11:14:53]ConnectInit lk.salyk.kg [11:14:53]written 0, free lines is 4095 [11:14:53]Connected sock=10 [11:14: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 39 31 35 0C 01 00 00 67 CD 04 01 A9 BA 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 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AB EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BA 13 01 00 35 04 06 00 4B A9 DB 23 79 AA 4C B9 54 26 67 4E 03 6D [11:14:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 61 29 47 00 19 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 39 31 35 10 04 04 00 BA 13 01 00 F4 03 04 00 99 95 B9 66 B6 04 01 00 00 1E C6 3B 74 A2 44 04 9E [11:14:53]CommunicateWithHost err = 0 [11:14:53]CheckOFDResponse [11:14:53]1017 (14) - 77093643461234 [11:14:53]1041 (16) - 0000000000874915 [11:14:53]1040 (4) - 70586 [11:14:53]1012 (4) - 12.08.2024 04:54 [11:14:53]1206 (1) - 0 [11:14:53]OFD Sender: Remove packet 70586 [11:14:53]ProducePacketName [11:14:53]name=ofd_packets/00070586 [11:14:53]NVStorageDeleteData [11:14:54]Write to MH i2c: 01 00 00 70 02 72 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: 01 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: 01 07 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 F5 0C 7A [11:14:54]RasterBufferAndPrint [11:14:54]line [11:14:54]line [11:14:54]line [11:14:54]line [11:14:54]line [11:14:54]written 0, free lines is 3323 [11:14:54]MH_Cut [11:14:54]Write to MH i2c: D1 01 00 77 02 01 4B [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: D1 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: D1 01 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: D1 01 00 77 02 00 4A [11:14:54]Write to MH i2c: 01 00 00 78 02 7A [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]OFD Sender: No OFD packet to send [11:14:54]*** Cut start [11:14:54]*** Purtial cut [11:14:54]*** Stage 1: CUTSNS_PIN = 1 [11:14:55]Read from MH i2c: 01 [11:14:55]MH_I2C_Read... [11:14:55]*** Stop cut motor [11:14:55]*** Cut end [11:14:55]Read from MH i2c: 01 07 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 FF 0F 8F [11:14:55]process_action close_receipt done [11:14:55]requested_data is exist [11:14:55]produce_requested_data [11:14:55]requested_item fm.sn is exist - process it [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 11 00 00 [11:14:55]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 17 00 [11:14:55]MH_I2C_Read... [11:14:55]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 39 31 35 90 00 4A [11:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:14:55]wFMCommunicate OK [11:14:55]requested_item fd.num is exist - process it [11:14:55]SAM_PROTO_GetFieldsCounters [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 13 00 00 [11:14:55]Write to MH i2c: E2 08 00 7A 02 80 13 00 00 00 00 00 00 F8 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 62 00 [11:14:55]MH_I2C_Read... [11:14:55]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BA 13 01 00 0E 04 04 00 D1 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 EE [11:14: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BA 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:55]wFMCommunicate OK [11:14:55]SAM_PROTO_GetFieldsCounters done [11:14:55]requested_item shift.num is exist - process it [11:14:55]requested_item shift.opened is exist - process it [11:14:55]req_shift_opened [11:14:55]FM_GetShiftState [11:14:55]SAM_PROTO_GetShiftState [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 13 01 00 [11:14:55]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 E7 [11:14:55]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:14:55]wFMCommunicate OK [11:14:55]SAM_PROTO_GetShiftState done [11:14:55]FM_GetShiftState done [11:14:55]req_shift_opened done [11:14:55]requested_item shift.open_date is exist - process it [11:14:55]req_shift_open_date [11:14:55]req_shift_open_date done [11:14:55]produce_requested_data done [11:14:55]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70586,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:14:55]process_action_free close_receipt [11:14:55]json_value_free [11:14:55]json_value_free done [11:14:55]process_json_proto returns [11:14:55]Send response to host [11:14:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70586,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:14:55]free response buf [11:14:55]execute_script done [11:14:55]execute_script returns [11:14:55]free content buf [11:14:55]Sock 9.Close socket [11:14:55]Sock 9.Thread stoped [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:21]accept exits with 7 [11:15:21]New connection [11:15:21]New thread 3066699108 created [11:15:21]Thread 3066842468 joined [11:15:21]Waiting for new connection... [11:15:21] Sock 7.Parse request [11:15:21]Sock 7.Check first char [11:15:21]Sock 7.First char is OK [11:15:21]request: POST /json_proto HTTP/1.0 [11:15:21]Method: POST [11:15:21]URL: /json_proto [11:15:21]Method is POST - this is cgi request [11:15:21]url: /json_proto [11:15:21]query_string will be loaded in cgi processing [11:15:21]execute_cgi json_proto POST (null) [11:15:21]execute_cgi path=json_proto method=POST [11:15:21]POST find Content-Length [11:15:21]Host: 172.17.58.67:8080 [11:15:21]Content-Length: 806 [11:15:21]Content-Type: application/json [11:15:21] [11:15:21]POST finish read [11:15:21]Found Content-Length = 806 [11:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.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" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:21]execute_script... [11:15: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)141025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.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" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:21]POST & json_proto [11:15:21]process_json_proto [11:15:21]json parsed OK: [11:15:21]protocol is kg_v1.0 [11:15:21]action value=close_receipt [11:15:21]process_action close_receipt [11:15:21]cmd_close_receipt [11:15:21]MH_GetDate [11:15:21]Write to MH i2c: F0 00 00 7C 02 6D [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: F0 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: F0 09 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: F0 09 00 7C 02 00 C9 EE B9 66 94 51 63 64 F8 [11:15:21]GetLastDocTimeStamp 1723461291 [11:15:21]current date 1723461321 [11:15:21]FM_GetShiftState [11:15:21]SAM_PROTO_GetShiftState [11:15:21]wFMCommunicate request_size=4 [11:15:21]MH_SAM_APDU [11:15:21]CAPDU: 80 13 01 00 [11:15:21]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:21]Read from MH i2c: E2 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 0E 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 E9 [11:15:21]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:15:21]wFMCommunicate OK [11:15:21]SAM_PROTO_GetShiftState done [11:15:21]FM_GetShiftState done [11:15:21]opened in 1723423336 [11:15:21]opened+sec_in_day 1723509736 [11:15:21]quantity*price = 65900 [11:15:21]sum+1 = 65901 [11:15:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 659.00 ÐСП 1% : 5.83 ÐДС 12% : 69.98 Ðаличными: 0.00 Безнал.: 659.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 19 12.08.2024 11:15 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70587 ФПД: 46911111483633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T111521&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70587&fm=46911111483633&tin=02508201610067®Number=0000000000090913&sum=65900 [11:15:22]StoreToDocumentArchive [11:15:22]shift 465 fd 70587 [11:15:22]save to /storage/0465/doc_00070587 [11:15:22]save last doc name /storage/0465/doc_00070587 to /storage/kkm_last_doc_name [11:15:22]save OK [11:15:22]Clear old archive folders... [11:15:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:22]tlvbuf is 010D4570 [11:15:22]SAM_PROTO_ClearQueue [11:15:22]wFMCommunicate request_size=4 [11:15:22]MH_SAM_APDU [11:15:22]CAPDU: 80 09 00 00 [11:15:22]Write to MH i2c: E2 08 00 8A 02 80 09 00 00 00 00 00 00 FE [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:22]Read from MH i2c: E2 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [11:15:22]RAPDU: 90 00 [11:15:22]wFMCommunicate OK [11:15:22]SAM_PROTO_ClearQueue done [11:15:22]KKMCreateOFDPacket [11:15:22]OFDProtocolAddRootSTLVToBuf [11:15:22]FM_MakeSignedData [11:15:22]FM_MakeSignedData [11:15:22]SAM_PROTO_SignData [11:15:22]wFMCommunicate request_size=4 [11:15:22]MH_SAM_APDU [11:15:22]CAPDU: 80 0D 01 02 [11:15:22]Write to MH i2c: E2 08 00 8B 02 80 0D 01 02 00 00 00 00 06 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:22]Read from MH i2c: E2 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [11:15:22]RAPDU: 90 00 [11:15:22]wFMCommunicate OK [11:15:22]wFMCommunicate request_size=255 [11:15:22]MH_SAM_APDU [11:15:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 C9 EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BB 13 01 00 35 04 06 00 2A [11:15:22]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 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 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 C9 EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BB 13 01 00 35 04 06 00 2A 00 00 D5 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:23]Read from MH i2c: E2 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 03 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [11:15:23]RAPDU: 90 00 [11:15:23]wFMCommunicate OK [11:15:23]wFMCommunicate request_size=10 [11:15:23]MH_SAM_APDU [11:15:23]CAPDU: 80 0D 02 02 05 AA 58 22 D0 F1 [11:15:23]Write to MH i2c: E2 0D 00 8D 02 80 0D 02 02 05 00 AA 58 22 D0 F1 00 00 F8 [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:23]Read from MH i2c: E2 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 03 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [11:15:23]RAPDU: 90 00 [11:15:23]wFMCommunicate OK [11:15:23]wFMCommunicate request_size=4 [11:15:23]MH_SAM_APDU [11:15:23]CAPDU: 80 0D 03 02 [11:15:23]Write to MH i2c: E2 08 00 8E 02 80 0D 03 02 00 00 00 00 0B [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:23]Read from MH i2c: E2 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 0B 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 0B 00 8E 02 00 8E E9 6E DC A0 47 3E 15 90 00 07 [11:15:23]RAPDU: 8E E9 6E DC A0 47 3E 15 90 00 [11:15:23]wFMCommunicate OK [11:15:23]SAM_PROTO_SignData done [11:15:23]FM_MakeSignedData done [11:15:23]CreateOFDProtocolMessage [11:15:23]wFMCommunicate request_size=4 [11:15:23]MH_SAM_APDU [11:15:23]CAPDU: 80 11 00 00 [11:15:23]Write to MH i2c: E2 08 00 8F 02 80 11 00 00 00 00 00 00 0B [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:23]Read from MH i2c: E2 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: E2 17 00 [11:15:23]MH_I2C_Read... [11:15:23]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 39 31 35 90 00 60 [11:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:15:23]wFMCommunicate OK [11:15:23]CreateOFDProtocolMessage done [11:15:23]OFDSenderStorePacket 70587 [11:15:23]StoreOFDPacket docnum=70587 [11:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 00 F3 07 01 F5 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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 C9 EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BB 13 01 00 35 04 06 00 2A AA 58 22 D0 F1 8E E9 6E DC A0 47 3E 15 [11:15:23]CheckFolder [11:15:23]dirname=/storage/ofd_packets [11:15:23]CheckFolder done [11:15:23]ProducePacketName [11:15:23]name=ofd_packets/00070587 [11:15:23]NVStorageSaveData ofd_packets/00070587 [11:15:23]File name is /storage/ofd_packets/00070587 [11:15:23]Write 301 bytes [11:15:23]NVStorageSaveData done [11:15:23]OFDSenderStorePacket done [11:15:23]KKMCreateOFDPacket done [11:15:23]NVStorageSaveData kkm_last_timestamp [11:15:23]File name is /storage/kkm_last_timestamp [11:15:23]Write 4 bytes [11:15:23]NVStorageSaveData done [11:15:23]ExternCall_PrintAddStr [11:15:23]wPrintStart [11:15:23]Write to MH i2c: 01 00 00 90 02 92 [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: 01 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: 01 07 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 FF 0F A7 [11:15:23]RasterBufferAndPrint [11:15:23]line Счет N : (1)141025 [11:15:23]line ИÐÐ: 02508201610067 [11:15:23]line Контрольно-КаÑÑовый Чек [11:15:23]line ПРОДÐЖР[11:15:23]line ТРК (МРК, ГÐК) : 31 [11:15:23]line Товар: 2710124130 [11:15:23]line Ðи-92-К-5 [11:15:23]line 10.000 * 65.90 [11:15:23]line = 659.00 [11:15:23]line ÐДС 12% ÐСП 1% [11:15:23]line > о реализуемом товаре [11:15:23]line ИТОГО: 659.00 [11:15:23]line ÐСП 1% : 5.83 [11:15:23]line ÐДС 12% : 69.98 [11:15:23]line Ðаличными: 0.00 [11:15:23]line Безнал.: 659.00 [11:15:23]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:15:23]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:15:23]line СÐО: Общий режим [11:15:23]line Чек 19 12.08.2024 11:15 [11:15:23]line Смена: 465 ФФД: 1.0 [11:15:23]line ЗÐМ: 0300000140 [11:15:23]line РÐМ: 0000000000090913 [11:15:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:15:23]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [11:15:23]line ФМ: 0000000000874915 [11:15:23]line ФД: 70587 [11:15:23]line ФПД: 46911111483633 [11:15:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T111521&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70587&fm=46911111483633&tin=02508201610067®Number=0000000000090913&sum=65900 [11:15:23]OFD Sender: Processing packet 70587 [packets to send 67, broken 66] [11:15:23]ProducePacketName [11:15:23]name=ofd_packets/00070587 [11:15:23]OFD Sender: To server: ‡•öpG, [11:15:23]CommunicateWithHost lk.salyk.kg:30040 [11:15:23]ConnectInit lk.salyk.kg [11:15:23]written 0, free lines is 4095 [11:15:23]Connected sock=10 [11:15: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 39 31 35 0F 01 00 00 00 F3 07 01 F5 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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 C9 EE B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BB 13 01 00 35 04 06 00 2A AA 58 22 D0 F1 8E E9 6E DC A0 47 3E 15 [11:15:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 82 9C 47 00 3F 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 39 31 35 10 04 04 00 BB 13 01 00 F4 03 04 00 B7 95 B9 66 B6 04 01 00 00 EE A4 8C 0D 55 E7 83 1A [11:15:23]CommunicateWithHost err = 0 [11:15:23]CheckOFDResponse [11:15:23]1017 (14) - 77093643461234 [11:15:23]1041 (16) - 0000000000874915 [11:15:23]1040 (4) - 70587 [11:15:23]1012 (4) - 12.08.2024 04:55 [11:15:23]1206 (1) - 0 [11:15:23]OFD Sender: Remove packet 70587 [11:15:23]ProducePacketName [11:15:23]name=ofd_packets/00070587 [11:15:23]NVStorageDeleteData [11:15:24]Write to MH i2c: 01 00 00 BA 02 BC [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: 01 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: 01 07 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0C CE [11:15:24]RasterBufferAndPrint [11:15:24]line [11:15:24]line [11:15:24]line [11:15:24]line [11:15:24]line [11:15:24]written 0, free lines is 3333 [11:15:24]MH_Cut [11:15:24]Write to MH i2c: D1 01 00 C1 02 01 95 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: D1 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: D1 01 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: D1 01 00 C1 02 00 94 [11:15:24]Write to MH i2c: 01 00 00 C2 02 C4 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]OFD Sender: No OFD packet to send [11:15:24]*** Cut start [11:15:24]*** Purtial cut [11:15:24]*** CUTSNS_PIN = 0 [11:15:25]*** Stage 1: CUTSNS_PIN = 1 [11:15:26]Read from MH i2c: 01 [11:15:26]MH_I2C_Read... [11:15:26]*** Stop cut motor [11:15:26]*** Cut end [11:15:26]Read from MH i2c: 01 07 00 [11:15:26]MH_I2C_Read... [11:15:26]Read from MH i2c: 01 07 00 C2 02 00 00 00 00 00 FF 0F D9 [11:15:26]process_action close_receipt done [11:15:26]requested_data is exist [11:15:26]produce_requested_data [11:15:26]requested_item fm.sn is exist - process it [11:15:26]wFMCommunicate request_size=4 [11:15:26]MH_SAM_APDU [11:15:26]CAPDU: 80 11 00 00 [11:15:26]Write to MH i2c: E2 08 00 C3 02 80 11 00 00 00 00 00 00 3F [11:15:26]Write i2c OK [11:15:26]MH_I2C_Read... [11:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:26]Read from MH i2c: E2 [11:15:26]MH_I2C_Read... [11:15:26]Read from MH i2c: E2 17 00 [11:15:26]MH_I2C_Read... [11:15:26]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 39 31 35 90 00 94 [11:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:15:26]wFMCommunicate OK [11:15:26]requested_item fd.num is exist - process it [11:15:26]SAM_PROTO_GetFieldsCounters [11:15:26]wFMCommunicate request_size=4 [11:15:26]MH_SAM_APDU [11:15:26]CAPDU: 80 13 00 00 [11:15:26]Write to MH i2c: E2 08 00 C4 02 80 13 00 00 00 00 00 00 42 [11:15:26]Write i2c OK [11:15:26]MH_I2C_Read... [11:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:27]Read from MH i2c: E2 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 62 00 [11:15:27]MH_I2C_Read... [11:15:27]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BB 13 01 00 0E 04 04 00 D1 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 3C [11:15: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BB 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:27]wFMCommunicate OK [11:15:27]SAM_PROTO_GetFieldsCounters done [11:15:27]requested_item shift.num is exist - process it [11:15:27]requested_item shift.opened is exist - process it [11:15:27]req_shift_opened [11:15:27]FM_GetShiftState [11:15:27]SAM_PROTO_GetShiftState [11:15:27]wFMCommunicate request_size=4 [11:15:27]MH_SAM_APDU [11:15:27]CAPDU: 80 13 01 00 [11:15:27]Write to MH i2c: E2 08 00 C5 02 80 13 01 00 00 00 00 00 44 [11:15:27]Write i2c OK [11:15:27]MH_I2C_Read... [11:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:27]Read from MH i2c: E2 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 0E 00 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 0E 00 C5 02 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 31 [11:15:27]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:15:27]wFMCommunicate OK [11:15:27]SAM_PROTO_GetShiftState done [11:15:27]FM_GetShiftState done [11:15:27]req_shift_opened done [11:15:27]requested_item shift.open_date is exist - process it [11:15:27]req_shift_open_date [11:15:27]req_shift_open_date done [11:15:27]produce_requested_data done [11:15:27]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70587,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:15:27]process_action_free close_receipt [11:15:27]json_value_free [11:15:27]json_value_free done [11:15:27]process_json_proto returns [11:15:27]Send response to host [11:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70587,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:15:27]free response buf [11:15:27]execute_script done [11:15:27]execute_script returns [11:15:27]free content buf [11:15:27]Sock 7.Close socket [11:15:27]Sock 7.Thread stoped [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:38]accept exits with 9 [11:18:38]New connection [11:18:38]New thread 3066842468 created [11:18:38]Thread 3066699108 joined [11:18:38]Waiting for new connection... [11:18:38] Sock 9.Parse request [11:18:38]Sock 9.Check first char [11:18:38]Sock 9.First char is OK [11:18:38]request: POST /json_proto HTTP/1.0 [11:18:38]Method: POST [11:18:38]URL: /json_proto [11:18:38]Method is POST - this is cgi request [11:18:38]url: /json_proto [11:18:38]query_string will be loaded in cgi processing [11:18:38]execute_cgi json_proto POST (null) [11:18:38]execute_cgi path=json_proto method=POST [11:18:38]POST find Content-Length [11:18:38]Host: 172.17.58.67:8080 [11:18:38]Content-Length: 1176 [11:18:38]Content-Type: application/json [11:18:38] [11:18:38]POST finish read [11:18:38]Found Content-Length = 1176 [11:18: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141027\u000A12.08.2024 10:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 744.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\u000A4004387\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:38]execute_script... [11:18: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141027\u000A12.08.2024 10:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 44\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 744.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\u000A4004387\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:38]POST & json_proto [11:18:38]process_json_proto [11:18:38]json parsed OK: [11:18:38]protocol is kg_v1.0 [11:18:38]action value=print_text [11:18:38]process_action print_text [11:18:38]cmd_print_text [11:18:38]ExternCall_PrintAddStr [11:18:38]wPrintStart [11:18:38]Write to MH i2c: 01 00 00 C6 02 C8 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 07 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 07 00 C6 02 00 00 00 00 00 FF 0F DD [11:18:38]RasterBufferAndPrint [11:18:38]line *****ТОВÐРÐЫЙ ЧЕК***** [11:18:38]line ÐЗС 39 [11:18:38]line Партнер нефть [11:18:38]line 02508201610067 [11:18:38]line КаÑÑир : Мирбек к Ð. [11:18:38]line Счет N : (1)141027 [11:18:38]line 12.08.2024 10:37 [11:18:38]line ПРОДÐЖР[11:18:38]line ТРК (МРК, ГÐК): 44 [11:18:38]line Вид ГСМ : 2710194210 [11:18:38]line ДТ-К-5 [11:18:38]line 10.000 x 74.40 [11:18:38]line ИТОГ: 744.00 [11:18:38]line Тип оплаты: Талоны: Партнер нефть [11:18:38]line 4004387 [11:18:38]line ______________________ [11:18:38]line (подпиÑÑŒ) [11:18:38]written 0, free lines is 4095 [11:18:38]Write to MH i2c: 01 00 00 DA 02 DC [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 07 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 07 00 DA 02 00 00 00 00 00 0E 0E FF [11:18:38]RasterBufferAndPrint [11:18:38]line [11:18:38]line [11:18:38]line [11:18:38]line [11:18:38]line [11:18:38]written 0, free lines is 3600 [11:18:38]MH_Cut [11:18:38]Write to MH i2c: D1 01 00 E1 02 01 B5 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: D1 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: D1 01 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: D1 01 00 E1 02 00 B4 [11:18:38]Write to MH i2c: 01 00 00 E2 02 E4 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:39]*** Cut start [11:18:39]*** Purtial cut [11:18:39]*** Stage 1: CUTSNS_PIN = 1 [11:18:39]Read from MH i2c: 01 [11:18:39]MH_I2C_Read... [11:18:39]*** Stop cut motor [11:18:39]*** Cut end [11:18:39]Read from MH i2c: 01 07 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 E2 02 00 00 00 00 00 FF 0F F9 [11:18:39]process_action print_text done [11:18:39]requested_data is exist [11:18:39]produce_requested_data [11:18:39]requested_item fm.sn is exist - process it [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 11 00 00 [11:18:39]Write to MH i2c: E2 08 00 E3 02 80 11 00 00 00 00 00 00 5F [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:39]OFD Sender: No OFD packet to send [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 17 00 [11:18:39]MH_I2C_Read... [11:18:39]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 39 31 35 90 00 B4 [11:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:18:39]wFMCommunicate OK [11:18:39]requested_item fd.num is exist - process it [11:18:39]SAM_PROTO_GetFieldsCounters [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 13 00 00 [11:18:39]Write to MH i2c: E2 08 00 E4 02 80 13 00 00 00 00 00 00 62 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 62 00 [11:18:39]MH_I2C_Read... [11:18:39]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BB 13 01 00 0E 04 04 00 D1 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 5C [11:18: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BB 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:39]wFMCommunicate OK [11:18:39]SAM_PROTO_GetFieldsCounters done [11:18:39]requested_item shift.num is exist - process it [11:18:39]requested_item shift.opened is exist - process it [11:18:39]req_shift_opened [11:18:39]FM_GetShiftState [11:18:39]SAM_PROTO_GetShiftState [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 13 01 00 [11:18:39]Write to MH i2c: E2 08 00 E5 02 80 13 01 00 00 00 00 00 64 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0E 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0E 00 E5 02 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 51 [11:18:39]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:18:39]wFMCommunicate OK [11:18:39]SAM_PROTO_GetShiftState done [11:18:39]FM_GetShiftState done [11:18:39]req_shift_opened done [11:18:39]requested_item shift.open_date is exist - process it [11:18:39]req_shift_open_date [11:18:39]req_shift_open_date done [11:18:39]produce_requested_data done [11:18:39]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70587,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:18:39]process_action_free print_text [11:18:39]json_value_free [11:18:39]json_value_free done [11:18:39]process_json_proto returns [11:18:39]Send response to host [11:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70587,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:18:39]free response buf [11:18:39]execute_script done [11:18:39]execute_script returns [11:18:39]free content buf [11:18:39]Sock 9.Close socket [11:18:39]Sock 9.Thread stoped [11:18:44]OFD Sender: No OFD packet to send [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:13]int [11:19:13]Write to MH i2c: 01 00 00 E6 02 E8 [11:19:13]*** FLAG_PRN_KEY set [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 E6 02 00 08 00 00 00 FF 0F 05 [11:19:13]state=0 [11:19:13]Key pressed [11:19:13]Feed [11:19:13]Write to MH i2c: D8 00 00 E7 02 C0 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: D8 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: D8 01 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: D8 01 00 E7 02 00 C1 [11:19:13]int [11:19:13]Write to MH i2c: 01 00 00 E8 02 EA [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 E8 02 00 48 00 00 00 3C 00 75 [11:19:13]state=2 [11:19:13]Key pressed [11:19:13]int [11:19:13]Write to MH i2c: 01 00 00 E9 02 EB [11:19:13]*** FLAG_PRN_KEY reset [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 FB 0F FC [11:19:13]state=2 [11:19:13]Stop feed [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:55]accept exits with 7 [11:20:55]New connection [11:20:55]New thread 3066699108 created [11:20:55]Thread 3066842468 joined [11:20:55]Waiting for new connection... [11:20:55] Sock 7.Parse request [11:20:55]Sock 7.Check first char [11:20:55]Sock 7.First char is OK [11:20:55]request: POST /json_proto HTTP/1.0 [11:20:55]Method: POST [11:20:55]URL: /json_proto [11:20:55]Method is POST - this is cgi request [11:20:55]url: /json_proto [11:20:55]query_string will be loaded in cgi processing [11:20:55]execute_cgi json_proto POST (null) [11:20:55]execute_cgi path=json_proto method=POST [11:20:55]POST find Content-Length [11:20:55]Host: 172.17.58.67:8080 [11:20:55]Content-Length: 1190 [11:20:55]Content-Type: application/json [11:20:55] [11:20:55]POST finish read [11:20:55]Found Content-Length = 1190 [11:20: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141029\u000A12.08.2024 10:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A24099\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:55]execute_script... [11:20: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141029\u000A12.08.2024 10:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A24099\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:55]POST & json_proto [11:20:55]process_json_proto [11:20:55]json parsed OK: [11:20:55]protocol is kg_v1.0 [11:20:55]action value=print_text [11:20:55]process_action print_text [11:20:55]cmd_print_text [11:20:55]ExternCall_PrintAddStr [11:20:55]wPrintStart [11:20:55]Write to MH i2c: 01 00 00 EA 02 EC [11:20:55]Write i2c OK [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: 01 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: 01 07 00 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 FF 0F 01 [11:20:55]RasterBufferAndPrint [11:20:55]line *****ТОВÐРÐЫЙ ЧЕК***** [11:20:55]line ÐЗС 39 [11:20:55]line Партнер нефть [11:20:55]line 02508201610067 [11:20:55]line КаÑÑир : Мирбек к Ð. [11:20:55]line Счет N : (1)141029 [11:20:55]line 12.08.2024 10:40 [11:20:55]line ПРОДÐЖР[11:20:55]line ТРК (МРК, ГÐК): 31 [11:20:55]line Вид ГСМ : 2710124130 [11:20:55]line Ðи-92-К-5 [11:20:55]line 20.000 x 65.90 [11:20:55]line ИТОГ: 1318.00 [11:20:55]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [11:20:55]line 24099 [11:20:55]line ______________________ [11:20:55]line (подпиÑÑŒ) [11:20:55]written 0, free lines is 4095 [11:20:55]Write to MH i2c: 01 00 00 FE 02 00 [11:20:55]Write i2c OK [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: 01 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: 01 07 00 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 13 0E 28 [11:20:55]RasterBufferAndPrint [11:20:55]line [11:20:55]line [11:20:55]line [11:20:55]line [11:20:55]line [11:20:55]written 0, free lines is 3604 [11:20:55]MH_Cut [11:20:55]Write to MH i2c: D1 01 00 05 03 01 DA [11:20:55]Write i2c OK [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: D1 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: D1 01 00 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: D1 01 00 05 03 00 D9 [11:20:55]Write to MH i2c: 01 00 00 06 03 09 [11:20:55]Write i2c OK [11:20:55]MH_I2C_Read... [11:20:56]*** Cut start [11:20:56]*** Purtial cut [11:20:56]*** CUTSNS_PIN = 0 [11:20:56]*** Stage 1: CUTSNS_PIN = 1 [11:20:58]Read from MH i2c: 01 [11:20:58]MH_I2C_Read... [11:20:58]*** Stop cut motor [11:20:58]*** Cut end [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 06 03 00 00 00 00 00 FF 0F 1E [11:20:58]process_action print_text done [11:20:58]requested_data is exist [11:20:58]produce_requested_data [11:20:58]requested_item fm.sn is exist - process it [11:20:58]wFMCommunicate request_size=4 [11:20:58]MH_SAM_APDU [11:20:58]CAPDU: 80 11 00 00 [11:20:58]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:58]Read from MH i2c: E2 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 17 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D9 [11:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:20:58]wFMCommunicate OK [11:20:58]requested_item fd.num is exist - process it [11:20:58]SAM_PROTO_GetFieldsCounters [11:20:58]wFMCommunicate request_size=4 [11:20:58]MH_SAM_APDU [11:20:58]CAPDU: 80 13 00 00 [11:20:58]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 [11:20:58]MH_I2C_Read... [11:20:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:58]Read from MH i2c: E2 62 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 62 00 08 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BB 13 01 00 0E 04 04 00 D1 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 81 [11: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BB 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:58]wFMCommunicate OK [11:20:58]SAM_PROTO_GetFieldsCounters done [11:20:58]requested_item shift.num is exist - process it [11:20:58]requested_item shift.opened is exist - process it [11:20:58]req_shift_opened [11:20:58]FM_GetShiftState [11:20:58]SAM_PROTO_GetShiftState [11:20:58]wFMCommunicate request_size=4 [11:20:58]MH_SAM_APDU [11:20:58]CAPDU: 80 13 01 00 [11:20:58]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:58]Read from MH i2c: E2 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 0E 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 76 [11:20:58]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:20:58]wFMCommunicate OK [11:20:58]SAM_PROTO_GetShiftState done [11:20:58]FM_GetShiftState done [11:20:58]req_shift_opened done [11:20:58]requested_item shift.open_date is exist - process it [11:20:58]req_shift_open_date [11:20:58]req_shift_open_date done [11:20:58]produce_requested_data done [11:20:58]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70587,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:20:58]process_action_free print_text [11:20:58]json_value_free [11:20:58]json_value_free done [11:20:58]process_json_proto returns [11:20:58]Send response to host [11:20:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70587,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:20:58]free response buf [11:20:58]execute_script done [11:20:58]execute_script returns [11:20:58]free content buf [11:20:58]Sock 7.Close socket [11:20:58]Sock 7.Thread stoped [11:20:58]int [11:20:58]Write to MH i2c: 01 00 00 0A 03 0D [11:20:58]*** FLAG_PRN_KEY set [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 0A 03 00 08 00 00 00 FF 0F 2A [11:20:58]state=0 [11:20:58]Key pressed [11:20:58]Feed [11:20:58]Write to MH i2c: D8 00 00 0B 03 E5 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D8 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D8 01 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D8 01 00 0B 03 00 E6 [11:20:58]int [11:20:58]Write to MH i2c: 01 00 00 0C 03 0F [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 0C 03 00 48 00 00 00 3C 00 9A [11:20:58]state=2 [11:20:58]Key pressed [11:20:59]int [11:20:59]Write to MH i2c: 01 00 00 0D 03 10 [11:20:59]*** FLAG_PRN_KEY reset [11:20:59]Write i2c OK [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: 01 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: 01 07 00 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 F6 0F 1C [11:20:59]state=2 [11:20:59]Stop feed [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:08]accept exits with 9 [11:22:08]New connection [11:22:08]New thread 3066842468 created [11:22:08]Thread 3066699108 joined [11:22:08]Waiting for new connection... [11:22:08] Sock 9.Parse request [11:22:08]Sock 9.Check first char [11:22:08]Sock 9.First char is OK [11:22:08]request: POST /json_proto HTTP/1.0 [11:22:08]Method: POST [11:22:08]URL: /json_proto [11:22:08]Method is POST - this is cgi request [11:22:08]url: /json_proto [11:22:08]query_string will be loaded in cgi processing [11:22:08]execute_cgi json_proto POST (null) [11:22:08]execute_cgi path=json_proto method=POST [11:22:08]POST find Content-Length [11:22:08]Host: 172.17.58.67:8080 [11:22:08]Content-Length: 1190 [11:22:08]Content-Type: application/json [11:22:08] [11:22:08]POST finish read [11:22:08]Found Content-Length = 1190 [11:22: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141028\u000A12.08.2024 10:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 35.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2306.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53445\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:08]execute_script... [11:22: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141028\u000A12.08.2024 10:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 35.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2306.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53445\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:08]POST & json_proto [11:22:08]process_json_proto [11:22:08]json parsed OK: [11:22:08]protocol is kg_v1.0 [11:22:08]action value=print_text [11:22:08]process_action print_text [11:22:08]cmd_print_text [11:22:08]ExternCall_PrintAddStr [11:22:08]wPrintStart [11:22:08]Write to MH i2c: 01 00 00 0E 03 11 [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: 01 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: 01 07 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 FF 0F 26 [11:22:08]RasterBufferAndPrint [11:22:08]line *****ТОВÐРÐЫЙ ЧЕК***** [11:22:08]line ÐЗС 39 [11:22:08]line Партнер нефть [11:22:08]line 02508201610067 [11:22:08]line КаÑÑир : Мирбек к Ð. [11:22:08]line Счет N : (1)141028 [11:22:08]line 12.08.2024 10:41 [11:22:08]line ПРОДÐЖР[11:22:08]line ТРК (МРК, ГÐК): 41 [11:22:08]line Вид ГСМ : 2710124130 [11:22:08]line Ðи-92-К-5 [11:22:08]line 35.000 x 65.90 [11:22:08]line ИТОГ: 2306.50 [11:22:08]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [11:22:08]line 53445 [11:22:08]line ______________________ [11:22:08]line (подпиÑÑŒ) [11:22:08]written 0, free lines is 4095 [11:22:08]Write to MH i2c: 01 00 00 22 03 25 [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: 01 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: 01 07 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 13 0E 4D [11:22:08]RasterBufferAndPrint [11:22:08]line [11:22:08]line [11:22:08]line [11:22:08]line [11:22:08]line [11:22:08]written 0, free lines is 3604 [11:22:08]MH_Cut [11:22:08]Write to MH i2c: D1 01 00 29 03 01 FE [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: D1 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: D1 01 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: D1 01 00 29 03 00 FD [11:22:08]Write to MH i2c: 01 00 00 2A 03 2D [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]*** Cut start [11:22:08]*** Purtial cut [11:22:08]*** Stage 1: CUTSNS_PIN = 1 [11:22:09]Read from MH i2c: 01 [11:22:09]MH_I2C_Read... [11:22:09]*** Stop cut motor [11:22:09]*** Cut end [11:22:09]Read from MH i2c: 01 07 00 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: 01 07 00 2A 03 00 00 00 00 00 FF 0F 42 [11:22:09]process_action print_text done [11:22:09]requested_data is exist [11:22:09]produce_requested_data [11:22:09]requested_item fm.sn is exist - process it [11:22:09]wFMCommunicate request_size=4 [11:22:09]MH_SAM_APDU [11:22:09]CAPDU: 80 11 00 00 [11:22:09]Write to MH i2c: E2 08 00 2B 03 80 11 00 00 00 00 00 00 A8 [11:22:09]Write i2c OK [11:22:09]MH_I2C_Read... [11:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:09]Read from MH i2c: E2 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: E2 17 00 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: E2 17 00 2B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FD [11:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:22:09]wFMCommunicate OK [11:22:09]requested_item fd.num is exist - process it [11:22:09]SAM_PROTO_GetFieldsCounters [11:22:09]wFMCommunicate request_size=4 [11:22:09]MH_SAM_APDU [11:22:09]CAPDU: 80 13 00 00 [11:22:09]Write to MH i2c: E2 08 00 2C 03 80 13 00 00 00 00 00 00 AB [11:22:09]Write i2c OK [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: E2 [11:22:09]MH_I2C_Read... [11:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:09]Read from MH i2c: E2 62 00 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: E2 62 00 2C 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BB 13 01 00 0E 04 04 00 D1 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 A5 [11:22: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BB 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:09]wFMCommunicate OK [11:22:09]SAM_PROTO_GetFieldsCounters done [11:22:09]requested_item shift.num is exist - process it [11:22:09]requested_item shift.opened is exist - process it [11:22:09]req_shift_opened [11:22:09]FM_GetShiftState [11:22:09]SAM_PROTO_GetShiftState [11:22:09]wFMCommunicate request_size=4 [11:22:09]MH_SAM_APDU [11:22:09]CAPDU: 80 13 01 00 [11:22:09]Write to MH i2c: E2 08 00 2D 03 80 13 01 00 00 00 00 00 AD [11:22:09]Write i2c OK [11:22:09]MH_I2C_Read... [11:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:09]Read from MH i2c: E2 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: E2 0E 00 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: E2 0E 00 2D 03 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 9A [11:22:09]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:22:09]wFMCommunicate OK [11:22:09]SAM_PROTO_GetShiftState done [11:22:09]FM_GetShiftState done [11:22:09]req_shift_opened done [11:22:09]requested_item shift.open_date is exist - process it [11:22:09]req_shift_open_date [11:22:09]req_shift_open_date done [11:22:09]produce_requested_data done [11:22:09]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70587,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:22:09]process_action_free print_text [11:22:09]json_value_free [11:22:09]json_value_free done [11:22:09]process_json_proto returns [11:22:09]Send response to host [11:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70587,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:22:09]free response buf [11:22:09]execute_script done [11:22:09]execute_script returns [11:22:09]free content buf [11:22:09]Sock 9.Close socket [11:22:09]Sock 9.Thread stoped [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]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:47]int [11:24:47]Write to MH i2c: 01 00 00 2E 03 31 [11:24:47]*** FLAG_PRN_KEY set [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 07 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 07 00 2E 03 00 08 00 00 00 FF 0F 4E [11:24:47]state=0 [11:24:47]Key pressed [11:24:47]Feed [11:24:47]Write to MH i2c: D8 00 00 2F 03 09 [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: D8 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: D8 01 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: D8 01 00 2F 03 00 0A [11:24:47]int [11:24:47]Write to MH i2c: 01 00 00 30 03 33 [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 07 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 07 00 30 03 00 48 00 00 00 3C 00 BE [11:24:47]state=2 [11:24:47]Key pressed [11:24:47]int [11:24:47]Write to MH i2c: 01 00 00 31 03 34 [11:24:47]*** FLAG_PRN_KEY reset [11:24:47]Write i2c OK [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 07 00 [11:24:47]MH_I2C_Read... [11:24:47]Read from MH i2c: 01 07 00 31 03 00 00 00 00 00 F6 0F 40 [11:24:47]state=2 [11:24:47]Stop feed [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: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:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [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:54]accept exits with 7 [11:36:54]New connection [11:36:54]New thread 3066699108 created [11:36:54]Thread 3066842468 joined [11:36:54]Waiting for new connection... [11:36:54] Sock 7.Parse request [11:36:54]Sock 7.Check first char [11:36:54]Sock 7.First char is OK [11:36:54]request: POST /json_proto HTTP/1.0 [11:36:54]Method: POST [11:36:54]URL: /json_proto [11:36:54]Method is POST - this is cgi request [11:36:54]url: /json_proto [11:36:54]query_string will be loaded in cgi processing [11:36:54]execute_cgi json_proto POST (null) [11:36:54]execute_cgi path=json_proto method=POST [11:36:54]POST find Content-Length [11:36:54]Host: 172.17.58.67:8080 [11:36:54]Content-Length: 805 [11:36:54]Content-Type: application/json [11:36:54] [11:36:54]POST finish read [11:36:54]Found Content-Length = 805 [11:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.450, "sum" : 490.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 490.96 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:54]execute_script... [11:36:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.450, "sum" : 490.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 490.96 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:54]POST & json_proto [11:36:54]process_json_proto [11:36:54]json parsed OK: [11:36:54]protocol is kg_v1.0 [11:36:54]action value=close_receipt [11:36:54]process_action close_receipt [11:36:54]cmd_close_receipt [11:36:54]MH_GetDate [11:36:54]Write to MH i2c: F0 00 00 32 03 24 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: F0 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: F0 09 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: F0 09 00 32 03 00 D6 F3 B9 66 94 51 63 64 C1 [11:36:54]GetLastDocTimeStamp 1723461321 [11:36:54]current date 1723462614 [11:36:54]FM_GetShiftState [11:36:54]SAM_PROTO_GetShiftState [11:36:54]wFMCommunicate request_size=4 [11:36:54]MH_SAM_APDU [11:36:54]CAPDU: 80 13 01 00 [11:36:54]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [11:36:54]Write i2c OK [11:36:54]MH_I2C_Read... [11:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:54]Read from MH i2c: E2 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 0E 00 [11:36:54]MH_I2C_Read... [11:36:54]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 A0 [11:36:54]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:36:54]wFMCommunicate OK [11:36:54]SAM_PROTO_GetShiftState done [11:36:54]FM_GetShiftState done [11:36:54]opened in 1723423336 [11:36:54]opened+sec_in_day 1723509736 [11:36:54]quantity*price = 49095 [11:36:54]sum+1 = 49097 [11:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 490.96 ÐСП 1% : 4.34 ÐДС 12% : 52.14 Ðаличными: 0.00 Безнал.: 490.96 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 20 12.08.2024 11:36 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70588 ФПД: 83931826334138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T113654&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70588&fm=83931826334138&tin=02508201610067®Number=0000000000090913&sum=49096 [11:36:55]StoreToDocumentArchive [11:36:55]shift 465 fd 70588 [11:36:55]save to /storage/0465/doc_00070588 [11:36:55]save last doc name /storage/0465/doc_00070588 to /storage/kkm_last_doc_name [11:36:55]save OK [11:36:55]Clear old archive folders... [11:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:55]tlvbuf is 010EB080 [11:36:55]SAM_PROTO_ClearQueue [11:36:55]wFMCommunicate request_size=4 [11:36:55]MH_SAM_APDU [11:36:55]CAPDU: 80 09 00 00 [11:36:55]Write to MH i2c: E2 08 00 40 03 80 09 00 00 00 00 00 00 B5 [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:55]Read from MH i2c: E2 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 03 00 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [11:36:55]RAPDU: 90 00 [11:36:55]wFMCommunicate OK [11:36:55]SAM_PROTO_ClearQueue done [11:36:55]KKMCreateOFDPacket [11:36:55]OFDProtocolAddRootSTLVToBuf [11:36:55]FM_MakeSignedData [11:36:55]FM_MakeSignedData [11:36:55]SAM_PROTO_SignData [11:36:55]wFMCommunicate request_size=4 [11:36:55]MH_SAM_APDU [11:36:55]CAPDU: 80 0D 01 02 [11:36:55]Write to MH i2c: E2 08 00 41 03 80 0D 01 02 00 00 00 00 BD [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:55]Read from MH i2c: E2 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 03 00 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [11:36:55]RAPDU: 90 00 [11:36:55]wFMCommunicate OK [11:36:55]wFMCommunicate request_size=255 [11:36:55]MH_SAM_APDU [11:36:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C8 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D6 F3 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BC 13 01 00 35 04 06 00 4C [11:36:55]Write to MH i2c: E2 02 01 42 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 1A 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C8 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D6 F3 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BC 13 01 00 35 04 06 00 4C 00 00 78 [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:55]Read from MH i2c: E2 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 03 00 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [11:36:55]RAPDU: 90 00 [11:36:55]wFMCommunicate OK [11:36:55]wFMCommunicate request_size=10 [11:36:55]MH_SAM_APDU [11:36:55]CAPDU: 80 0D 02 02 05 55 E6 B1 A9 BA [11:36:55]Write to MH i2c: E2 0D 00 43 03 80 0D 02 02 05 00 55 E6 B1 A9 BA 00 00 19 [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:55]Read from MH i2c: E2 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 03 00 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [11:36:55]RAPDU: 90 00 [11:36:55]wFMCommunicate OK [11:36:55]wFMCommunicate request_size=4 [11:36:55]MH_SAM_APDU [11:36:55]CAPDU: 80 0D 03 02 [11:36:55]Write to MH i2c: E2 08 00 44 03 80 0D 03 02 00 00 00 00 C2 [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:55]Read from MH i2c: E2 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 0B 00 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 0B 00 44 03 00 D5 D8 E0 D0 E3 ED 8C C3 90 00 3F [11:36:55]RAPDU: D5 D8 E0 D0 E3 ED 8C C3 90 00 [11:36:55]wFMCommunicate OK [11:36:55]SAM_PROTO_SignData done [11:36:55]FM_MakeSignedData done [11:36:55]CreateOFDProtocolMessage [11:36:55]wFMCommunicate request_size=4 [11:36:55]MH_SAM_APDU [11:36:55]CAPDU: 80 11 00 00 [11:36:55]Write to MH i2c: E2 08 00 45 03 80 11 00 00 00 00 00 00 C2 [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:55]Read from MH i2c: E2 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 17 00 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: E2 17 00 45 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 17 [11:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:36:55]wFMCommunicate OK [11:36:55]CreateOFDProtocolMessage done [11:36:55]OFDSenderStorePacket 70588 [11:36:55]StoreOFDPacket docnum=70588 [11:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 CE 6D 07 01 DA B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C8 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D6 F3 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BC 13 01 00 35 04 06 00 4C 55 E6 B1 A9 BA D5 D8 E0 D0 E3 ED 8C C3 [11:36:55]CheckFolder [11:36:55]dirname=/storage/ofd_packets [11:36:55]CheckFolder done [11:36:55]ProducePacketName [11:36:55]name=ofd_packets/00070588 [11:36:55]NVStorageSaveData ofd_packets/00070588 [11:36:55]File name is /storage/ofd_packets/00070588 [11:36:55]Write 301 bytes [11:36:55]NVStorageSaveData done [11:36:55]OFDSenderStorePacket done [11:36:55]KKMCreateOFDPacket done [11:36:55]NVStorageSaveData kkm_last_timestamp [11:36:55]File name is /storage/kkm_last_timestamp [11:36:55]Write 4 bytes [11:36:55]NVStorageSaveData done [11:36:55]OFD Sender: Processing packet 70588 [packets to send 67, broken 66] [11:36:55]ProducePacketName [11:36:55]name=ofd_packets/00070588 [11:36:55]OFD Sender: To server: ‡•öpG, [11:36:55]CommunicateWithHost lk.salyk.kg:30040 [11:36:55]ConnectInit lk.salyk.kg [11:36:55]ExternCall_PrintAddStr [11:36:55]wPrintStart [11:36:55]Write to MH i2c: 01 00 00 46 03 49 [11:36:55]Write i2c OK [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: 01 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: 01 07 00 [11:36:55]MH_I2C_Read... [11:36:55]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 FF 0F 5E [11:36:55]RasterBufferAndPrint [11:36:55]line Счет N : (1)141030 [11:36:55]line ИÐÐ: 02508201610067 [11:36:55]line Контрольно-КаÑÑовый Чек [11:36:55]line ПРОДÐЖР[11:36:55]line ТРК (МРК, ГÐК) : 31 [11:36:55]line Товар: 2710124130 [11:36:55]line Ðи-92-К-5 [11:36:55]line 7.450 * 65.90 [11:36:55]line = 490.96 [11:36:55]line ÐДС 12% ÐСП 1% [11:36:55]line > о реализуемом товаре [11:36:55]line ИТОГО: 490.96 [11:36:55]line ÐСП 1% : 4.34 [11:36:55]line ÐДС 12% : 52.14 [11:36:55]line Ðаличными: 0.00 [11:36:55]line Безнал.: 490.96 [11:36:55]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:36:55]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:36:55]line СÐО: Общий режим [11:36:55]line Чек 20 12.08.2024 11:36 [11:36:55]line Смена: 465 ФФД: 1.0 [11:36:55]line ЗÐМ: 0300000140 [11:36:55]line РÐМ: 0000000000090913 [11:36:55]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:36:55]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [11:36:55]line ФМ: 0000000000874915 [11:36:55]line ФД: 70588 [11:36:55]line ФПД: 83931826334138 [11:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T113654&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70588&fm=83931826334138&tin=02508201610067®Number=0000000000090913&sum=49096 [11:36:56]Connected sock=11 [11:36: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 39 31 35 0F 01 00 00 CE 6D 07 01 DA B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C8 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D6 F3 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BC 13 01 00 35 04 06 00 4C 55 E6 B1 A9 BA D5 D8 E0 D0 E3 ED 8C C3 [11:36:56]written 0, free lines is 4095 [11:36:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 C6 B1 47 00 E2 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 39 31 35 10 04 04 00 BC 13 01 00 F4 03 04 00 C3 9A B9 66 B6 04 01 00 00 F7 C0 6D 57 D3 4B B6 AD [11:36:56]CommunicateWithHost err = 0 [11:36:56]CheckOFDResponse [11:36:56]1017 (14) - 77093643461234 [11:36:56]1041 (16) - 0000000000874915 [11:36:56]1040 (4) - 70588 [11:36:56]1012 (4) - 12.08.2024 05:16 [11:36:56]1206 (1) - 0 [11:36:56]OFD Sender: Remove packet 70588 [11:36:56]ProducePacketName [11:36:56]name=ofd_packets/00070588 [11:36:56]NVStorageDeleteData [11:36:56]Write to MH i2c: 01 00 00 70 03 73 [11:36:56]Write i2c OK [11:36:56]MH_I2C_Read... [11:36:56]Read from MH i2c: 01 [11:36:56]MH_I2C_Read... [11:36:56]Read from MH i2c: 01 07 00 [11:36:56]MH_I2C_Read... [11:36:56]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 01 0D 88 [11:36:56]RasterBufferAndPrint [11:36:56]line [11:36:56]line [11:36:56]line [11:36:56]line [11:36:56]line [11:36:56]written 0, free lines is 3338 [11:36:56]MH_Cut [11:36:56]Write to MH i2c: D1 01 00 77 03 01 4C [11:36:56]Write i2c OK [11:36:56]MH_I2C_Read... [11:36:56]Read from MH i2c: D1 [11:36:56]MH_I2C_Read... [11:36:56]Read from MH i2c: D1 01 00 [11:36:56]MH_I2C_Read... [11:36:56]Read from MH i2c: D1 01 00 77 03 00 4B [11:36:56]Write to MH i2c: 01 00 00 78 03 7B [11:36:56]Write i2c OK [11:36:56]MH_I2C_Read... [11:36:56]OFD Sender: No OFD packet to send [11:36:57]*** Cut start [11:36:57]*** Purtial cut [11:36:57]*** CUTSNS_PIN = 0 [11:36:57]*** Stage 1: CUTSNS_PIN = 1 [11:36:59]Read from MH i2c: 01 [11:36:59]MH_I2C_Read... [11:36:59]*** Stop cut motor [11:36:59]*** Cut end [11:36:59]Read from MH i2c: 01 07 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [11:36:59]process_action close_receipt done [11:36:59]requested_data is exist [11:36:59]produce_requested_data [11:36:59]requested_item fm.sn is exist - process it [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 11 00 00 [11:36:59]Write to MH i2c: E2 08 00 79 03 80 11 00 00 00 00 00 00 F6 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 17 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 17 00 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4B [11:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:36:59]wFMCommunicate OK [11:36:59]requested_item fd.num is exist - process it [11:36:59]SAM_PROTO_GetFieldsCounters [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 13 00 00 [11:36:59]Write to MH i2c: E2 08 00 7A 03 80 13 00 00 00 00 00 00 F9 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 62 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 62 00 7A 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BC 13 01 00 0E 04 04 00 D1 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 F7 [11:36: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BC 13 01 00 0E 04 04 00 D1 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 [11:36:59]wFMCommunicate OK [11:36:59]SAM_PROTO_GetFieldsCounters done [11:36:59]requested_item shift.num is exist - process it [11:36:59]requested_item shift.opened is exist - process it [11:36:59]req_shift_opened [11:36:59]FM_GetShiftState [11:36:59]SAM_PROTO_GetShiftState [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 13 01 00 [11:36:59]Write to MH i2c: E2 08 00 7B 03 80 13 01 00 00 00 00 00 FB [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 0E 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 0E 00 7B 03 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 E8 [11:36:59]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:36:59]wFMCommunicate OK [11:36:59]SAM_PROTO_GetShiftState done [11:36:59]FM_GetShiftState done [11:36:59]req_shift_opened done [11:36:59]requested_item shift.open_date is exist - process it [11:36:59]req_shift_open_date [11:36:59]req_shift_open_date done [11:36:59]produce_requested_data done [11:36:59]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70588,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:36:59]process_action_free close_receipt [11:36:59]json_value_free [11:36:59]json_value_free done [11:36:59]process_json_proto returns [11:36:59]Send response to host [11:36:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70588,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:36:59]free response buf [11:36:59]execute_script done [11:36:59]execute_script returns [11:36:59]free content buf [11:36:59]Sock 7.Close socket [11:36:59]Sock 7.Thread stoped [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:36]accept exits with 9 [11:37:36]New connection [11:37:36]New thread 3066842468 created [11:37:36]Thread 3066699108 joined [11:37:36]Waiting for new connection... [11:37:36] Sock 9.Parse request [11:37:36]Sock 9.Check first char [11:37:36]Sock 9.First char is OK [11:37:36]request: POST /json_proto HTTP/1.0 [11:37:36]Method: POST [11:37:36]URL: /json_proto [11:37:36]Method is POST - this is cgi request [11:37:36]url: /json_proto [11:37:36]query_string will be loaded in cgi processing [11:37:36]execute_cgi json_proto POST (null) [11:37:36]execute_cgi path=json_proto method=POST [11:37:36]POST find Content-Length [11:37:36]Host: 172.17.58.67:8080 [11:37:36]Content-Length: 805 [11:37:36]Content-Type: application/json [11:37:36] [11:37:36]POST finish read [11:37:36]Found Content-Length = 805 [11:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:36]execute_script... [11:37: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)141031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.070, "sum" : 400.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:36]POST & json_proto [11:37:36]process_json_proto [11:37:36]json parsed OK: [11:37:36]protocol is kg_v1.0 [11:37:36]action value=close_receipt [11:37:36]process_action close_receipt [11:37:36]cmd_close_receipt [11:37:36]MH_GetDate [11:37:36]Write to MH i2c: F0 00 00 7C 03 6E [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: F0 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: F0 09 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: F0 09 00 7C 03 00 01 F4 B9 66 94 51 63 64 37 [11:37:36]GetLastDocTimeStamp 1723462614 [11:37:36]current date 1723462657 [11:37:36]FM_GetShiftState [11:37:36]SAM_PROTO_GetShiftState [11:37:36]wFMCommunicate request_size=4 [11:37:36]MH_SAM_APDU [11:37:36]CAPDU: 80 13 01 00 [11:37:36]Write to MH i2c: E2 08 00 7D 03 80 13 01 00 00 00 00 00 FD [11:37:36]Write i2c OK [11:37:36]MH_I2C_Read... [11:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:36]Read from MH i2c: E2 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0E 00 [11:37:36]MH_I2C_Read... [11:37:36]Read from MH i2c: E2 0E 00 7D 03 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 EA [11:37:36]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:37:36]wFMCommunicate OK [11:37:36]SAM_PROTO_GetShiftState done [11:37:36]FM_GetShiftState done [11:37:36]opened in 1723423336 [11:37:36]opened+sec_in_day 1723509736 [11:37:36]quantity*price = 40001 [11:37:36]sum+1 = 40002 [11:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.01 ÐСП 1% : 3.54 ÐДС 12% : 42.48 Ðаличными: 0.00 Безнал.: 400.01 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 21 12.08.2024 11:37 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70589 ФПД: 275856334776199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T113737&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70589&fm=275856334776199&tin=02508201610067®Number=0000000000090913&sum=40001 [11:37:38]StoreToDocumentArchive [11:37:38]shift 465 fd 70589 [11:37:38]save to /storage/0465/doc_00070589 [11:37:38]save last doc name /storage/0465/doc_00070589 to /storage/kkm_last_doc_name [11:37:38]save OK [11:37:38]Clear old archive folders... [11:37:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:38]tlvbuf is 01095E30 [11:37:38]SAM_PROTO_ClearQueue [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 09 00 00 [11:37:38]Write to MH i2c: E2 08 00 8A 03 80 09 00 00 00 00 00 00 FF [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [11:37:38]RAPDU: 90 00 [11:37:38]wFMCommunicate OK [11:37:38]SAM_PROTO_ClearQueue done [11:37:38]KKMCreateOFDPacket [11:37:38]OFDProtocolAddRootSTLVToBuf [11:37:38]FM_MakeSignedData [11:37:38]FM_MakeSignedData [11:37:38]SAM_PROTO_SignData [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 0D 01 02 [11:37:38]Write to MH i2c: E2 08 00 8B 03 80 0D 01 02 00 00 00 00 07 [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [11:37:38]RAPDU: 90 00 [11:37:38]wFMCommunicate OK [11:37:38]wFMCommunicate request_size=255 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 01 F4 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BD 13 01 00 35 04 06 00 FA [11:37:38]Write to MH i2c: E2 02 01 8C 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 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 01 F4 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BD 13 01 00 35 04 06 00 FA 00 00 1C [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [11:37:38]RAPDU: 90 00 [11:37:38]wFMCommunicate OK [11:37:38]wFMCommunicate request_size=10 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 0D 02 02 05 E3 CE D7 E7 87 [11:37:38]Write to MH i2c: E2 0D 00 8D 03 80 0D 02 02 05 00 E3 CE D7 E7 87 00 00 0A [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [11:37:38]RAPDU: 90 00 [11:37:38]wFMCommunicate OK [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 0D 03 02 [11:37:38]Write to MH i2c: E2 08 00 8E 03 80 0D 03 02 00 00 00 00 0C [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 0B 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 0B 00 8E 03 00 35 E7 AC 84 F0 76 D6 40 90 00 D5 [11:37:38]RAPDU: 35 E7 AC 84 F0 76 D6 40 90 00 [11:37:38]wFMCommunicate OK [11:37:38]SAM_PROTO_SignData done [11:37:38]FM_MakeSignedData done [11:37:38]CreateOFDProtocolMessage [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 11 00 00 [11:37:38]Write to MH i2c: E2 08 00 8F 03 80 11 00 00 00 00 00 00 0C [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 17 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 17 00 8F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 61 [11:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:37:38]wFMCommunicate OK [11:37:38]CreateOFDProtocolMessage done [11:37:38]OFDSenderStorePacket 70589 [11:37:38]StoreOFDPacket docnum=70589 [11:37:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 40 E6 07 01 54 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 01 F4 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BD 13 01 00 35 04 06 00 FA E3 CE D7 E7 87 35 E7 AC 84 F0 76 D6 40 [11:37:38]CheckFolder [11:37:38]dirname=/storage/ofd_packets [11:37:38]CheckFolder done [11:37:38]ProducePacketName [11:37:38]name=ofd_packets/00070589 [11:37:38]NVStorageSaveData ofd_packets/00070589 [11:37:38]File name is /storage/ofd_packets/00070589 [11:37:38]Write 301 bytes [11:37:38]NVStorageSaveData done [11:37:38]OFDSenderStorePacket done [11:37:38]KKMCreateOFDPacket done [11:37:38]NVStorageSaveData kkm_last_timestamp [11:37:38]File name is /storage/kkm_last_timestamp [11:37:38]Write 4 bytes [11:37:38]NVStorageSaveData done [11:37:38]ExternCall_PrintAddStr [11:37:38]wPrintStart [11:37:38]Write to MH i2c: 01 00 00 90 03 93 [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: 01 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: 01 07 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [11:37:38]RasterBufferAndPrint [11:37:38]line Счет N : (1)141031 [11:37:38]line ИÐÐ: 02508201610067 [11:37:38]line Контрольно-КаÑÑовый Чек [11:37:38]line ПРОДÐЖР[11:37:38]line ТРК (МРК, ГÐК) : 31 [11:37:38]line Товар: 2710124130 [11:37:38]line Ðи-92-К-5 [11:37:38]line 6.070 * 65.90 [11:37:38]line = 400.01 [11:37:38]line ÐДС 12% ÐСП 1% [11:37:38]line > о реализуемом товаре [11:37:38]line ИТОГО: 400.01 [11:37:38]line ÐСП 1% : 3.54 [11:37:38]line ÐДС 12% : 42.48 [11:37:38]line Ðаличными: 0.00 [11:37:38]line Безнал.: 400.01 [11:37:38]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:37:38]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:37:38]line СÐО: Общий режим [11:37:38]line Чек 21 12.08.2024 11:37 [11:37:38]line Смена: 465 ФФД: 1.0 [11:37:38]line ЗÐМ: 0300000140 [11:37:38]line РÐМ: 0000000000090913 [11:37:38]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:37:38]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [11:37:38]line ФМ: 0000000000874915 [11:37:38]line ФД: 70589 [11:37:38]line ФПД: 275856334776199 [11:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T113737&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70589&fm=275856334776199&tin=02508201610067®Number=0000000000090913&sum=40001 [11:37:38]written 0, free lines is 4095 [11:37:38]OFD Sender: Processing packet 70589 [packets to send 67, broken 66] [11:37:38]ProducePacketName [11:37:38]name=ofd_packets/00070589 [11:37:38]OFD Sender: To server: ‡•öpG, [11:37:38]CommunicateWithHost lk.salyk.kg:30040 [11:37:38]ConnectInit lk.salyk.kg [11:37:38]Connected sock=10 [11:37: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 39 31 35 0F 01 00 00 40 E6 07 01 54 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 41 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 01 F4 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BD 13 01 00 35 04 06 00 FA E3 CE D7 E7 87 35 E7 AC 84 F0 76 D6 40 [11:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 BC 91 47 00 7F 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 39 31 35 10 04 04 00 BD 13 01 00 F4 03 04 00 EE 9A B9 66 B6 04 01 00 00 9A 61 EA BA EC 6D 39 FB [11:37:38]CommunicateWithHost err = 0 [11:37:38]CheckOFDResponse [11:37:38]1017 (14) - 77093643461234 [11:37:38]1041 (16) - 0000000000874915 [11:37:38]1040 (4) - 70589 [11:37:38]1012 (4) - 12.08.2024 05:17 [11:37:38]1206 (1) - 0 [11:37:38]OFD Sender: Remove packet 70589 [11:37:38]ProducePacketName [11:37:38]name=ofd_packets/00070589 [11:37:38]NVStorageDeleteData [11:37:39]Write to MH i2c: 01 00 00 BA 03 BD [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 BA 03 00 00 00 00 00 F9 0C C9 [11:37:39]RasterBufferAndPrint [11:37:39]line [11:37:39]line [11:37:39]line [11:37:39]line [11:37:39]line [11:37:39]written 0, free lines is 3327 [11:37:39]MH_Cut [11:37:39]Write to MH i2c: D1 01 00 C1 03 01 96 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: D1 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: D1 01 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: D1 01 00 C1 03 00 95 [11:37:39]Write to MH i2c: 01 00 00 C2 03 C5 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]OFD Sender: No OFD packet to send [11:37:39]*** Cut start [11:37:39]*** Purtial cut [11:37:39]*** Stage 1: CUTSNS_PIN = 1 [11:37:40]Read from MH i2c: 01 [11:37:40]MH_I2C_Read... [11:37:40]*** Stop cut motor [11:37:40]*** Cut end [11:37:40]Read from MH i2c: 01 07 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: 01 07 00 C2 03 00 00 00 00 00 FF 0F DA [11:37:40]process_action close_receipt done [11:37:40]requested_data is exist [11:37:40]produce_requested_data [11:37:40]requested_item fm.sn is exist - process it [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 11 00 00 [11:37:40]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 17 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 95 [11:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:37:40]wFMCommunicate OK [11:37:40]requested_item fd.num is exist - process it [11:37:40]SAM_PROTO_GetFieldsCounters [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 13 00 00 [11:37:40]Write to MH i2c: E2 08 00 C4 03 80 13 00 00 00 00 00 00 43 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 62 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 62 00 C4 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BD 13 01 00 0E 04 04 00 D1 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 45 [11:37: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BD 13 01 00 0E 04 04 00 D1 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 [11:37:40]wFMCommunicate OK [11:37:40]SAM_PROTO_GetFieldsCounters done [11:37:40]requested_item shift.num is exist - process it [11:37:40]requested_item shift.opened is exist - process it [11:37:40]req_shift_opened [11:37:40]FM_GetShiftState [11:37:40]SAM_PROTO_GetShiftState [11:37:40]wFMCommunicate request_size=4 [11:37:40]MH_SAM_APDU [11:37:40]CAPDU: 80 13 01 00 [11:37:40]Write to MH i2c: E2 08 00 C5 03 80 13 01 00 00 00 00 00 45 [11:37:40]Write i2c OK [11:37:40]MH_I2C_Read... [11:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:40]Read from MH i2c: E2 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0E 00 [11:37:40]MH_I2C_Read... [11:37:40]Read from MH i2c: E2 0E 00 C5 03 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 32 [11:37:40]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:37:40]wFMCommunicate OK [11:37:40]SAM_PROTO_GetShiftState done [11:37:40]FM_GetShiftState done [11:37:40]req_shift_opened done [11:37:40]requested_item shift.open_date is exist - process it [11:37:40]req_shift_open_date [11:37:40]req_shift_open_date done [11:37:40]produce_requested_data done [11:37:40]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70589,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:37:40]process_action_free close_receipt [11:37:40]json_value_free [11:37:40]json_value_free done [11:37:40]process_json_proto returns [11:37:40]Send response to host [11:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70589,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:37:40]free response buf [11:37:40]execute_script done [11:37:40]execute_script returns [11:37:40]free content buf [11:37:40]Sock 9.Close socket [11:37:40]Sock 9.Thread stoped [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:32]accept exits with 7 [11:38:32]New connection [11:38:32]New thread 3066699108 created [11:38:32]Thread 3066842468 joined [11:38:32]Waiting for new connection... [11:38:32] Sock 7.Parse request [11:38:32]Sock 7.Check first char [11:38:32]Sock 7.First char is OK [11:38:32]request: POST /json_proto HTTP/1.0 [11:38:32]Method: POST [11:38:32]URL: /json_proto [11:38:32]Method is POST - this is cgi request [11:38:32]url: /json_proto [11:38:32]query_string will be loaded in cgi processing [11:38:32]execute_cgi json_proto POST (null) [11:38:32]execute_cgi path=json_proto method=POST [11:38:32]POST find Content-Length [11:38:32]Host: 172.17.58.67:8080 [11:38:32]Content-Length: 805 [11:38:32]Content-Type: application/json [11:38:32] [11:38:32]POST finish read [11:38:32]Found Content-Length = 805 [11:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:32]execute_script... [11:38: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)141032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:32]POST & json_proto [11:38:32]process_json_proto [11:38:32]json parsed OK: [11:38:32]protocol is kg_v1.0 [11:38:32]action value=close_receipt [11:38:32]process_action close_receipt [11:38:32]cmd_close_receipt [11:38:32]MH_GetDate [11:38:32]Write to MH i2c: F0 00 00 C6 03 B8 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: F0 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: F0 09 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: F0 09 00 C6 03 00 38 F4 B9 66 94 51 63 64 B8 [11:38:32]GetLastDocTimeStamp 1723462657 [11:38:32]current date 1723462712 [11:38:32]FM_GetShiftState [11:38:32]SAM_PROTO_GetShiftState [11:38:32]wFMCommunicate request_size=4 [11:38:32]MH_SAM_APDU [11:38:32]CAPDU: 80 13 01 00 [11:38:32]Write to MH i2c: E2 08 00 C7 03 80 13 01 00 00 00 00 00 47 [11:38:32]Write i2c OK [11:38:32]MH_I2C_Read... [11:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:32]Read from MH i2c: E2 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: E2 0E 00 [11:38:32]MH_I2C_Read... [11:38:32]Read from MH i2c: E2 0E 00 C7 03 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 34 [11:38:32]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:38:32]wFMCommunicate OK [11:38:32]SAM_PROTO_GetShiftState done [11:38:32]FM_GetShiftState done [11:38:32]opened in 1723423336 [11:38:32]opened+sec_in_day 1723509736 [11:38:32]quantity*price = 20033 [11:38:32]sum+1 = 20035 [11:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.34 ÐСП 1% : 1.77 ÐДС 12% : 21.27 Ðаличными: 0.00 Безнал.: 200.34 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 22 12.08.2024 11:38 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70590 ФПД: 129678254652045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T113832&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70590&fm=129678254652045&tin=02508201610067®Number=0000000000090913&sum=20034 [11:38:33]StoreToDocumentArchive [11:38:33]shift 465 fd 70590 [11:38:33]save to /storage/0465/doc_00070590 [11:38:33]save last doc name /storage/0465/doc_00070590 to /storage/kkm_last_doc_name [11:38:33]save OK [11:38:33]Clear old archive folders... [11:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:33]tlvbuf is 010BC530 [11:38:33]SAM_PROTO_ClearQueue [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 09 00 00 [11:38:33]Write to MH i2c: E2 08 00 D4 03 80 09 00 00 00 00 00 00 49 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [11:38:33]RAPDU: 90 00 [11:38:33]wFMCommunicate OK [11:38:33]SAM_PROTO_ClearQueue done [11:38:33]KKMCreateOFDPacket [11:38:33]OFDProtocolAddRootSTLVToBuf [11:38:33]FM_MakeSignedData [11:38:33]FM_MakeSignedData [11:38:33]SAM_PROTO_SignData [11:38:33]wFMCommunicate request_size=4 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 0D 01 02 [11:38:33]Write to MH i2c: E2 08 00 D5 03 80 0D 01 02 00 00 00 00 51 [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:33]Read from MH i2c: E2 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 [11:38:33]MH_I2C_Read... [11:38:33]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [11:38:33]RAPDU: 90 00 [11:38:33]wFMCommunicate OK [11:38:33]wFMCommunicate request_size=255 [11:38:33]MH_SAM_APDU [11:38:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 38 F4 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BE 13 01 00 35 04 06 00 75 [11:38:33]Write to MH i2c: E2 02 01 D6 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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 38 F4 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BE 13 01 00 35 04 06 00 75 00 00 4E [11:38:33]Write i2c OK [11:38:33]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 [11:38:34]MH_I2C_Read... [11:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:34]Read from MH i2c: E2 03 00 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [11:38:34]RAPDU: 90 00 [11:38:34]wFMCommunicate OK [11:38:34]wFMCommunicate request_size=10 [11:38:34]MH_SAM_APDU [11:38:34]CAPDU: 80 0D 02 02 05 F1 12 4D BA 8D [11:38:34]Write to MH i2c: E2 0D 00 D7 03 80 0D 02 02 05 00 F1 12 4D BA 8D 00 00 F5 [11:38:34]Write i2c OK [11:38:34]MH_I2C_Read... [11:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:34]Read from MH i2c: E2 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 03 00 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [11:38:34]RAPDU: 90 00 [11:38:34]wFMCommunicate OK [11:38:34]wFMCommunicate request_size=4 [11:38:34]MH_SAM_APDU [11:38:34]CAPDU: 80 0D 03 02 [11:38:34]Write to MH i2c: E2 08 00 D8 03 80 0D 03 02 00 00 00 00 56 [11:38:34]Write i2c OK [11:38:34]MH_I2C_Read... [11:38:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:34]Read from MH i2c: E2 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 0B 00 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 0B 00 D8 03 00 AC 51 C7 3D 70 7F 30 74 90 00 EB [11:38:34]RAPDU: AC 51 C7 3D 70 7F 30 74 90 00 [11:38:34]wFMCommunicate OK [11:38:34]SAM_PROTO_SignData done [11:38:34]FM_MakeSignedData done [11:38:34]CreateOFDProtocolMessage [11:38:34]wFMCommunicate request_size=4 [11:38:34]MH_SAM_APDU [11:38:34]CAPDU: 80 11 00 00 [11:38:34]Write to MH i2c: E2 08 00 D9 03 80 11 00 00 00 00 00 00 56 [11:38:34]Write i2c OK [11:38:34]MH_I2C_Read... [11:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:34]Read from MH i2c: E2 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 17 00 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: E2 17 00 D9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 AB [11:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:38:34]wFMCommunicate OK [11:38:34]CreateOFDProtocolMessage done [11:38:34]OFDSenderStorePacket 70590 [11:38:34]StoreOFDPacket docnum=70590 [11:38:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 D9 15 07 01 4D 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 38 F4 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BE 13 01 00 35 04 06 00 75 F1 12 4D BA 8D AC 51 C7 3D 70 7F 30 74 [11:38:34]CheckFolder [11:38:34]dirname=/storage/ofd_packets [11:38:34]CheckFolder done [11:38:34]ProducePacketName [11:38:34]name=ofd_packets/00070590 [11:38:34]NVStorageSaveData ofd_packets/00070590 [11:38:34]File name is /storage/ofd_packets/00070590 [11:38:34]Write 301 bytes [11:38:34]NVStorageSaveData done [11:38:34]OFDSenderStorePacket done [11:38:34]KKMCreateOFDPacket done [11:38:34]NVStorageSaveData kkm_last_timestamp [11:38:34]File name is /storage/kkm_last_timestamp [11:38:34]Write 4 bytes [11:38:34]NVStorageSaveData done [11:38:34]ExternCall_PrintAddStr [11:38:34]wPrintStart [11:38:34]Write to MH i2c: 01 00 00 DA 03 DD [11:38:34]Write i2c OK [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: 01 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: 01 07 00 [11:38:34]MH_I2C_Read... [11:38:34]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [11:38:34]RasterBufferAndPrint [11:38:34]line Счет N : (1)141032 [11:38:34]line ИÐÐ: 02508201610067 [11:38:34]line Контрольно-КаÑÑовый Чек [11:38:34]line ПРОДÐЖР[11:38:34]line ТРК (МРК, ГÐК) : 41 [11:38:34]line Товар: 2710124130 [11:38:34]line Ðи-92-К-5 [11:38:34]line 3.040 * 65.90 [11:38:34]line = 200.34 [11:38:34]line ÐДС 12% ÐСП 1% [11:38:34]line > о реализуемом товаре [11:38:34]line ИТОГО: 200.34 [11:38:34]line ÐСП 1% : 1.77 [11:38:34]line ÐДС 12% : 21.27 [11:38:34]line Ðаличными: 0.00 [11:38:34]line Безнал.: 200.34 [11:38:34]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [11:38:34]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [11:38:34]line СÐО: Общий режим [11:38:34]line Чек 22 12.08.2024 11:38 [11:38:34]line Смена: 465 ФФД: 1.0 [11:38:34]line ЗÐМ: 0300000140 [11:38:34]line РÐМ: 0000000000090913 [11:38:34]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:38:34]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [11:38:34]line ФМ: 0000000000874915 [11:38:34]line ФД: 70590 [11:38:34]line ФПД: 129678254652045 [11:38:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T113832&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70590&fm=129678254652045&tin=02508201610067®Number=0000000000090913&sum=20034 [11:38:34]OFD Sender: Processing packet 70590 [packets to send 67, broken 66] [11:38:34]ProducePacketName [11:38:34]name=ofd_packets/00070590 [11:38:34]OFD Sender: To server: ‡•öpG, [11:38:34]CommunicateWithHost lk.salyk.kg:30040 [11:38:34]ConnectInit lk.salyk.kg [11:38:34]written 0, free lines is 4095 [11:38:34]Connected sock=10 [11:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 D9 15 07 01 4D 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 38 F4 B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BE 13 01 00 35 04 06 00 75 F1 12 4D BA 8D AC 51 C7 3D 70 7F 30 74 [11:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 B5 64 47 00 84 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 39 31 35 10 04 04 00 BE 13 01 00 F4 03 04 00 26 9B B9 66 B6 04 01 00 00 BF 69 33 DF 88 E9 73 12 [11:38:34]CommunicateWithHost err = 0 [11:38:34]CheckOFDResponse [11:38:34]1017 (14) - 77093643461234 [11:38:34]1041 (16) - 0000000000874915 [11:38:34]1040 (4) - 70590 [11:38:34]1012 (4) - 12.08.2024 05:18 [11:38:34]1206 (1) - 0 [11:38:34]OFD Sender: Remove packet 70590 [11:38:34]ProducePacketName [11:38:34]name=ofd_packets/00070590 [11:38:34]NVStorageDeleteData [11:38:35]Write to MH i2c: 01 00 00 04 04 08 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: 01 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: 01 07 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: 01 07 00 04 04 00 00 00 00 00 F7 0C 12 [11:38:35]RasterBufferAndPrint [11:38:35]line [11:38:35]line [11:38:35]line [11:38:35]line [11:38:35]line [11:38:35]written 0, free lines is 3326 [11:38:35]MH_Cut [11:38:35]Write to MH i2c: D1 01 00 0B 04 01 E1 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: D1 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: D1 01 00 [11:38:35]MH_I2C_Read... [11:38:35]Read from MH i2c: D1 01 00 0B 04 00 E0 [11:38:35]Write to MH i2c: 01 00 00 0C 04 10 [11:38:35]Write i2c OK [11:38:35]MH_I2C_Read... [11:38:35]OFD Sender: No OFD packet to send [11:38:35]*** Cut start [11:38:35]*** Purtial cut [11:38:35]*** CUTSNS_PIN = 0 [11:38:35]*** Stage 1: CUTSNS_PIN = 1 [11:38:37]Read from MH i2c: 01 [11:38:37]MH_I2C_Read... [11:38:37]*** Stop cut motor [11:38:37]*** Cut end [11:38:37]Read from MH i2c: 01 07 00 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 FF 0F 25 [11:38:37]process_action close_receipt done [11:38:37]requested_data is exist [11:38:37]produce_requested_data [11:38:37]requested_item fm.sn is exist - process it [11:38:37]wFMCommunicate request_size=4 [11:38:37]MH_SAM_APDU [11:38:37]CAPDU: 80 11 00 00 [11:38:37]Write to MH i2c: E2 08 00 0D 04 80 11 00 00 00 00 00 00 8B [11:38:37]Write i2c OK [11:38:37]MH_I2C_Read... [11:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:37]Read from MH i2c: E2 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 17 00 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 17 00 0D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E0 [11:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [11:38:37]wFMCommunicate OK [11:38:37]requested_item fd.num is exist - process it [11:38:37]SAM_PROTO_GetFieldsCounters [11:38:37]wFMCommunicate request_size=4 [11:38:37]MH_SAM_APDU [11:38:37]CAPDU: 80 13 00 00 [11:38:37]Write to MH i2c: E2 08 00 0E 04 80 13 00 00 00 00 00 00 8E [11:38:37]Write i2c OK [11:38:37]MH_I2C_Read... [11:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:37]Read from MH i2c: E2 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 62 00 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 62 00 0E 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BE 13 01 00 0E 04 04 00 D1 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 94 [11:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BE 13 01 00 0E 04 04 00 D1 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 [11:38:37]wFMCommunicate OK [11:38:37]SAM_PROTO_GetFieldsCounters done [11:38:37]requested_item shift.num is exist - process it [11:38:37]requested_item shift.opened is exist - process it [11:38:37]req_shift_opened [11:38:37]FM_GetShiftState [11:38:37]SAM_PROTO_GetShiftState [11:38:37]wFMCommunicate request_size=4 [11:38:37]MH_SAM_APDU [11:38:37]CAPDU: 80 13 01 00 [11:38:37]Write to MH i2c: E2 08 00 0F 04 80 13 01 00 00 00 00 00 90 [11:38:37]Write i2c OK [11:38:37]MH_I2C_Read... [11:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:37]Read from MH i2c: E2 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 0E 00 [11:38:37]MH_I2C_Read... [11:38:37]Read from MH i2c: E2 0E 00 0F 04 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 7D [11:38:37]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [11:38:37]wFMCommunicate OK [11:38:37]SAM_PROTO_GetShiftState done [11:38:37]FM_GetShiftState done [11:38:37]req_shift_opened done [11:38:37]requested_item shift.open_date is exist - process it [11:38:37]req_shift_open_date [11:38:37]req_shift_open_date done [11:38:37]produce_requested_data done [11:38:37]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70590,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [11:38:37]process_action_free close_receipt [11:38:37]json_value_free [11:38:37]json_value_free done [11:38:37]process_json_proto returns [11:38:37]Send response to host [11:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70590,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [11:38:37]free response buf [11:38:37]execute_script done [11:38:37]execute_script returns [11:38:37]free content buf [11:38:37]Sock 7.Close socket [11:38:37]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:34]accept exits with 9 [12:06:34]New connection [12:06:34]New thread 3066842468 created [12:06:34]Thread 3066699108 joined [12:06:34]Waiting for new connection... [12:06:34] Sock 9.Parse request [12:06:34]Sock 9.Check first char [12:06:34]Sock 9.First char is OK [12:06:34]request: POST /json_proto HTTP/1.0 [12:06:34]Method: POST [12:06:34]URL: /json_proto [12:06:34]Method is POST - this is cgi request [12:06:34]url: /json_proto [12:06:34]query_string will be loaded in cgi processing [12:06:34]execute_cgi json_proto POST (null) [12:06:34]execute_cgi path=json_proto method=POST [12:06:34]POST find Content-Length [12:06:34]Host: 172.17.58.67:8080 [12:06:34]Content-Length: 808 [12:06:34]Content-Type: application/json [12:06:34] [12:06:34]POST finish read [12:06:34]Found Content-Length = 808 [12:06:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 408.000, "sum" : 30355.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 30355.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:34]execute_script... [12:06: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)141033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 408.000, "sum" : 30355.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 30355.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:34]POST & json_proto [12:06:34]process_json_proto [12:06:34]json parsed OK: [12:06:34]protocol is kg_v1.0 [12:06:34]action value=close_receipt [12:06:34]process_action close_receipt [12:06:34]cmd_close_receipt [12:06:34]MH_GetDate [12:06:34]Write to MH i2c: F0 00 00 10 04 03 [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: F0 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: F0 09 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: F0 09 00 10 04 00 CA FA B9 66 94 51 63 64 9B [12:06:34]GetLastDocTimeStamp 1723462712 [12:06:34]current date 1723464394 [12:06:34]FM_GetShiftState [12:06:34]SAM_PROTO_GetShiftState [12:06:34]wFMCommunicate request_size=4 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 13 01 00 [12:06:34]Write to MH i2c: E2 08 00 11 04 80 13 01 00 00 00 00 00 92 [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 0E 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 0E 00 11 04 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 7F [12:06:34]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:06:34]wFMCommunicate OK [12:06:34]SAM_PROTO_GetShiftState done [12:06:34]FM_GetShiftState done [12:06:34]opened in 1723423336 [12:06:34]opened+sec_in_day 1723509736 [12:06:34]quantity*price = 3035520 [12:06:34]sum+1 = 3035521 [12:06:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30355.20 ÐСП 1% : 268.63 ÐДС 12% : 3223.56 Ðаличными: 0.00 Безнал.: 30355.20 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 23 12.08.2024 12:06 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70591 ФПД: 79329577138593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T120634&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70591&fm=79329577138593&tin=02508201610067®Number=0000000000090913&sum=3035520 [12:06:35]StoreToDocumentArchive [12:06:35]shift 465 fd 70591 [12:06:35]save to /storage/0465/doc_00070591 [12:06:35]save last doc name /storage/0465/doc_00070591 to /storage/kkm_last_doc_name [12:06:35]save OK [12:06:35]Clear old archive folders... [12:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:06:35]tlvbuf is 010BF9B0 [12:06:35]SAM_PROTO_ClearQueue [12:06:35]wFMCommunicate request_size=4 [12:06:35]MH_SAM_APDU [12:06:35]CAPDU: 80 09 00 00 [12:06:35]Write to MH i2c: E2 08 00 1E 04 80 09 00 00 00 00 00 00 94 [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:35]Read from MH i2c: E2 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 03 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [12:06:35]RAPDU: 90 00 [12:06:35]wFMCommunicate OK [12:06:35]SAM_PROTO_ClearQueue done [12:06:35]KKMCreateOFDPacket [12:06:35]OFDProtocolAddRootSTLVToBuf [12:06:35]FM_MakeSignedData [12:06:35]FM_MakeSignedData [12:06:35]SAM_PROTO_SignData [12:06:35]wFMCommunicate request_size=4 [12:06:35]MH_SAM_APDU [12:06:35]CAPDU: 80 0D 01 02 [12:06:35]Write to MH i2c: E2 08 00 1F 04 80 0D 01 02 00 00 00 00 9C [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:35]Read from MH i2c: E2 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 03 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [12:06:35]RAPDU: 90 00 [12:06:35]wFMCommunicate OK [12:06:35]wFMCommunicate request_size=255 [12:06:35]MH_SAM_APDU [12:06: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 C0 39 06 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 80 51 2E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 51 2E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 68 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 EB 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 51 2E 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CA FA B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BF 13 01 00 35 04 06 00 48 26 5B 43 [12:06:35]Write to MH i2c: E2 02 01 20 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 C0 39 06 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 80 51 2E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 51 2E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 68 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 EB 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 51 2E 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CA FA B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BF 13 01 00 35 04 06 00 48 26 5B 43 00 00 46 [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [12:06:36]RAPDU: 90 00 [12:06:36]wFMCommunicate OK [12:06:36]wFMCommunicate request_size=7 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 0D 02 02 02 F9 A1 [12:06:36]Write to MH i2c: E2 0A 00 21 04 80 0D 02 02 02 00 F9 A1 00 00 3D [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [12:06:36]RAPDU: 90 00 [12:06:36]wFMCommunicate OK [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 0D 03 02 [12:06:36]Write to MH i2c: E2 08 00 22 04 80 0D 03 02 00 00 00 00 A1 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 0B 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 0B 00 22 04 00 2E 00 1B 76 71 6D AF A6 90 00 94 [12:06:36]RAPDU: 2E 00 1B 76 71 6D AF A6 90 00 [12:06:36]wFMCommunicate OK [12:06:36]SAM_PROTO_SignData done [12:06:36]FM_MakeSignedData done [12:06:36]CreateOFDProtocolMessage [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 11 00 00 [12:06:36]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 17 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F6 [12:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:06:36]wFMCommunicate OK [12:06:36]CreateOFDProtocolMessage done [12:06:36]OFDSenderStorePacket 70591 [12:06:36]StoreOFDPacket docnum=70591 [12:06:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 E3 6D 04 01 AC 86 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 C0 39 06 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 80 51 2E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 51 2E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 68 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 EB 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 51 2E 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CA FA B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BF 13 01 00 35 04 06 00 48 26 5B 43 F9 A1 2E 00 1B 76 71 6D AF A6 [12:06:36]CheckFolder [12:06:36]dirname=/storage/ofd_packets [12:06:36]CheckFolder done [12:06:36]ProducePacketName [12:06:36]name=ofd_packets/00070591 [12:06:36]NVStorageSaveData ofd_packets/00070591 [12:06:36]File name is /storage/ofd_packets/00070591 [12:06:36]Write 298 bytes [12:06:36]NVStorageSaveData done [12:06:36]OFDSenderStorePacket done [12:06:36]KKMCreateOFDPacket done [12:06:36]NVStorageSaveData kkm_last_timestamp [12:06:36]File name is /storage/kkm_last_timestamp [12:06:36]Write 4 bytes [12:06:36]NVStorageSaveData done [12:06:36]ExternCall_PrintAddStr [12:06:36]wPrintStart [12:06:36]Write to MH i2c: 01 00 00 24 04 28 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 07 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 FF 0F 3D [12:06:36]RasterBufferAndPrint [12:06:36]line Счет N : (1)141033 [12:06:36]line ИÐÐ: 02508201610067 [12:06:36]line Контрольно-КаÑÑовый Чек [12:06:36]line ПРОДÐЖР[12:06:36]line ТРК (МРК, ГÐК) : 34 [12:06:36]line Товар: 2710194210 [12:06:36]line ДТ-К-5 [12:06:36]line 408.000 * 74.40 [12:06:36]line = 30355.20 [12:06:36]line ÐДС 12% ÐСП 1% [12:06:36]line > о реализуемом товаре [12:06:36]line ИТОГО: 30355.20 [12:06:36]line ÐСП 1% : 268.63 [12:06:36]line ÐДС 12% : 3223.56 [12:06:36]line Ðаличными: 0.00 [12:06:36]line Безнал.: 30355.20 [12:06:36]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:06:36]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:06:36]line СÐО: Общий режим [12:06:36]line Чек 23 12.08.2024 12:06 [12:06:36]line Смена: 465 ФФД: 1.0 [12:06:36]line ЗÐМ: 0300000140 [12:06:36]line РÐМ: 0000000000090913 [12:06:36]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:06:36]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [12:06:36]line ФМ: 0000000000874915 [12:06:36]line ФД: 70591 [12:06:36]line ФПД: 79329577138593 [12:06:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T120634&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70591&fm=79329577138593&tin=02508201610067®Number=0000000000090913&sum=3035520 [12:06:36]written 0, free lines is 4095 [12:06:36]OFD Sender: Processing packet 70591 [packets to send 67, broken 66] [12:06:36]ProducePacketName [12:06:36]name=ofd_packets/00070591 [12:06:36]OFD Sender: To server: ‡•öpG, [12:06:36]CommunicateWithHost lk.salyk.kg:30040 [12:06:36]ConnectInit lk.salyk.kg [12:06:36]Connected sock=10 [12:06: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 39 31 35 0C 01 00 00 E3 6D 04 01 AC 86 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 C0 39 06 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 80 51 2E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 51 2E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 68 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 EB 04 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 51 2E 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CA FA B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BF 13 01 00 35 04 06 00 48 26 5B 43 F9 A1 2E 00 1B 76 71 6D AF A6 [12: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 39 31 35 4F 00 00 00 7C 67 47 00 55 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 BF 13 01 00 F4 03 04 00 B7 A1 B9 66 B6 04 01 00 00 DC 70 8D AB AE 78 C8 B8 [12:06:36]CommunicateWithHost err = 0 [12:06:36]CheckOFDResponse [12:06:36]1017 (14) - 77093643461234 [12:06:36]1041 (16) - 0000000000874915 [12:06:36]1040 (4) - 70591 [12:06:36]1012 (4) - 12.08.2024 05:46 [12:06:36]1206 (1) - 0 [12:06:36]OFD Sender: Remove packet 70591 [12:06:36]ProducePacketName [12:06:36]name=ofd_packets/00070591 [12:06:36]NVStorageDeleteData [12:06:36]Write to MH i2c: 01 00 00 4E 04 52 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 07 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 07 00 4E 04 00 00 00 00 00 11 0D 77 [12:06:36]RasterBufferAndPrint [12:06:36]line [12:06:36]line [12:06:36]line [12:06:36]line [12:06:36]line [12:06:36]written 0, free lines is 3354 [12:06:36]MH_Cut [12:06:36]Write to MH i2c: D1 01 00 55 04 01 2B [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: D1 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: D1 01 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: D1 01 00 55 04 00 2A [12:06:36]Write to MH i2c: 01 00 00 56 04 5A [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:37]OFD Sender: No OFD packet to send [12:06:37]*** Cut start [12:06:37]*** Purtial cut [12:06:37]*** Stage 1: CUTSNS_PIN = 1 [12:06:37]Read from MH i2c: 01 [12:06:37]MH_I2C_Read... [12:06:37]*** Stop cut motor [12:06:37]*** Cut end [12:06:37]Read from MH i2c: 01 07 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 FF 0F 6F [12:06:37]process_action close_receipt done [12:06:37]requested_data is exist [12:06:37]produce_requested_data [12:06:37]requested_item fm.sn is exist - process it [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 11 00 00 [12:06:37]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 2A [12:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:06:37]wFMCommunicate OK [12:06:37]requested_item fd.num is exist - process it [12:06:37]SAM_PROTO_GetFieldsCounters [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 13 00 00 [12:06:37]Write to MH i2c: E2 08 00 58 04 80 13 00 00 00 00 00 00 D8 [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 62 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 62 00 58 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BF 13 01 00 0E 04 04 00 D1 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 E2 [12:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 BF 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:37]wFMCommunicate OK [12:06:37]SAM_PROTO_GetFieldsCounters done [12:06:37]requested_item shift.num is exist - process it [12:06:37]requested_item shift.opened is exist - process it [12:06:37]req_shift_opened [12:06:37]FM_GetShiftState [12:06:37]SAM_PROTO_GetShiftState [12:06:37]wFMCommunicate request_size=4 [12:06:37]MH_SAM_APDU [12:06:37]CAPDU: 80 13 01 00 [12:06:37]Write to MH i2c: E2 08 00 59 04 80 13 01 00 00 00 00 00 DA [12:06:37]Write i2c OK [12:06:37]MH_I2C_Read... [12:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:37]Read from MH i2c: E2 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 0E 00 [12:06:37]MH_I2C_Read... [12:06:37]Read from MH i2c: E2 0E 00 59 04 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 C7 [12:06:37]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:06:37]wFMCommunicate OK [12:06:37]SAM_PROTO_GetShiftState done [12:06:37]FM_GetShiftState done [12:06:37]req_shift_opened done [12:06:37]requested_item shift.open_date is exist - process it [12:06:37]req_shift_open_date [12:06:37]req_shift_open_date done [12:06:37]produce_requested_data done [12:06:37]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70591,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [12:06:37]process_action_free close_receipt [12:06:37]json_value_free [12:06:37]json_value_free done [12:06:37]process_json_proto returns [12:06:37]Send response to host [12:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70591,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [12:06:37]free response buf [12:06:37]execute_script done [12:06:37]execute_script returns [12:06:37]free content buf [12:06:37]Sock 9.Close socket [12:06:37]Sock 9.Thread stoped [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:16]accept exits with 7 [12:09:16]New connection [12:09:16]New thread 3066699108 created [12:09:16]Thread 3066842468 joined [12:09:16]Waiting for new connection... [12:09:16] Sock 7.Parse request [12:09:16]Sock 7.Check first char [12:09:16]Sock 7.First char is OK [12:09:16]request: POST /json_proto HTTP/1.0 [12:09:16]Method: POST [12:09:16]URL: /json_proto [12:09:16]Method is POST - this is cgi request [12:09:16]url: /json_proto [12:09:16]query_string will be loaded in cgi processing [12:09:16]execute_cgi json_proto POST (null) [12:09:16]execute_cgi path=json_proto method=POST [12:09:16]POST find Content-Length [12:09:16]Host: 172.17.58.67:8080 [12:09:16]Content-Length: 802 [12:09:16]Content-Type: application/json [12:09:16] [12:09:16]POST finish read [12:09:16]Found Content-Length = 802 [12:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 9.410, "sum" : 700.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 700.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:16]execute_script... [12:09: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)141034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 9.410, "sum" : 700.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 700.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:16]POST & json_proto [12:09:16]process_json_proto [12:09:16]json parsed OK: [12:09:16]protocol is kg_v1.0 [12:09:16]action value=close_receipt [12:09:16]process_action close_receipt [12:09:16]cmd_close_receipt [12:09:16]MH_GetDate [12:09:16]Write to MH i2c: F0 00 00 5A 04 4D [12:09:16]Write i2c OK [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: F0 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: F0 09 00 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: F0 09 00 5A 04 00 6D FB B9 66 94 51 63 64 89 [12:09:16]GetLastDocTimeStamp 1723464394 [12:09:16]current date 1723464557 [12:09:16]FM_GetShiftState [12:09:16]SAM_PROTO_GetShiftState [12:09:16]wFMCommunicate request_size=4 [12:09:16]MH_SAM_APDU [12:09:16]CAPDU: 80 13 01 00 [12:09:16]Write to MH i2c: E2 08 00 5B 04 80 13 01 00 00 00 00 00 DC [12:09:16]Write i2c OK [12:09:16]MH_I2C_Read... [12:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:16]Read from MH i2c: E2 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 0E 00 [12:09:16]MH_I2C_Read... [12:09:16]Read from MH i2c: E2 0E 00 5B 04 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 C9 [12:09:16]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:09:16]wFMCommunicate OK [12:09:16]SAM_PROTO_GetShiftState done [12:09:16]FM_GetShiftState done [12:09:16]opened in 1723423336 [12:09:16]opened+sec_in_day 1723509736 [12:09:16]quantity*price = 70010 [12:09:16]sum+1 = 70011 [12:09:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.10 ÐСП 1% : 6.20 ÐДС 12% : 74.35 Ðаличными: 0.00 Безнал.: 700.10 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 24 12.08.2024 12:09 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70592 ФПД: 139949892732858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T120917&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70592&fm=139949892732858&tin=02508201610067®Number=0000000000090913&sum=70010 [12:09:18]StoreToDocumentArchive [12:09:18]shift 465 fd 70592 [12:09:18]save to /storage/0465/doc_00070592 [12:09:18]save last doc name /storage/0465/doc_00070592 to /storage/kkm_last_doc_name [12:09:18]save OK [12:09:18]Clear old archive folders... [12:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:09:18]tlvbuf is 010EA030 [12:09:18]SAM_PROTO_ClearQueue [12:09:18]wFMCommunicate request_size=4 [12:09:18]MH_SAM_APDU [12:09:18]CAPDU: 80 09 00 00 [12:09:18]Write to MH i2c: E2 08 00 68 04 80 09 00 00 00 00 00 00 DE [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 03 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [12:09:18]RAPDU: 90 00 [12:09:18]wFMCommunicate OK [12:09:18]SAM_PROTO_ClearQueue done [12:09:18]KKMCreateOFDPacket [12:09:18]OFDProtocolAddRootSTLVToBuf [12:09:18]FM_MakeSignedData [12:09:18]FM_MakeSignedData [12:09:18]SAM_PROTO_SignData [12:09:18]wFMCommunicate request_size=4 [12:09:18]MH_SAM_APDU [12:09:18]CAPDU: 80 0D 01 02 [12:09:18]Write to MH i2c: E2 08 00 69 04 80 0D 01 02 00 00 00 00 E6 [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 03 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [12:09:18]RAPDU: 90 00 [12:09:18]wFMCommunicate OK [12:09:18]wFMCommunicate request_size=255 [12:09:18]MH_SAM_APDU [12:09:18]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 C2 24 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 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 00 00 00 00 00 00 39 04 06 00 7A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6D FB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C0 13 01 00 35 04 06 00 7F 48 9F A4 [12:09:18]Write to MH i2c: E2 02 01 6A 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 C2 24 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 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 00 00 00 00 00 00 39 04 06 00 7A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6D FB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C0 13 01 00 35 04 06 00 7F 48 9F A4 00 00 DE [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 03 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [12:09:18]RAPDU: 90 00 [12:09:18]wFMCommunicate OK [12:09:18]wFMCommunicate request_size=7 [12:09:18]MH_SAM_APDU [12:09:18]CAPDU: 80 0D 02 02 02 87 BA [12:09:18]Write to MH i2c: E2 0A 00 6B 04 80 0D 02 02 02 00 87 BA 00 00 2E [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 03 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [12:09:18]RAPDU: 90 00 [12:09:18]wFMCommunicate OK [12:09:18]wFMCommunicate request_size=4 [12:09:18]MH_SAM_APDU [12:09:18]CAPDU: 80 0D 03 02 [12:09:18]Write to MH i2c: E2 08 00 6C 04 80 0D 03 02 00 00 00 00 EB [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 0B 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 0B 00 6C 04 00 F5 89 5B 3F 9E 50 21 0E 90 00 21 [12:09:18]RAPDU: F5 89 5B 3F 9E 50 21 0E 90 00 [12:09:18]wFMCommunicate OK [12:09:18]SAM_PROTO_SignData done [12:09:18]FM_MakeSignedData done [12:09:18]CreateOFDProtocolMessage [12:09:18]wFMCommunicate request_size=4 [12:09:18]MH_SAM_APDU [12:09:18]CAPDU: 80 11 00 00 [12:09:18]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:18]Read from MH i2c: E2 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 17 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 40 [12:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:09:18]wFMCommunicate OK [12:09:18]CreateOFDProtocolMessage done [12:09:18]OFDSenderStorePacket 70592 [12:09:18]StoreOFDPacket docnum=70592 [12:09:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 86 02 04 01 C0 24 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 C2 24 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 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 00 00 00 00 00 00 39 04 06 00 7A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6D FB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C0 13 01 00 35 04 06 00 7F 48 9F A4 87 BA F5 89 5B 3F 9E 50 21 0E [12:09:18]CheckFolder [12:09:18]dirname=/storage/ofd_packets [12:09:18]CheckFolder done [12:09:18]ProducePacketName [12:09:18]name=ofd_packets/00070592 [12:09:18]NVStorageSaveData ofd_packets/00070592 [12:09:18]File name is /storage/ofd_packets/00070592 [12:09:18]Write 298 bytes [12:09:18]NVStorageSaveData done [12:09:18]OFDSenderStorePacket done [12:09:18]KKMCreateOFDPacket done [12:09:18]NVStorageSaveData kkm_last_timestamp [12:09:18]File name is /storage/kkm_last_timestamp [12:09:18]Write 4 bytes [12:09:18]NVStorageSaveData done [12:09:18]ExternCall_PrintAddStr [12:09:18]wPrintStart [12:09:18]Write to MH i2c: 01 00 00 6E 04 72 [12:09:18]Write i2c OK [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: 01 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: 01 07 00 [12:09:18]MH_I2C_Read... [12:09:18]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [12:09:18]RasterBufferAndPrint [12:09:18]line Счет N : (1)141034 [12:09:18]line ИÐÐ: 02508201610067 [12:09:18]line Контрольно-КаÑÑовый Чек [12:09:18]line ПРОДÐЖР[12:09:18]line ТРК (МРК, ГÐК) : 44 [12:09:18]line Товар: 2710194210 [12:09:18]line ДТ-К-5 [12:09:18]line 9.410 * 74.40 [12:09:18]line = 700.10 [12:09:18]line ÐДС 12% ÐСП 1% [12:09:18]line > о реализуемом товаре [12:09:18]line ИТОГО: 700.10 [12:09:18]line ÐСП 1% : 6.20 [12:09:18]line ÐДС 12% : 74.35 [12:09:18]line Ðаличными: 0.00 [12:09:18]line Безнал.: 700.10 [12:09:18]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:09:18]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:09:18]line СÐО: Общий режим [12:09:18]line Чек 24 12.08.2024 12:09 [12:09:18]line Смена: 465 ФФД: 1.0 [12:09:18]line ЗÐМ: 0300000140 [12:09:18]line РÐМ: 0000000000090913 [12:09:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:09:18]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [12:09:18]line ФМ: 0000000000874915 [12:09:18]line ФД: 70592 [12:09:18]line ФПД: 139949892732858 [12:09:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T120917&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70592&fm=139949892732858&tin=02508201610067®Number=0000000000090913&sum=70010 [12:09:18]OFD Sender: Processing packet 70592 [packets to send 67, broken 66] [12:09:18]ProducePacketName [12:09:18]name=ofd_packets/00070592 [12:09:18]OFD Sender: To server: ‡•öpG, [12:09:18]CommunicateWithHost lk.salyk.kg:30040 [12:09:18]ConnectInit lk.salyk.kg [12:09:18]written 0, free lines is 4095 [12:09:18]Connected sock=10 [12:09: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 39 31 35 0C 01 00 00 86 02 04 01 C0 24 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 C2 24 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A 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 00 00 00 00 00 00 39 04 06 00 7A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 6D FB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C0 13 01 00 35 04 06 00 7F 48 9F A4 87 BA F5 89 5B 3F 9E 50 21 0E [12:09:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 12 B7 47 00 6C F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C0 13 01 00 F4 03 04 00 5A A2 B9 66 B6 04 01 00 00 E2 E2 3E 0C EF 52 BF DC [12:09:19]CommunicateWithHost err = 0 [12:09:19]CheckOFDResponse [12:09:19]1017 (14) - 77093643461234 [12:09:19]1041 (16) - 0000000000874915 [12:09:19]1040 (4) - 70592 [12:09:19]1012 (4) - 12.08.2024 05:49 [12:09:19]1206 (1) - 0 [12:09:19]OFD Sender: Remove packet 70592 [12:09:19]ProducePacketName [12:09:19]name=ofd_packets/00070592 [12:09:19]NVStorageDeleteData [12:09:19]Write to MH i2c: 01 00 00 98 04 9C [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: 01 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: 01 07 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: 01 07 00 98 04 00 00 00 00 00 F2 0C A1 [12:09:19]RasterBufferAndPrint [12:09:19]line [12:09:19]line [12:09:19]line [12:09:19]line [12:09:19]line [12:09:19]written 0, free lines is 3322 [12:09:19]MH_Cut [12:09:19]Write to MH i2c: D1 01 00 9F 04 01 75 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: D1 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: D1 01 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: D1 01 00 9F 04 00 74 [12:09:19]Write to MH i2c: 01 00 00 A0 04 A4 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]OFD Sender: No OFD packet to send [12:09:19]*** Cut start [12:09:19]*** Purtial cut [12:09:19]*** CUTSNS_PIN = 0 [12:09:20]*** Stage 1: CUTSNS_PIN = 1 [12:09:22]Read from MH i2c: 01 [12:09:22]MH_I2C_Read... [12:09:22]*** Stop cut motor [12:09:22]*** Cut end [12:09:22]Read from MH i2c: 01 07 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: 01 07 00 A0 04 00 00 00 00 00 FF 0F B9 [12:09:22]process_action close_receipt done [12:09:22]requested_data is exist [12:09:22]produce_requested_data [12:09:22]requested_item fm.sn is exist - process it [12:09:22]wFMCommunicate request_size=4 [12:09:22]MH_SAM_APDU [12:09:22]CAPDU: 80 11 00 00 [12:09:22]Write to MH i2c: E2 08 00 A1 04 80 11 00 00 00 00 00 00 1F [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 17 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 17 00 A1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 74 [12:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:09:22]wFMCommunicate OK [12:09:22]requested_item fd.num is exist - process it [12:09:22]SAM_PROTO_GetFieldsCounters [12:09:22]wFMCommunicate request_size=4 [12:09:22]MH_SAM_APDU [12:09:22]CAPDU: 80 13 00 00 [12:09:22]Write to MH i2c: E2 08 00 A2 04 80 13 00 00 00 00 00 00 22 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 62 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 62 00 A2 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C0 13 01 00 0E 04 04 00 D1 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 30 [12:09: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C0 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:22]wFMCommunicate OK [12:09:22]SAM_PROTO_GetFieldsCounters done [12:09:22]requested_item shift.num is exist - process it [12:09:22]requested_item shift.opened is exist - process it [12:09:22]req_shift_opened [12:09:22]FM_GetShiftState [12:09:22]SAM_PROTO_GetShiftState [12:09:22]wFMCommunicate request_size=4 [12:09:22]MH_SAM_APDU [12:09:22]CAPDU: 80 13 01 00 [12:09:22]Write to MH i2c: E2 08 00 A3 04 80 13 01 00 00 00 00 00 24 [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 A3 04 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 11 [12:09:22]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:09:22]wFMCommunicate OK [12:09:22]SAM_PROTO_GetShiftState done [12:09:22]FM_GetShiftState done [12:09:22]req_shift_opened done [12:09:22]requested_item shift.open_date is exist - process it [12:09:22]req_shift_open_date [12:09:22]req_shift_open_date done [12:09:22]produce_requested_data done [12:09:22]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70592,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [12:09:22]process_action_free close_receipt [12:09:22]json_value_free [12:09:22]json_value_free done [12:09:22]process_json_proto returns [12:09:22]Send response to host [12:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70592,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [12:09:22]free response buf [12:09:22]execute_script done [12:09:22]execute_script returns [12:09:22]free content buf [12:09:22]Sock 7.Close socket [12:09:22]Sock 7.Thread stoped [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]accept exits with 9 [12:11:34]New connection [12:11:34]New thread 3066842468 created [12:11:34]Thread 3066699108 joined [12:11:34]Waiting for new connection... [12:11:34] Sock 9.Parse request [12:11:34]Sock 9.Check first char [12:11:34]Sock 9.First char is OK [12:11:34]request: POST /json_proto HTTP/1.0 [12:11:34]Method: POST [12:11:34]URL: /json_proto [12:11:34]Method is POST - this is cgi request [12:11:34]url: /json_proto [12:11:34]query_string will be loaded in cgi processing [12:11:34]execute_cgi json_proto POST (null) [12:11:34]execute_cgi path=json_proto method=POST [12:11:34]POST find Content-Length [12:11:34]Host: 172.17.58.67:8080 [12:11:34]Content-Length: 816 [12:11:34]Content-Type: application/json [12:11:34] [12:11:34]POST finish read [12:11:34]Found Content-Length = 816 [12:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:34]execute_script... [12:11: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)141035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:34]POST & json_proto [12:11:34]process_json_proto [12:11:34]json parsed OK: [12:11:34]protocol is kg_v1.0 [12:11:34]action value=close_receipt [12:11:34]process_action close_receipt [12:11:34]cmd_close_receipt [12:11:34]MH_GetDate [12:11:34]Write to MH i2c: F0 00 00 A4 04 97 [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: F0 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: F0 09 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: F0 09 00 A4 04 00 F6 FB B9 66 94 51 63 64 5C [12:11:34]GetLastDocTimeStamp 1723464557 [12:11:34]current date 1723464694 [12:11:34]FM_GetShiftState [12:11:34]SAM_PROTO_GetShiftState [12:11:34]wFMCommunicate request_size=4 [12:11:34]MH_SAM_APDU [12:11:34]CAPDU: 80 13 01 00 [12:11:34]Write to MH i2c: E2 08 00 A5 04 80 13 01 00 00 00 00 00 26 [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:34]Read from MH i2c: E2 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 0E 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 0E 00 A5 04 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 13 [12:11:34]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:11:34]wFMCommunicate OK [12:11:34]SAM_PROTO_GetShiftState done [12:11:34]FM_GetShiftState done [12:11:34]opened in 1723423336 [12:11:34]opened+sec_in_day 1723509736 [12:11:34]quantity*price = 150064 [12:11:34]sum+1 = 150066 [12:11:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.65 ÐСП 1% : 13.28 ÐДС 12% : 159.36 Ðаличными: 0.00 Безнал.: 1500.65 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 25 12.08.2024 12:11 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70593 ФПД: 208318866430169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T121134&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70593&fm=208318866430169&tin=02508201610067®Number=0000000000090913&sum=150065 [12:11:35]StoreToDocumentArchive [12:11:35]shift 465 fd 70593 [12:11:35]save to /storage/0465/doc_00070593 [12:11:35]save last doc name /storage/0465/doc_00070593 to /storage/kkm_last_doc_name [12:11:35]save OK [12:11:35]Clear old archive folders... [12:11:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:35]tlvbuf is 010EBC40 [12:11:35]SAM_PROTO_ClearQueue [12:11:35]wFMCommunicate request_size=4 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 09 00 00 [12:11:35]Write to MH i2c: E2 08 00 B2 04 80 09 00 00 00 00 00 00 28 [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:35]Read from MH i2c: E2 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [12:11:35]RAPDU: 90 00 [12:11:35]wFMCommunicate OK [12:11:35]SAM_PROTO_ClearQueue done [12:11:35]KKMCreateOFDPacket [12:11:35]OFDProtocolAddRootSTLVToBuf [12:11:35]FM_MakeSignedData [12:11:35]FM_MakeSignedData [12:11:35]SAM_PROTO_SignData [12:11:35]wFMCommunicate request_size=4 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 0D 01 02 [12:11:35]Write to MH i2c: E2 08 00 B3 04 80 0D 01 02 00 00 00 00 30 [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:35]Read from MH i2c: E2 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [12:11:35]RAPDU: 90 00 [12:11:35]wFMCommunicate OK [12:11:35]wFMCommunicate request_size=255 [12:11:35]MH_SAM_APDU [12:11: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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F6 FB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C1 13 01 00 35 04 06 00 BD 77 04 08 [12:11:35]Write to MH i2c: E2 02 01 B4 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F6 FB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C1 13 01 00 35 04 06 00 BD 77 04 08 00 00 0B [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:35]Read from MH i2c: E2 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [12:11:35]RAPDU: 90 00 [12:11:35]wFMCommunicate OK [12:11:35]wFMCommunicate request_size=7 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 0D 02 02 02 98 D9 [12:11:35]Write to MH i2c: E2 0A 00 B5 04 80 0D 02 02 02 00 98 D9 00 00 A8 [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:35]Read from MH i2c: E2 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [12:11:35]RAPDU: 90 00 [12:11:35]wFMCommunicate OK [12:11:35]wFMCommunicate request_size=4 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 0D 03 02 [12:11:35]Write to MH i2c: E2 08 00 B6 04 80 0D 03 02 00 00 00 00 35 [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:35]Read from MH i2c: E2 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 0B 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 0B 00 B6 04 00 A4 91 BD A3 B3 DD 10 C3 90 00 2E [12:11:36]RAPDU: A4 91 BD A3 B3 DD 10 C3 90 00 [12:11:36]wFMCommunicate OK [12:11:36]SAM_PROTO_SignData done [12:11:36]FM_MakeSignedData done [12:11:36]CreateOFDProtocolMessage [12:11:36]wFMCommunicate request_size=4 [12:11:36]MH_SAM_APDU [12:11:36]CAPDU: 80 11 00 00 [12:11:36]Write to MH i2c: E2 08 00 B7 04 80 11 00 00 00 00 00 00 35 [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:36]Read from MH i2c: E2 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 17 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 17 00 B7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 8A [12:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:11:36]wFMCommunicate OK [12:11:36]CreateOFDProtocolMessage done [12:11:36]OFDSenderStorePacket 70593 [12:11:36]StoreOFDPacket docnum=70593 [12:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 0B 2C 04 01 0E 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F6 FB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C1 13 01 00 35 04 06 00 BD 77 04 08 98 D9 A4 91 BD A3 B3 DD 10 C3 [12:11:36]CheckFolder [12:11:36]dirname=/storage/ofd_packets [12:11:36]CheckFolder done [12:11:36]ProducePacketName [12:11:36]name=ofd_packets/00070593 [12:11:36]NVStorageSaveData ofd_packets/00070593 [12:11:36]File name is /storage/ofd_packets/00070593 [12:11:36]Write 298 bytes [12:11:36]NVStorageSaveData done [12:11:36]OFDSenderStorePacket done [12:11:36]KKMCreateOFDPacket done [12:11:36]NVStorageSaveData kkm_last_timestamp [12:11:36]File name is /storage/kkm_last_timestamp [12:11:36]Write 4 bytes [12:11:36]NVStorageSaveData done [12:11:36]ExternCall_PrintAddStr [12:11:36]wPrintStart [12:11:36]Write to MH i2c: 01 00 00 B8 04 BC [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: 01 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: 01 07 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: 01 07 00 B8 04 00 00 00 00 00 FF 0F D1 [12:11:36]RasterBufferAndPrint [12:11:36]line Счет N : (1)141035 [12:11:36]line ИÐÐ: 02508201610067 [12:11:36]line Контрольно-КаÑÑовый Чек [12:11:36]line ПРОДÐЖР[12:11:36]line ТРК (МРК, ГÐК) : 34 [12:11:36]line Товар: 2710194210 [12:11:36]line ДТ-К-5 [12:11:36]line 20.170 * 74.40 [12:11:36]line = 1500.65 [12:11:36]line ÐДС 12% ÐСП 1% [12:11:36]line > о реализуемом товаре [12:11:36]line ИТОГО: 1500.65 [12:11:36]line ÐСП 1% : 13.28 [12:11:36]line ÐДС 12% : 159.36 [12:11:36]line Ðаличными: 0.00 [12:11:36]line Безнал.: 1500.65 [12:11:36]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:11:36]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:11:36]line СÐО: Общий режим [12:11:36]line Чек 25 12.08.2024 12:11 [12:11:36]line Смена: 465 ФФД: 1.0 [12:11:36]line ЗÐМ: 0300000140 [12:11:36]line РÐМ: 0000000000090913 [12:11:36]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:11:36]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [12:11:36]line ФМ: 0000000000874915 [12:11:36]line ФД: 70593 [12:11:36]line ФПД: 208318866430169 [12:11:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T121134&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70593&fm=208318866430169&tin=02508201610067®Number=0000000000090913&sum=150065 [12:11:36]OFD Sender: Processing packet 70593 [packets to send 67, broken 66] [12:11:36]ProducePacketName [12:11:36]name=ofd_packets/00070593 [12:11:36]OFD Sender: To server: ‡•öpG, [12:11:36]CommunicateWithHost lk.salyk.kg:30040 [12:11:36]ConnectInit lk.salyk.kg [12:11:36]written 0, free lines is 4095 [12:11:36]Connected sock=10 [12:11: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 39 31 35 0C 01 00 00 0B 2C 04 01 0E 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 F6 FB B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C1 13 01 00 35 04 06 00 BD 77 04 08 98 D9 A4 91 BD A3 B3 DD 10 C3 [12:11:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 E8 C9 47 00 D0 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C1 13 01 00 F4 03 04 00 E3 A2 B9 66 B6 04 01 00 00 E1 32 C9 16 13 27 E7 ED [12:11:36]CommunicateWithHost err = 0 [12:11:36]CheckOFDResponse [12:11:36]1017 (14) - 77093643461234 [12:11:36]1041 (16) - 0000000000874915 [12:11:36]1040 (4) - 70593 [12:11:36]1012 (4) - 12.08.2024 05:51 [12:11:36]1206 (1) - 0 [12:11:36]OFD Sender: Remove packet 70593 [12:11:36]ProducePacketName [12:11:36]name=ofd_packets/00070593 [12:11:36]NVStorageDeleteData [12:11:36]Write to MH i2c: 01 00 00 E2 04 E6 [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: 01 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: 01 07 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: 01 07 00 E2 04 00 00 00 00 00 07 0D 01 [12:11:36]RasterBufferAndPrint [12:11:36]line [12:11:36]line [12:11:36]line [12:11:36]line [12:11:36]line [12:11:36]written 0, free lines is 3341 [12:11:36]MH_Cut [12:11:36]Write to MH i2c: D1 01 00 E9 04 01 BF [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: D1 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: D1 01 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: D1 01 00 E9 04 00 BE [12:11:36]Write to MH i2c: 01 00 00 EA 04 EE [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:37]OFD Sender: No OFD packet to send [12:11:37]*** Cut start [12:11:37]*** Purtial cut [12:11:37]*** Stage 1: CUTSNS_PIN = 1 [12:11:37]Read from MH i2c: 01 [12:11:37]MH_I2C_Read... [12:11:37]*** Stop cut motor [12:11:37]*** Cut end [12:11:37]Read from MH i2c: 01 07 00 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 FF 0F 03 [12:11:37]process_action close_receipt done [12:11:37]requested_data is exist [12:11:37]produce_requested_data [12:11:37]requested_item fm.sn is exist - process it [12:11:37]wFMCommunicate request_size=4 [12:11:37]MH_SAM_APDU [12:11:37]CAPDU: 80 11 00 00 [12:11:37]Write to MH i2c: E2 08 00 EB 04 80 11 00 00 00 00 00 00 69 [12:11:37]Write i2c OK [12:11:37]MH_I2C_Read... [12:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:37]Read from MH i2c: E2 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: E2 17 00 [12:11:37]MH_I2C_Read... [12:11:37]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 39 31 35 90 00 BE [12:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:11:37]wFMCommunicate OK [12:11:37]requested_item fd.num is exist - process it [12:11:37]SAM_PROTO_GetFieldsCounters [12:11:37]wFMCommunicate request_size=4 [12:11:37]MH_SAM_APDU [12:11:37]CAPDU: 80 13 00 00 [12:11:37]Write to MH i2c: E2 08 00 EC 04 80 13 00 00 00 00 00 00 6C [12:11:37]Write i2c OK [12:11:37]MH_I2C_Read... [12:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 62 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 62 00 EC 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C1 13 01 00 0E 04 04 00 D1 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 7E [12:11: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C1 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:38]wFMCommunicate OK [12:11:38]SAM_PROTO_GetFieldsCounters done [12:11:38]requested_item shift.num is exist - process it [12:11:38]requested_item shift.opened is exist - process it [12:11:38]req_shift_opened [12:11:38]FM_GetShiftState [12:11:38]SAM_PROTO_GetShiftState [12:11:38]wFMCommunicate request_size=4 [12:11:38]MH_SAM_APDU [12:11:38]CAPDU: 80 13 01 00 [12:11:38]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 5B [12:11:38]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:11:38]wFMCommunicate OK [12:11:38]SAM_PROTO_GetShiftState done [12:11:38]FM_GetShiftState done [12:11:38]req_shift_opened done [12:11:38]requested_item shift.open_date is exist - process it [12:11:38]req_shift_open_date [12:11:38]req_shift_open_date done [12:11:38]produce_requested_data done [12:11:38]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70593,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [12:11:38]process_action_free close_receipt [12:11:38]json_value_free [12:11:38]json_value_free done [12:11:38]process_json_proto returns [12:11:38]Send response to host [12:11:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70593,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [12:11:38]free response buf [12:11:38]execute_script done [12:11:38]execute_script returns [12:11:38]free content buf [12:11:38]Sock 9.Close socket [12:11:38]Sock 9.Thread stoped [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]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:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:46]accept exits with 7 [12:24:46]New connection [12:24:46]New thread 3066699108 created [12:24:46]Thread 3066842468 joined [12:24:46]Waiting for new connection... [12:24:46] Sock 7.Parse request [12:24:46]Sock 7.Check first char [12:24:46]Sock 7.First char is OK [12:24:46]request: POST /json_proto HTTP/1.0 [12:24:46]Method: POST [12:24:46]URL: /json_proto [12:24:46]Method is POST - this is cgi request [12:24:46]url: /json_proto [12:24:46]query_string will be loaded in cgi processing [12:24:46]execute_cgi json_proto POST (null) [12:24:46]execute_cgi path=json_proto method=POST [12:24:46]POST find Content-Length [12:24:46]Host: 172.17.58.67:8080 [12:24:46]Content-Length: 679 [12:24:46]Content-Type: application/json [12:24:46] [12:24:46]POST finish read [12:24:46]Found Content-Length = 679 [12:24:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "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" ] } } [12:24:46]execute_script... [12: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)141038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "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" ] } } [12:24:46]POST & json_proto [12:24:46]process_json_proto [12:24:46]json parsed OK: [12:24:46]protocol is kg_v1.0 [12:24:46]action value=close_receipt [12:24:46]process_action close_receipt [12:24:46]cmd_close_receipt [12:24:46]MH_GetDate [12:24:46]Write to MH i2c: F0 00 00 EE 04 E1 [12:24:46]Write i2c OK [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: F0 [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: F0 09 00 [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: F0 09 00 EE 04 00 0F FF B9 66 94 51 63 64 C3 [12:24:46]GetLastDocTimeStamp 1723464694 [12:24:46]current date 1723465487 [12:24:46]FM_GetShiftState [12:24:46]SAM_PROTO_GetShiftState [12:24:46]wFMCommunicate request_size=4 [12:24:46]MH_SAM_APDU [12:24:46]CAPDU: 80 13 01 00 [12:24:46]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [12:24:46]Write i2c OK [12:24:46]MH_I2C_Read... [12:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:46]Read from MH i2c: E2 [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: E2 0E 00 [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 5D [12:24:46]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:24:46]wFMCommunicate OK [12:24:46]SAM_PROTO_GetShiftState done [12:24:46]FM_GetShiftState done [12:24:46]opened in 1723423336 [12:24:46]opened+sec_in_day 1723509736 [12:24:46]quantity*price = 200061 [12:24:46]sum+1 = 200063 [12:24:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.62 ИТОГО: 2000.00 ВнеÑено: 2000.00 СДÐЧÐ: 0.00 ÐСП 1% : 17.70 ÐДС 12% : 212.45 Ðаличными: 2000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 26 12.08.2024 12:24 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70594 ФПД: 180412709742177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T122447&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70594&fm=180412709742177&tin=02508201610067®Number=0000000000090913&sum=200000 [12:24:47]StoreToDocumentArchive [12:24:47]shift 465 fd 70594 [12:24:47]save to /storage/0465/doc_00070594 [12:24:47]save last doc name /storage/0465/doc_00070594 to /storage/kkm_last_doc_name [12:24:47]save OK [12:24:47]Clear old archive folders... [12:24:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:24:47]tlvbuf is 010955B0 [12:24:47]SAM_PROTO_ClearQueue [12:24:47]wFMCommunicate request_size=4 [12:24:47]MH_SAM_APDU [12:24:47]CAPDU: 80 09 00 00 [12:24:47]Write to MH i2c: E2 08 00 FC 04 80 09 00 00 00 00 00 00 72 [12:24:47]Write i2c OK [12:24:47]MH_I2C_Read... [12:24:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:47]Read from MH i2c: E2 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 03 00 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [12:24:47]RAPDU: 90 00 [12:24:47]wFMCommunicate OK [12:24:47]SAM_PROTO_ClearQueue done [12:24:47]KKMCreateOFDPacket [12:24:47]OFDProtocolAddRootSTLVToBuf [12:24:47]FM_MakeSignedData [12:24:47]FM_MakeSignedData [12:24:47]SAM_PROTO_SignData [12:24:47]wFMCommunicate request_size=4 [12:24:47]MH_SAM_APDU [12:24:47]CAPDU: 80 0D 01 02 [12:24:47]Write to MH i2c: E2 08 00 FD 04 80 0D 01 02 00 00 00 00 7A [12:24:47]Write i2c OK [12:24:47]MH_I2C_Read... [12:24:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:47]Read from MH i2c: E2 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 03 00 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [12:24:47]RAPDU: 90 00 [12:24:47]wFMCommunicate OK [12:24:47]wFMCommunicate request_size=255 [12:24:47]MH_SAM_APDU [12: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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 1A 00 00 00 F4 03 04 00 0F FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C2 13 01 00 35 04 06 00 A4 15 9B 7A [12:24:47]Write to MH i2c: E2 02 01 FE 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 1A 00 00 00 F4 03 04 00 0F FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C2 13 01 00 35 04 06 00 A4 15 9B 7A 00 00 A0 [12:24:47]Write i2c OK [12:24:47]MH_I2C_Read... [12:24:47]OFD Sender: No OFD packet to send [12:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:48]Read from MH i2c: E2 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: E2 03 00 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [12:24:48]RAPDU: 90 00 [12:24:48]wFMCommunicate OK [12:24:48]wFMCommunicate request_size=7 [12:24:48]MH_SAM_APDU [12:24:48]CAPDU: 80 0D 02 02 02 26 61 [12:24:48]Write to MH i2c: E2 0A 00 FF 04 80 0D 02 02 02 00 26 61 00 00 08 [12:24:48]Write i2c OK [12:24:48]MH_I2C_Read... [12:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:48]Read from MH i2c: E2 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: E2 03 00 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [12:24:48]RAPDU: 90 00 [12:24:48]wFMCommunicate OK [12:24:48]wFMCommunicate request_size=4 [12:24:48]MH_SAM_APDU [12:24:48]CAPDU: 80 0D 03 02 [12:24:48]Write to MH i2c: E2 08 00 00 05 80 0D 03 02 00 00 00 00 80 [12:24:48]Write i2c OK [12:24:48]MH_I2C_Read... [12:24:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:48]Read from MH i2c: E2 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: E2 0B 00 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: E2 0B 00 00 05 00 F0 F3 7B 63 93 C6 60 FA 90 00 F5 [12:24:48]RAPDU: F0 F3 7B 63 93 C6 60 FA 90 00 [12:24:48]wFMCommunicate OK [12:24:48]SAM_PROTO_SignData done [12:24:48]FM_MakeSignedData done [12:24:48]CreateOFDProtocolMessage [12:24:48]wFMCommunicate request_size=4 [12:24:48]MH_SAM_APDU [12:24:48]CAPDU: 80 11 00 00 [12:24:48]Write to MH i2c: E2 08 00 01 05 80 11 00 00 00 00 00 00 80 [12:24:48]Write i2c OK [12:24:48]MH_I2C_Read... [12:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:48]Read from MH i2c: E2 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: E2 17 00 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: E2 17 00 01 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D5 [12:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:24:48]wFMCommunicate OK [12:24:48]CreateOFDProtocolMessage done [12:24:48]OFDSenderStorePacket 70594 [12:24:48]StoreOFDPacket docnum=70594 [12:24:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 56 2D 04 01 2B 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 1A 00 00 00 F4 03 04 00 0F FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C2 13 01 00 35 04 06 00 A4 15 9B 7A 26 61 F0 F3 7B 63 93 C6 60 FA [12:24:48]CheckFolder [12:24:48]dirname=/storage/ofd_packets [12:24:48]CheckFolder done [12:24:48]ProducePacketName [12:24:48]name=ofd_packets/00070594 [12:24:48]NVStorageSaveData ofd_packets/00070594 [12:24:48]File name is /storage/ofd_packets/00070594 [12:24:48]Write 298 bytes [12:24:48]NVStorageSaveData done [12:24:48]OFDSenderStorePacket done [12:24:48]KKMCreateOFDPacket done [12:24:48]NVStorageSaveData kkm_last_timestamp [12:24:48]File name is /storage/kkm_last_timestamp [12:24:48]Write 4 bytes [12:24:48]NVStorageSaveData done [12:24:48]ExternCall_PrintAddStr [12:24:48]wPrintStart [12:24:48]Write to MH i2c: 01 00 00 02 05 07 [12:24:48]Write i2c OK [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: 01 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: 01 07 00 [12:24:48]MH_I2C_Read... [12:24:48]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 FF 0F 1C [12:24:48]RasterBufferAndPrint [12:24:48]line Счет N : (1)141038 [12:24:48]line ИÐÐ: 02508201610067 [12:24:48]line Контрольно-КаÑÑовый Чек [12:24:48]line ПРОДÐЖР[12:24:48]line ТРК (МРК, ГÐК) : 14 [12:24:48]line Товар: 2710194210 [12:24:48]line ДТ-К-5 [12:24:48]line 26.890 * 74.40 [12:24:48]line = 2000.62 [12:24:48]line ÐДС 12% ÐСП 1% [12:24:48]line > о реализуемом товаре [12:24:48]line ОКРУГЛЕÐИЕ: -0.62 [12:24:48]line ИТОГО: 2000.00 [12:24:48]line ВнеÑено: 2000.00 [12:24:48]line СДÐЧÐ: 0.00 [12:24:48]line ÐСП 1% : 17.70 [12:24:48]line ÐДС 12% : 212.45 [12:24:48]line Ðаличными: 2000.00 [12:24:48]line Безнал.: 0.00 [12:24:48]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:24:48]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:24:48]line СÐО: Общий режим [12:24:48]line Чек 26 12.08.2024 12:24 [12:24:48]line Смена: 465 ФФД: 1.0 [12:24:48]line ЗÐМ: 0300000140 [12:24:48]line РÐМ: 0000000000090913 [12:24:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:24:48]line ФМ: 0000000000874915 [12:24:48]line ФД: 70594 [12:24:48]line ФПД: 180412709742177 [12:24:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T122447&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70594&fm=180412709742177&tin=02508201610067®Number=0000000000090913&sum=200000 [12:24:48]OFD Sender: Processing packet 70594 [packets to send 67, broken 66] [12:24:48]ProducePacketName [12:24:48]name=ofd_packets/00070594 [12:24:48]OFD Sender: To server: ‡•öpG, [12:24:48]CommunicateWithHost lk.salyk.kg:30040 [12:24:48]ConnectInit lk.salyk.kg [12:24:48]written 0, free lines is 4095 [12:24:48]Connected sock=10 [12: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 39 31 35 0C 01 00 00 56 2D 04 01 2B 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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 1A 00 00 00 F4 03 04 00 0F FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C2 13 01 00 35 04 06 00 A4 15 9B 7A 26 61 F0 F3 7B 63 93 C6 60 FA [12: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 39 31 35 4F 00 00 00 59 21 47 00 4B 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 39 31 35 10 04 04 00 C2 13 01 00 F4 03 04 00 FC A5 B9 66 B6 04 01 00 00 87 91 F2 E4 A7 48 68 94 [12:24:48]CommunicateWithHost err = 0 [12:24:48]CheckOFDResponse [12:24:48]1017 (14) - 77093643461234 [12:24:48]1041 (16) - 0000000000874915 [12:24:48]1040 (4) - 70594 [12:24:48]1012 (4) - 12.08.2024 06:04 [12:24:48]1206 (1) - 0 [12:24:48]OFD Sender: Remove packet 70594 [12:24:48]ProducePacketName [12:24:48]name=ofd_packets/00070594 [12:24:48]NVStorageDeleteData [12:24:49]Write to MH i2c: 01 00 00 2D 05 32 [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: 01 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: 01 07 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: 01 07 00 2D 05 00 00 00 00 00 F3 0C 38 [12:24:49]RasterBufferAndPrint [12:24:49]line [12:24:49]line [12:24:49]line [12:24:49]line [12:24:49]line [12:24:49]written 0, free lines is 3321 [12:24:49]MH_Cut [12:24:49]Write to MH i2c: D1 01 00 34 05 01 0B [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: D1 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: D1 01 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: D1 01 00 34 05 00 0A [12:24:49]Write to MH i2c: 01 00 00 35 05 3A [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]OFD Sender: No OFD packet to send [12:24:49]*** Cut start [12:24:49]*** Purtial cut [12:24:49]*** CUTSNS_PIN = 0 [12:24:49]*** Stage 1: CUTSNS_PIN = 1 [12:24:51]Read from MH i2c: 01 [12:24:51]MH_I2C_Read... [12:24:51]*** Stop cut motor [12:24:51]*** Cut end [12:24:51]Read from MH i2c: 01 07 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: 01 07 00 35 05 00 00 00 00 00 FF 0F 4F [12:24:51]process_action close_receipt done [12:24:51]requested_data is exist [12:24:51]produce_requested_data [12:24:51]requested_item fm.sn is exist - process it [12:24:51]wFMCommunicate request_size=4 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 11 00 00 [12:24:51]Write to MH i2c: E2 08 00 36 05 80 11 00 00 00 00 00 00 B5 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 17 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 17 00 36 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0A [12:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:24:51]wFMCommunicate OK [12:24:51]requested_item fd.num is exist - process it [12:24:51]SAM_PROTO_GetFieldsCounters [12:24:51]wFMCommunicate request_size=4 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 13 00 00 [12:24:51]Write to MH i2c: E2 08 00 37 05 80 13 00 00 00 00 00 00 B8 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:52]Read from MH i2c: E2 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: E2 62 00 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: E2 62 00 37 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C2 13 01 00 0E 04 04 00 D1 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 CE [12:24: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C2 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:52]wFMCommunicate OK [12:24:52]SAM_PROTO_GetFieldsCounters done [12:24:52]requested_item shift.num is exist - process it [12:24:52]requested_item shift.opened is exist - process it [12:24:52]req_shift_opened [12:24:52]FM_GetShiftState [12:24:52]SAM_PROTO_GetShiftState [12:24:52]wFMCommunicate request_size=4 [12:24:52]MH_SAM_APDU [12:24:52]CAPDU: 80 13 01 00 [12:24:52]Write to MH i2c: E2 08 00 38 05 80 13 01 00 00 00 00 00 BA [12:24:52]Write i2c OK [12:24:52]MH_I2C_Read... [12:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:52]Read from MH i2c: E2 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: E2 0E 00 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: E2 0E 00 38 05 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 A7 [12:24:52]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:24:52]wFMCommunicate OK [12:24:52]SAM_PROTO_GetShiftState done [12:24:52]FM_GetShiftState done [12:24:52]req_shift_opened done [12:24:52]requested_item shift.open_date is exist - process it [12:24:52]req_shift_open_date [12:24:52]req_shift_open_date done [12:24:52]produce_requested_data done [12:24:52]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70594,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [12:24:52]process_action_free close_receipt [12:24:52]json_value_free [12:24:52]json_value_free done [12:24:52]process_json_proto returns [12:24:52]Send response to host [12:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70594,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [12:24:52]free response buf [12:24:52]execute_script done [12:24:52]execute_script returns [12:24:52]free content buf [12:24:52]Sock 7.Close socket [12:24:52]Sock 7.Thread stoped [12:24:53]int [12:24:53]Write to MH i2c: 01 00 00 39 05 3E [12:24:53]*** FLAG_PRN_KEY set [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 39 05 00 08 00 00 00 FF 0F 5B [12:24:53]state=0 [12:24:53]Key pressed [12:24:53]Feed [12:24:53]Write to MH i2c: D8 00 00 3A 05 16 [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: D8 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: D8 01 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: D8 01 00 3A 05 00 17 [12:24:53]int [12:24:53]Write to MH i2c: 01 00 00 3B 05 40 [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 3B 05 00 48 00 00 00 3C 00 CB [12:24:53]state=2 [12:24:53]Key pressed [12:24:53]int line is 0 - check status [12:24:53]Write to MH i2c: 01 00 00 3C 05 41 [12:24:53]*** FLAG_PRN_KEY reset [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 F7 0F 4E [12:24:53]state=2 [12:24:53]Stop feed [12:24:53]int [12:24:53]Write to MH i2c: 01 00 00 3D 05 42 [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 F8 0F 50 [12:24:53]state=0 [12:24:53]int [12:24:53]Write to MH i2c: 01 00 00 3E 05 43 [12:24:53]*** FLAG_PRN_KEY set [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 [12:24:53]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 3E 05 00 08 00 00 00 FF 0F 60 [12:24:54]state=0 [12:24:54]Key pressed [12:24:54]Feed [12:24:54]Write to MH i2c: D8 00 00 3F 05 1B [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: D8 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: D8 01 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: D8 01 00 3F 05 00 1C [12:24:54]int [12:24:54]Write to MH i2c: 01 00 00 40 05 45 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 40 05 00 48 00 00 00 3C 00 D0 [12:24:54]state=2 [12:24:54]Key pressed [12:24:54]int [12:24:54]Write to MH i2c: 01 00 00 41 05 46 [12:24:54]*** FLAG_PRN_KEY reset [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 41 05 00 00 00 00 00 F9 0F 55 [12:24:54]state=2 [12:24:54]Stop feed [12:24:54]OFD Sender: No OFD packet to send [12:24:54]int [12:24:54]Write to MH i2c: 01 00 00 42 05 47 [12:24:54]*** FLAG_PRN_KEY set [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 42 05 00 08 00 00 00 FF 0F 64 [12:24:54]state=0 [12:24:54]Key pressed [12:24:54]Feed [12:24:54]Write to MH i2c: D8 00 00 43 05 1F [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: D8 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: D8 01 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: D8 01 00 43 05 00 20 [12:24:54]int [12:24:54]Write to MH i2c: 01 00 00 44 05 49 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 44 05 00 48 00 00 00 3C 00 D4 [12:24:54]state=2 [12:24:54]Key pressed [12:24:54]int [12:24:54]Write to MH i2c: 01 00 00 45 05 4A [12:24:54]*** FLAG_PRN_KEY reset [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 FF 0F 5F [12:24:54]state=2 [12:24:54]Stop feed [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:12]accept exits with 9 [12:25:12]New connection [12:25:12]New thread 3066842468 created [12:25:12]Thread 3066699108 joined [12:25:12]Waiting for new connection... [12:25:12] Sock 9.Parse request [12:25:12]Sock 9.Check first char [12:25:12]Sock 9.First char is OK [12:25:12]request: POST /json_proto HTTP/1.0 [12:25:12]Method: POST [12:25:12]URL: /json_proto [12:25:12]Method is POST - this is cgi request [12:25:12]url: /json_proto [12:25:12]query_string will be loaded in cgi processing [12:25:12]execute_cgi json_proto POST (null) [12:25:12]execute_cgi path=json_proto method=POST [12:25:12]POST find Content-Length [12:25:12]Host: 172.17.58.67:8080 [12:25:12]Content-Length: 735 [12:25:12]Content-Type: application/json [12:25:12] [12:25:12]POST finish read [12:25:12]Found Content-Length = 735 [12:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70594, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "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" ] } } [12:25:12]execute_script... [12:25:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70594, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.62, "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" ] } } [12:25:12]POST & json_proto [12:25:12]process_json_proto [12:25:12]json parsed OK: [12:25:12]protocol is kg_v1.0 [12:25:12]action value=close_receipt [12:25:12]process_action close_receipt [12:25:12]cmd_close_receipt [12:25:12]MH_GetDate [12:25:12]Write to MH i2c: F0 00 00 46 05 3A [12:25:12]Write i2c OK [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: F0 [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: F0 09 00 [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: F0 09 00 46 05 00 28 FF B9 66 94 51 63 64 35 [12:25:12]GetLastDocTimeStamp 1723465487 [12:25:12]current date 1723465512 [12:25:12]FM_GetShiftState [12:25:12]SAM_PROTO_GetShiftState [12:25:12]wFMCommunicate request_size=4 [12:25:12]MH_SAM_APDU [12:25:12]CAPDU: 80 13 01 00 [12:25:12]Write to MH i2c: E2 08 00 47 05 80 13 01 00 00 00 00 00 C9 [12:25:12]Write i2c OK [12:25:12]MH_I2C_Read... [12:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:12]Read from MH i2c: E2 [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: E2 0E 00 [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: E2 0E 00 47 05 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 B6 [12:25:12]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:25:12]wFMCommunicate OK [12:25:12]SAM_PROTO_GetShiftState done [12:25:12]FM_GetShiftState done [12:25:12]opened in 1723423336 [12:25:12]opened+sec_in_day 1723509736 [12:25:12]quantity*price = 200061 [12:25:12]sum+1 = 200063 [12:25:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.62 ИТОГО: 2000.00 ÐСП 1% : 17.70 ÐДС 12% : 212.45 Ðаличными: 2000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 27 12.08.2024 12:25 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФД оÑн.: 70594 ФМ оÑн.: 0000000000874915 ФМ: 0000000000874915 ФД: 70595 ФПД: 67879281407502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T122512&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70595&fm=67879281407502&tin=02508201610067®Number=0000000000090913&sum=200000 [12:25:13]StoreToDocumentArchive [12:25:13]shift 465 fd 70595 [12:25:13]save to /storage/0465/doc_00070595 [12:25:13]save last doc name /storage/0465/doc_00070595 to /storage/kkm_last_doc_name [12:25:13]save OK [12:25:13]Clear old archive folders... [12:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:25:13]tlvbuf is 010D8370 [12:25:13]SAM_PROTO_ClearQueue [12:25:13]wFMCommunicate request_size=4 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 09 00 00 [12:25:13]Write to MH i2c: E2 08 00 56 05 80 09 00 00 00 00 00 00 CD [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 03 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [12:25:13]RAPDU: 90 00 [12:25:13]wFMCommunicate OK [12:25:13]SAM_PROTO_ClearQueue done [12:25:13]KKMCreateOFDPacket [12:25:13]OFDProtocolAddRootSTLVToBuf [12:25:13]FM_MakeSignedData [12:25:13]FM_MakeSignedData [12:25:13]SAM_PROTO_SignData [12:25:13]wFMCommunicate request_size=4 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 0D 01 02 [12:25:13]Write to MH i2c: E2 08 00 57 05 80 0D 01 02 00 00 00 00 D5 [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 03 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [12:25:13]RAPDU: 90 00 [12:25:13]wFMCommunicate OK [12:25:13]wFMCommunicate request_size=255 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 1B 00 00 00 F4 03 04 00 28 FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 C2 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 [12:25:13]Write to MH i2c: E2 02 01 58 05 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 1B 00 00 00 F4 03 04 00 28 FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 C2 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 00 00 39 [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 03 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [12:25:13]RAPDU: 90 00 [12:25:13]wFMCommunicate OK [12:25:13]wFMCommunicate request_size=35 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C3 13 01 00 35 04 06 00 3D BC 60 74 B6 0E [12:25:13]Write to MH i2c: E2 26 00 59 05 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C3 13 01 00 35 04 06 00 3D BC 60 74 B6 0E 00 00 35 [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 03 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [12:25:13]RAPDU: 90 00 [12:25:13]wFMCommunicate OK [12:25:13]wFMCommunicate request_size=4 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 0D 03 02 [12:25:13]Write to MH i2c: E2 08 00 5A 05 80 0D 03 02 00 00 00 00 DA [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 0B 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 0B 00 5A 05 00 E3 22 E9 86 96 3A 11 38 90 00 68 [12:25:13]RAPDU: E3 22 E9 86 96 3A 11 38 90 00 [12:25:13]wFMCommunicate OK [12:25:13]SAM_PROTO_SignData done [12:25:13]FM_MakeSignedData done [12:25:13]CreateOFDProtocolMessage [12:25:13]wFMCommunicate request_size=4 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 11 00 00 [12:25:13]Write to MH i2c: E2 08 00 5B 05 80 11 00 00 00 00 00 00 DA [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:13]Read from MH i2c: E2 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 17 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: E2 17 00 5B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 2F [12:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:25:13]wFMCommunicate OK [12:25:13]CreateOFDProtocolMessage done [12:25:13]OFDSenderStorePacket 70595 [12:25:13]StoreOFDPacket docnum=70595 [12:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 28 01 00 00 A1 1C 20 01 BE 1C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 1B 00 00 00 F4 03 04 00 28 FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 C2 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C3 13 01 00 35 04 06 00 3D BC 60 74 B6 0E E3 22 E9 86 96 3A 11 38 [12:25:13]CheckFolder [12:25:13]dirname=/storage/ofd_packets [12:25:13]CheckFolder done [12:25:13]ProducePacketName [12:25:13]name=ofd_packets/00070595 [12:25:13]NVStorageSaveData ofd_packets/00070595 [12:25:13]File name is /storage/ofd_packets/00070595 [12:25:13]Write 326 bytes [12:25:13]NVStorageSaveData done [12:25:13]OFDSenderStorePacket done [12:25:13]KKMCreateOFDPacket done [12:25:13]NVStorageSaveData kkm_last_timestamp [12:25:13]File name is /storage/kkm_last_timestamp [12:25:13]Write 4 bytes [12:25:13]NVStorageSaveData done [12:25:13]OFD Sender: Processing packet 70595 [packets to send 67, broken 66] [12:25:13]ProducePacketName [12:25:13]name=ofd_packets/00070595 [12:25:13]OFD Sender: To server: ‡•öpG, [12:25:13]CommunicateWithHost lk.salyk.kg:30040 [12:25:13]ConnectInit lk.salyk.kg [12:25:13]ExternCall_PrintAddStr [12:25:13]wPrintStart [12:25:13]Write to MH i2c: 01 00 00 5C 05 61 [12:25:13]Write i2c OK [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: 01 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: 01 07 00 [12:25:13]MH_I2C_Read... [12:25:13]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [12:25:13]RasterBufferAndPrint [12:25:13]line Счет N : (1)141038 [12:25:13]line ИÐÐ: 02508201610067 [12:25:13]line Контрольно-КаÑÑовый Чек [12:25:13]line ВОЗВРÐТ ПРОДÐЖИ [12:25:13]line ТРК (МРК, ГÐК) : 14 [12:25:13]line Товар: 2710194210 [12:25:13]line ДТ-К-5 [12:25:13]line 26.890 * 74.40 [12:25:13]line = 2000.62 [12:25:13]line ÐДС 12% ÐСП 1% [12:25:13]line > о реализуемом товаре [12:25:13]line ОКРУГЛЕÐИЕ: -0.62 [12:25:13]line ИТОГО: 2000.00 [12:25:13]line ÐСП 1% : 17.70 [12:25:13]line ÐДС 12% : 212.45 [12:25:13]line Ðаличными: 2000.00 [12:25:13]line Безнал.: 0.00 [12:25:13]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:25:13]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:25:13]line СÐО: Общий режим [12:25:13]line Чек 27 12.08.2024 12:25 [12:25:13]line Смена: 465 ФФД: 1.0 [12:25:13]line ЗÐМ: 0300000140 [12:25:13]line РÐМ: 0000000000090913 [12:25:13]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:25:13]line ФД оÑн.: 70594 [12:25:13]line ФМ оÑн.: 0000000000874915 [12:25:13]line ФМ: 0000000000874915 [12:25:13]line ФД: 70595 [12:25:13]line ФПД: 67879281407502 [12:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T122512&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70595&fm=67879281407502&tin=02508201610067®Number=0000000000090913&sum=200000 [12:25:14]Connected sock=11 [12:25: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 39 31 35 28 01 00 00 A1 1C 20 01 BE 1C 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 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 1B 00 00 00 F4 03 04 00 28 FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 C2 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C3 13 01 00 35 04 06 00 3D BC 60 74 B6 0E E3 22 E9 86 96 3A 11 38 [12:25:14]written 0, free lines is 4095 [12:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 68 F4 47 00 DD 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C3 13 01 00 F4 03 04 00 15 A6 B9 66 B6 04 01 00 00 53 D7 09 28 C3 C2 75 50 [12:25:14]CommunicateWithHost err = 0 [12:25:14]CheckOFDResponse [12:25:14]1017 (14) - 77093643461234 [12:25:14]1041 (16) - 0000000000874915 [12:25:14]1040 (4) - 70595 [12:25:14]1012 (4) - 12.08.2024 06:05 [12:25:14]1206 (1) - 0 [12:25:14]OFD Sender: Remove packet 70595 [12:25:14]ProducePacketName [12:25:14]name=ofd_packets/00070595 [12:25:14]NVStorageDeleteData [12:25:14]Write to MH i2c: 01 00 00 87 05 8C [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: 01 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: 01 07 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: 01 07 00 87 05 00 00 00 00 00 01 0D A1 [12:25:14]RasterBufferAndPrint [12:25:14]line [12:25:14]line [12:25:14]line [12:25:14]line [12:25:14]line [12:25:14]written 0, free lines is 3338 [12:25:14]MH_Cut [12:25:14]Write to MH i2c: D1 01 00 8E 05 01 65 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: D1 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: D1 01 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: D1 01 00 8E 05 00 64 [12:25:14]Write to MH i2c: 01 00 00 8F 05 94 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]OFD Sender: No OFD packet to send [12:25:15]*** Cut start [12:25:15]*** Purtial cut [12:25:15]*** Stage 1: CUTSNS_PIN = 1 [12:25:15]Read from MH i2c: 01 [12:25:15]MH_I2C_Read... [12:25:15]*** Stop cut motor [12:25:15]*** Cut end [12:25:15]Read from MH i2c: 01 07 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 FF 0F A9 [12:25:15]process_action close_receipt done [12:25:15]requested_data is exist [12:25:15]produce_requested_data [12:25:15]requested_item fm.sn is exist - process it [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 11 00 00 [12:25:15]Write to MH i2c: E2 08 00 90 05 80 11 00 00 00 00 00 00 0F [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 17 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 17 00 90 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 64 [12:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:25:15]wFMCommunicate OK [12:25:15]requested_item fd.num is exist - process it [12:25:15]SAM_PROTO_GetFieldsCounters [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 13 00 00 [12:25:15]Write to MH i2c: E2 08 00 91 05 80 13 00 00 00 00 00 00 12 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 62 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 62 00 91 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C3 13 01 00 0E 04 04 00 D1 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 2C [12:25: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C3 13 01 00 0E 04 04 00 D1 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 [12:25:15]wFMCommunicate OK [12:25:15]SAM_PROTO_GetFieldsCounters done [12:25:15]requested_item shift.num is exist - process it [12:25:15]requested_item shift.opened is exist - process it [12:25:15]req_shift_opened [12:25:15]FM_GetShiftState [12:25:15]SAM_PROTO_GetShiftState [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 13 01 00 [12:25:15]Write to MH i2c: E2 08 00 92 05 80 13 01 00 00 00 00 00 14 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 0E 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 0E 00 92 05 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 01 [12:25:15]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:25:15]wFMCommunicate OK [12:25:15]SAM_PROTO_GetShiftState done [12:25:15]FM_GetShiftState done [12:25:15]req_shift_opened done [12:25:15]requested_item shift.open_date is exist - process it [12:25:15]req_shift_open_date [12:25:15]req_shift_open_date done [12:25:15]produce_requested_data done [12:25:15]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70595,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [12:25:15]process_action_free close_receipt [12:25:15]json_value_free [12:25:15]json_value_free done [12:25:15]process_json_proto returns [12:25:15]Send response to host [12:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70595,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [12:25:15]free response buf [12:25:15]execute_script done [12:25:15]execute_script returns [12:25:15]free content buf [12:25:15]Sock 9.Close socket [12:25:15]Sock 9.Thread stoped [12:25:16]accept exits with 7 [12:25:16]New connection [12:25:16]New thread 3066699108 created [12:25:16]Thread 3066842468 joined [12:25:16]Waiting for new connection... [12:25:16] Sock 7.Parse request [12:25:16]Sock 7.Check first char [12:25:16]Sock 7.First char is OK [12:25:16]request: POST /json_proto HTTP/1.0 [12:25:16]Method: POST [12:25:16]URL: /json_proto [12:25:16]Method is POST - this is cgi request [12:25:16]url: /json_proto [12:25:16]query_string will be loaded in cgi processing [12:25:16]execute_cgi json_proto POST (null) [12:25:16]execute_cgi path=json_proto method=POST [12:25:16]POST find Content-Length [12:25:16]Host: 172.17.58.67:8080 [12:25:16]Content-Length: 802 [12:25:16]Content-Type: application/json [12:25:16] [12:25:16]POST finish read [12:25:16]Found Content-Length = 802 [12:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 8.070, "sum" : 600.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:16]execute_script... [12:25: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)141037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 8.070, "sum" : 600.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:16]POST & json_proto [12:25:16]process_json_proto [12:25:16]json parsed OK: [12:25:16]protocol is kg_v1.0 [12:25:16]action value=close_receipt [12:25:16]process_action close_receipt [12:25:16]cmd_close_receipt [12:25:16]MH_GetDate [12:25:16]Write to MH i2c: F0 00 00 93 05 87 [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: F0 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: F0 09 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: F0 09 00 93 05 00 2C FF B9 66 94 51 63 64 86 [12:25:16]GetLastDocTimeStamp 1723465512 [12:25:16]current date 1723465516 [12:25:16]FM_GetShiftState [12:25:16]SAM_PROTO_GetShiftState [12:25:16]wFMCommunicate request_size=4 [12:25:16]MH_SAM_APDU [12:25:16]CAPDU: 80 13 01 00 [12:25:16]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:16]Read from MH i2c: E2 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 0E 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 03 [12:25:16]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:25:16]wFMCommunicate OK [12:25:16]SAM_PROTO_GetShiftState done [12:25:16]FM_GetShiftState done [12:25:16]opened in 1723423336 [12:25:16]opened+sec_in_day 1723509736 [12:25:16]quantity*price = 60040 [12:25:16]sum+1 = 60042 [12:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.41 ÐСП 1% : 5.31 ÐДС 12% : 63.76 Ðаличными: 0.00 Безнал.: 600.41 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 28 12.08.2024 12:25 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70596 ФПД: 113843249331890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T122516&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70596&fm=113843249331890&tin=02508201610067®Number=0000000000090913&sum=60041 [12:25:17]StoreToDocumentArchive [12:25:17]shift 465 fd 70596 [12:25:17]save to /storage/0465/doc_00070596 [12:25:17]save last doc name /storage/0465/doc_00070596 to /storage/kkm_last_doc_name [12:25:17]save OK [12:25:17]Clear old archive folders... [12:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:25:17]tlvbuf is 010A03A0 [12:25:17]SAM_PROTO_ClearQueue [12:25:17]wFMCommunicate request_size=4 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 09 00 00 [12:25:17]Write to MH i2c: E2 08 00 A1 05 80 09 00 00 00 00 00 00 18 [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:17]Read from MH i2c: E2 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 03 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [12:25:17]RAPDU: 90 00 [12:25:17]wFMCommunicate OK [12:25:17]SAM_PROTO_ClearQueue done [12:25:17]KKMCreateOFDPacket [12:25:17]OFDProtocolAddRootSTLVToBuf [12:25:17]FM_MakeSignedData [12:25:17]FM_MakeSignedData [12:25:17]SAM_PROTO_SignData [12:25:17]wFMCommunicate request_size=4 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 0D 01 02 [12:25:17]Write to MH i2c: E2 08 00 A2 05 80 0D 01 02 00 00 00 00 20 [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:17]Read from MH i2c: E2 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 03 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [12:25:17]RAPDU: 90 00 [12:25:17]wFMCommunicate OK [12:25:17]wFMCommunicate request_size=255 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 1F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 89 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 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 00 00 00 00 00 00 39 04 06 00 89 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 2C FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C4 13 01 00 35 04 06 00 67 8A 32 6F [12:25:17]Write to MH i2c: E2 02 01 A3 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 86 1F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 89 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 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 00 00 00 00 00 00 39 04 06 00 89 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 2C FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C4 13 01 00 35 04 06 00 67 8A 32 6F 00 00 5E [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:18]Read from MH i2c: E2 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 03 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [12:25:18]RAPDU: 90 00 [12:25:18]wFMCommunicate OK [12:25:18]wFMCommunicate request_size=7 [12:25:18]MH_SAM_APDU [12:25:18]CAPDU: 80 0D 02 02 02 BE B2 [12:25:18]Write to MH i2c: E2 0A 00 A4 05 80 0D 02 02 02 00 BE B2 00 00 97 [12:25:18]Write i2c OK [12:25:18]MH_I2C_Read... [12:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:18]Read from MH i2c: E2 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 03 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [12:25:18]RAPDU: 90 00 [12:25:18]wFMCommunicate OK [12:25:18]wFMCommunicate request_size=4 [12:25:18]MH_SAM_APDU [12:25:18]CAPDU: 80 0D 03 02 [12:25:18]Write to MH i2c: E2 08 00 A5 05 80 0D 03 02 00 00 00 00 25 [12:25:18]Write i2c OK [12:25:18]MH_I2C_Read... [12:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:18]Read from MH i2c: E2 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 0B 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 0B 00 A5 05 00 4F 4A 2D E6 19 FE 47 B1 90 00 E1 [12:25:18]RAPDU: 4F 4A 2D E6 19 FE 47 B1 90 00 [12:25:18]wFMCommunicate OK [12:25:18]SAM_PROTO_SignData done [12:25:18]FM_MakeSignedData done [12:25:18]CreateOFDProtocolMessage [12:25:18]wFMCommunicate request_size=4 [12:25:18]MH_SAM_APDU [12:25:18]CAPDU: 80 11 00 00 [12:25:18]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [12:25:18]Write i2c OK [12:25:18]MH_I2C_Read... [12:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:18]Read from MH i2c: E2 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 17 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7A [12:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:25:18]wFMCommunicate OK [12:25:18]CreateOFDProtocolMessage done [12:25:18]OFDSenderStorePacket 70596 [12:25:18]StoreOFDPacket docnum=70596 [12:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 15 B5 04 01 FE 47 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 86 1F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 89 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 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 00 00 00 00 00 00 39 04 06 00 89 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 2C FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C4 13 01 00 35 04 06 00 67 8A 32 6F BE B2 4F 4A 2D E6 19 FE 47 B1 [12:25:18]CheckFolder [12:25:18]dirname=/storage/ofd_packets [12:25:18]CheckFolder done [12:25:18]ProducePacketName [12:25:18]name=ofd_packets/00070596 [12:25:18]NVStorageSaveData ofd_packets/00070596 [12:25:18]File name is /storage/ofd_packets/00070596 [12:25:18]Write 298 bytes [12:25:18]NVStorageSaveData done [12:25:18]OFDSenderStorePacket done [12:25:18]KKMCreateOFDPacket done [12:25:18]NVStorageSaveData kkm_last_timestamp [12:25:18]File name is /storage/kkm_last_timestamp [12:25:18]Write 4 bytes [12:25:18]NVStorageSaveData done [12:25:18]ExternCall_PrintAddStr [12:25:18]wPrintStart [12:25:18]Write to MH i2c: 01 00 00 A7 05 AC [12:25:18]Write i2c OK [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: 01 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: 01 07 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: 01 07 00 A7 05 00 00 00 00 00 FF 0F C1 [12:25:18]RasterBufferAndPrint [12:25:18]line Счет N : (1)141037 [12:25:18]line ИÐÐ: 02508201610067 [12:25:18]line Контрольно-КаÑÑовый Чек [12:25:18]line ПРОДÐЖР[12:25:18]line ТРК (МРК, ГÐК) : 24 [12:25:18]line Товар: 2710194210 [12:25:18]line ДТ-К-5 [12:25:18]line 8.070 * 74.40 [12:25:18]line = 600.41 [12:25:18]line ÐДС 12% ÐСП 1% [12:25:18]line > о реализуемом товаре [12:25:18]line ИТОГО: 600.41 [12:25:18]line ÐСП 1% : 5.31 [12:25:18]line ÐДС 12% : 63.76 [12:25:18]line Ðаличными: 0.00 [12:25:18]line Безнал.: 600.41 [12:25:18]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:25:18]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:25:18]line СÐО: Общий режим [12:25:18]line Чек 28 12.08.2024 12:25 [12:25:18]line Смена: 465 ФФД: 1.0 [12:25:18]line ЗÐМ: 0300000140 [12:25:18]line РÐМ: 0000000000090913 [12:25:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:25:18]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [12:25:18]line ФМ: 0000000000874915 [12:25:18]line ФД: 70596 [12:25:18]line ФПД: 113843249331890 [12:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T122516&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70596&fm=113843249331890&tin=02508201610067®Number=0000000000090913&sum=60041 [12:25:18]OFD Sender: Processing packet 70596 [packets to send 67, broken 66] [12:25:18]ProducePacketName [12:25:18]name=ofd_packets/00070596 [12:25:18]OFD Sender: To server: ‡•öpG, [12:25:18]CommunicateWithHost lk.salyk.kg:30040 [12:25:18]ConnectInit lk.salyk.kg [12:25:18]written 0, free lines is 4095 [12:25:18]Connected sock=10 [12:25: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 39 31 35 0C 01 00 00 15 B5 04 01 FE 47 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 86 1F 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 89 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 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 00 00 00 00 00 00 39 04 06 00 89 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 2C FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C4 13 01 00 35 04 06 00 67 8A 32 6F BE B2 4F 4A 2D E6 19 FE 47 B1 [12:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 E5 73 47 00 BE 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 39 31 35 10 04 04 00 C4 13 01 00 F4 03 04 00 1A A6 B9 66 B6 04 01 00 00 DF D7 7D E1 E2 8A 5A 62 [12:25:18]CommunicateWithHost err = 0 [12:25:18]CheckOFDResponse [12:25:18]1017 (14) - 77093643461234 [12:25:18]1041 (16) - 0000000000874915 [12:25:18]1040 (4) - 70596 [12:25:18]1012 (4) - 12.08.2024 06:05 [12:25:18]1206 (1) - 0 [12:25:18]OFD Sender: Remove packet 70596 [12:25:18]ProducePacketName [12:25:18]name=ofd_packets/00070596 [12:25:18]NVStorageDeleteData [12:25:19]Write to MH i2c: 01 00 00 D1 05 D6 [12:25:19]Write i2c OK [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: 01 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: 01 07 00 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: 01 07 00 D1 05 00 00 00 00 00 05 0D EF [12:25:19]RasterBufferAndPrint [12:25:19]line [12:25:19]line [12:25:19]line [12:25:19]line [12:25:19]line [12:25:19]written 0, free lines is 3348 [12:25:19]MH_Cut [12:25:19]Write to MH i2c: D1 01 00 D8 05 01 AF [12:25:19]Write i2c OK [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: D1 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: D1 01 00 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: D1 01 00 D8 05 00 AE [12:25:19]Write to MH i2c: 01 00 00 D9 05 DE [12:25:19]Write i2c OK [12:25:19]MH_I2C_Read... [12:25:19]OFD Sender: No OFD packet to send [12:25:19]*** Cut start [12:25:19]*** Purtial cut [12:25:19]*** CUTSNS_PIN = 0 [12:25:19]*** Stage 1: CUTSNS_PIN = 1 [12:25:21]Read from MH i2c: 01 [12:25:21]MH_I2C_Read... [12:25:21]*** Stop cut motor [12:25:21]*** Cut end [12:25:21]Read from MH i2c: 01 07 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: 01 07 00 D9 05 00 00 00 00 00 FF 0F F3 [12:25:21]process_action close_receipt done [12:25:21]requested_data is exist [12:25:21]produce_requested_data [12:25:21]requested_item fm.sn is exist - process it [12:25:21]wFMCommunicate request_size=4 [12:25:21]MH_SAM_APDU [12:25:21]CAPDU: 80 11 00 00 [12:25:21]Write to MH i2c: E2 08 00 DA 05 80 11 00 00 00 00 00 00 59 [12:25:21]Write i2c OK [12:25:21]MH_I2C_Read... [12:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:21]Read from MH i2c: E2 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 17 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 17 00 DA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 AE [12:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:25:21]wFMCommunicate OK [12:25:21]requested_item fd.num is exist - process it [12:25:21]SAM_PROTO_GetFieldsCounters [12:25:21]wFMCommunicate request_size=4 [12:25:21]MH_SAM_APDU [12:25:21]CAPDU: 80 13 00 00 [12:25:21]Write to MH i2c: E2 08 00 DB 05 80 13 00 00 00 00 00 00 5C [12:25:21]Write i2c OK [12:25:21]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 62 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 62 00 DB 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C4 13 01 00 0E 04 04 00 D1 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 7A [12:25: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C4 13 01 00 0E 04 04 00 D1 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 [12:25:22]wFMCommunicate OK [12:25:22]SAM_PROTO_GetFieldsCounters done [12:25:22]requested_item shift.num is exist - process it [12:25:22]requested_item shift.opened is exist - process it [12:25:22]req_shift_opened [12:25:22]FM_GetShiftState [12:25:22]SAM_PROTO_GetShiftState [12:25:22]wFMCommunicate request_size=4 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 13 01 00 [12:25:22]Write to MH i2c: E2 08 00 DC 05 80 13 01 00 00 00 00 00 5E [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 0E 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 0E 00 DC 05 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 4B [12:25:22]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:25:22]wFMCommunicate OK [12:25:22]SAM_PROTO_GetShiftState done [12:25:22]FM_GetShiftState done [12:25:22]req_shift_opened done [12:25:22]requested_item shift.open_date is exist - process it [12:25:22]req_shift_open_date [12:25:22]req_shift_open_date done [12:25:22]produce_requested_data done [12:25:22]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70596,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [12:25:22]process_action_free close_receipt [12:25:22]json_value_free [12:25:22]json_value_free done [12:25:22]process_json_proto returns [12:25:22]Send response to host [12:25:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70596,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [12:25:22]free response buf [12:25:22]execute_script done [12:25:22]execute_script returns [12:25:22]free content buf [12:25:22]Sock 7.Close socket [12:25:22]Sock 7.Thread stoped [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]accept exits with 9 [12:28:24]New connection [12:28:24]New thread 3066842468 created [12:28:24]Thread 3066699108 joined [12:28:24]Waiting for new connection... [12:28:24] Sock 9.Parse request [12:28:24]Sock 9.Check first char [12:28:24]Sock 9.First char is OK [12:28:24]request: POST /json_proto HTTP/1.0 [12:28:24]Method: POST [12:28:24]URL: /json_proto [12:28:24]Method is POST - this is cgi request [12:28:24]url: /json_proto [12:28:24]query_string will be loaded in cgi processing [12:28:24]execute_cgi json_proto POST (null) [12:28:24]execute_cgi path=json_proto method=POST [12:28:24]POST find Content-Length [12:28:24]Host: 172.17.58.67:8080 [12:28:24]Content-Length: 808 [12:28:24]Content-Type: application/json [12:28:24] [12:28:24]POST finish read [12:28:24]Found Content-Length = 808 [12:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 43.600, "sum" : 2873.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2873.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:24]execute_script... [12:28:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 43.600, "sum" : 2873.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2873.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:24]POST & json_proto [12:28:24]process_json_proto [12:28:24]json parsed OK: [12:28:24]protocol is kg_v1.0 [12:28:24]action value=close_receipt [12:28:24]process_action close_receipt [12:28:24]cmd_close_receipt [12:28:24]MH_GetDate [12:28:24]Write to MH i2c: F0 00 00 DD 05 D1 [12:28:24]Write i2c OK [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: F0 [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: F0 09 00 [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: F0 09 00 DD 05 00 E8 FF B9 66 94 51 63 64 8C [12:28:24]GetLastDocTimeStamp 1723465516 [12:28:24]current date 1723465704 [12:28:24]FM_GetShiftState [12:28:24]SAM_PROTO_GetShiftState [12:28:24]wFMCommunicate request_size=4 [12:28:24]MH_SAM_APDU [12:28:24]CAPDU: 80 13 01 00 [12:28:24]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [12:28:24]Write i2c OK [12:28:24]MH_I2C_Read... [12:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:24]Read from MH i2c: E2 [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: E2 0E 00 [12:28:24]MH_I2C_Read... [12:28:24]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 4D [12:28:24]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:28:24]wFMCommunicate OK [12:28:24]SAM_PROTO_GetShiftState done [12:28:24]FM_GetShiftState done [12:28:24]opened in 1723423336 [12:28:24]opened+sec_in_day 1723509736 [12:28:24]quantity*price = 287324 [12:28:24]sum+1 = 287325 [12:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2873.24 ÐСП 1% : 25.43 ÐДС 12% : 305.12 Ðаличными: 0.00 Безнал.: 2873.24 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 29 12.08.2024 12:28 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70597 ФПД: 11095055686385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T122824&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70597&fm=11095055686385&tin=02508201610067®Number=0000000000090913&sum=287324 [12:28:25]StoreToDocumentArchive [12:28:25]shift 465 fd 70597 [12:28:25]save to /storage/0465/doc_00070597 [12:28:25]save last doc name /storage/0465/doc_00070597 to /storage/kkm_last_doc_name [12:28:25]save OK [12:28:25]Clear old archive folders... [12:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:25]tlvbuf is B6EBFE60 [12:28:25]SAM_PROTO_ClearQueue [12:28:25]wFMCommunicate request_size=4 [12:28:25]MH_SAM_APDU [12:28:25]CAPDU: 80 09 00 00 [12:28:25]Write to MH i2c: E2 08 00 EB 05 80 09 00 00 00 00 00 00 62 [12:28:25]Write i2c OK [12:28:25]MH_I2C_Read... [12:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:25]Read from MH i2c: E2 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 03 00 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [12:28:25]RAPDU: 90 00 [12:28:25]wFMCommunicate OK [12:28:25]SAM_PROTO_ClearQueue done [12:28:25]KKMCreateOFDPacket [12:28:25]OFDProtocolAddRootSTLVToBuf [12:28:25]FM_MakeSignedData [12:28:25]FM_MakeSignedData [12:28:25]SAM_PROTO_SignData [12:28:25]wFMCommunicate request_size=4 [12:28:25]MH_SAM_APDU [12:28:25]CAPDU: 80 0D 01 02 [12:28:25]Write to MH i2c: E2 08 00 EC 05 80 0D 01 02 00 00 00 00 6A [12:28:25]Write i2c OK [12:28:25]MH_I2C_Read... [12:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:25]Read from MH i2c: E2 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 03 00 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [12:28:25]RAPDU: 90 00 [12:28:25]wFMCommunicate OK [12:28:25]wFMCommunicate request_size=255 [12:28:25]MH_SAM_APDU [12:28: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 50 AA 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5C 62 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 62 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 77 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 62 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E8 FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C5 13 01 00 35 04 06 00 0A [12:28:25]Write to MH i2c: E2 02 01 ED 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 50 AA 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5C 62 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 62 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 77 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 62 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E8 FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C5 13 01 00 35 04 06 00 0A 00 00 01 [12:28:25]Write i2c OK [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 [12:28:25]MH_I2C_Read... [12:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:25]Read from MH i2c: E2 03 00 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [12:28:25]RAPDU: 90 00 [12:28:25]wFMCommunicate OK [12:28:25]wFMCommunicate request_size=10 [12:28:25]MH_SAM_APDU [12:28:25]CAPDU: 80 0D 02 02 05 17 44 DA 5A F1 [12:28:25]Write to MH i2c: E2 0D 00 EE 05 80 0D 02 02 05 00 17 44 DA 5A F1 00 00 F7 [12:28:25]Write i2c OK [12:28:25]MH_I2C_Read... [12:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:25]Read from MH i2c: E2 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 03 00 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [12:28:25]RAPDU: 90 00 [12:28:25]wFMCommunicate OK [12:28:25]wFMCommunicate request_size=4 [12:28:25]MH_SAM_APDU [12:28:25]CAPDU: 80 0D 03 02 [12:28:25]Write to MH i2c: E2 08 00 EF 05 80 0D 03 02 00 00 00 00 6F [12:28:25]Write i2c OK [12:28:25]MH_I2C_Read... [12:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:25]Read from MH i2c: E2 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 0B 00 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 0B 00 EF 05 00 A9 B1 C4 D8 12 A9 A3 E2 90 00 A6 [12:28:25]RAPDU: A9 B1 C4 D8 12 A9 A3 E2 90 00 [12:28:25]wFMCommunicate OK [12:28:25]SAM_PROTO_SignData done [12:28:25]FM_MakeSignedData done [12:28:25]CreateOFDProtocolMessage [12:28:25]wFMCommunicate request_size=4 [12:28:25]MH_SAM_APDU [12:28:25]CAPDU: 80 11 00 00 [12:28:25]Write to MH i2c: E2 08 00 F0 05 80 11 00 00 00 00 00 00 6F [12:28:25]Write i2c OK [12:28:25]MH_I2C_Read... [12:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:25]Read from MH i2c: E2 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 17 00 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: E2 17 00 F0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C4 [12:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:28:25]wFMCommunicate OK [12:28:25]CreateOFDProtocolMessage done [12:28:25]OFDSenderStorePacket 70597 [12:28:25]StoreOFDPacket docnum=70597 [12:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 D5 2F 07 01 2E 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 AA 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5C 62 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 62 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 77 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 62 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E8 FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C5 13 01 00 35 04 06 00 0A 17 44 DA 5A F1 A9 B1 C4 D8 12 A9 A3 E2 [12:28:25]CheckFolder [12:28:25]dirname=/storage/ofd_packets [12:28:25]CheckFolder done [12:28:25]ProducePacketName [12:28:25]name=ofd_packets/00070597 [12:28:25]NVStorageSaveData ofd_packets/00070597 [12:28:25]File name is /storage/ofd_packets/00070597 [12:28:25]Write 301 bytes [12:28:25]NVStorageSaveData done [12:28:25]OFDSenderStorePacket done [12:28:25]KKMCreateOFDPacket done [12:28:25]NVStorageSaveData kkm_last_timestamp [12:28:25]File name is /storage/kkm_last_timestamp [12:28:25]Write 4 bytes [12:28:25]NVStorageSaveData done [12:28:25]ExternCall_PrintAddStr [12:28:25]wPrintStart [12:28:25]Write to MH i2c: 01 00 00 F1 05 F6 [12:28:25]Write i2c OK [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: 01 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: 01 07 00 [12:28:25]MH_I2C_Read... [12:28:25]Read from MH i2c: 01 07 00 F1 05 00 00 00 00 00 FF 0F 0B [12:28:25]RasterBufferAndPrint [12:28:25]line Счет N : (1)141036 [12:28:25]line ИÐÐ: 02508201610067 [12:28:25]line Контрольно-КаÑÑовый Чек [12:28:25]line ПРОДÐЖР[12:28:25]line ТРК (МРК, ГÐК) : 31 [12:28:25]line Товар: 2710124130 [12:28:25]line Ðи-92-К-5 [12:28:25]line 43.600 * 65.90 [12:28:25]line = 2873.24 [12:28:25]line ÐДС 12% ÐСП 1% [12:28:25]line > о реализуемом товаре [12:28:25]line ИТОГО: 2873.24 [12:28:25]line ÐСП 1% : 25.43 [12:28:25]line ÐДС 12% : 305.12 [12:28:25]line Ðаличными: 0.00 [12:28:25]line Безнал.: 2873.24 [12:28:25]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:28:25]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:28:25]line СÐО: Общий режим [12:28:25]line Чек 29 12.08.2024 12:28 [12:28:25]line Смена: 465 ФФД: 1.0 [12:28:25]line ЗÐМ: 0300000140 [12:28:25]line РÐМ: 0000000000090913 [12:28:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:28:25]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [12:28:25]line ФМ: 0000000000874915 [12:28:25]line ФД: 70597 [12:28:25]line ФПД: 11095055686385 [12:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T122824&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70597&fm=11095055686385&tin=02508201610067®Number=0000000000090913&sum=287324 [12:28:25]written 0, free lines is 4095 [12:28:25]OFD Sender: Processing packet 70597 [packets to send 67, broken 66] [12:28:25]ProducePacketName [12:28:25]name=ofd_packets/00070597 [12:28:25]OFD Sender: To server: ‡•öpG, [12:28:25]CommunicateWithHost lk.salyk.kg:30040 [12:28:25]ConnectInit lk.salyk.kg [12:28:25]Connected sock=10 [12:28: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 39 31 35 0F 01 00 00 D5 2F 07 01 2E 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 AA 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5C 62 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 62 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 77 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 62 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 E8 FF B9 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C5 13 01 00 35 04 06 00 0A 17 44 DA 5A F1 A9 B1 C4 D8 12 A9 A3 E2 [12:28:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 97 49 47 00 EA E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C5 13 01 00 F4 03 04 00 D5 A6 B9 66 B6 04 01 00 00 C1 A5 59 45 E6 93 A2 10 [12:28:26]CommunicateWithHost err = 0 [12:28:26]CheckOFDResponse [12:28:26]1017 (14) - 77093643461234 [12:28:26]1041 (16) - 0000000000874915 [12:28:26]1040 (4) - 70597 [12:28:26]1012 (4) - 12.08.2024 06:08 [12:28:26]1206 (1) - 0 [12:28:26]OFD Sender: Remove packet 70597 [12:28:26]ProducePacketName [12:28:26]name=ofd_packets/00070597 [12:28:26]NVStorageDeleteData [12:28:26]Write to MH i2c: 01 00 00 1B 06 21 [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: 01 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: 01 07 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: 01 07 00 1B 06 00 00 00 00 00 0F 0D 44 [12:28:26]RasterBufferAndPrint [12:28:26]line [12:28:26]line [12:28:26]line [12:28:26]line [12:28:26]line [12:28:26]written 0, free lines is 3350 [12:28:26]MH_Cut [12:28:26]Write to MH i2c: D1 01 00 22 06 01 FA [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: D1 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: D1 01 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: D1 01 00 22 06 00 F9 [12:28:26]Write to MH i2c: 01 00 00 23 06 29 [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]OFD Sender: No OFD packet to send [12:28:26]*** Cut start [12:28:26]*** Purtial cut [12:28:26]*** Stage 1: CUTSNS_PIN = 1 [12:28:27]Read from MH i2c: 01 [12:28:27]MH_I2C_Read... [12:28:27]*** Stop cut motor [12:28:27]*** Cut end [12:28:27]Read from MH i2c: 01 07 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 FF 0F 3E [12:28:27]process_action close_receipt done [12:28:27]requested_data is exist [12:28:27]produce_requested_data [12:28:27]requested_item fm.sn is exist - process it [12:28:27]wFMCommunicate request_size=4 [12:28:27]MH_SAM_APDU [12:28:27]CAPDU: 80 11 00 00 [12:28:27]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:27]Read from MH i2c: E2 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 17 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 17 00 24 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F9 [12:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:28:27]wFMCommunicate OK [12:28:27]requested_item fd.num is exist - process it [12:28:27]SAM_PROTO_GetFieldsCounters [12:28:27]wFMCommunicate request_size=4 [12:28:27]MH_SAM_APDU [12:28:27]CAPDU: 80 13 00 00 [12:28:27]Write to MH i2c: E2 08 00 25 06 80 13 00 00 00 00 00 00 A7 [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:27]Read from MH i2c: E2 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 62 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 62 00 25 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C5 13 01 00 0E 04 04 00 D1 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 C9 [12:28: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C5 13 01 00 0E 04 04 00 D1 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 [12:28:27]wFMCommunicate OK [12:28:27]SAM_PROTO_GetFieldsCounters done [12:28:27]requested_item shift.num is exist - process it [12:28:27]requested_item shift.opened is exist - process it [12:28:27]req_shift_opened [12:28:27]FM_GetShiftState [12:28:27]SAM_PROTO_GetShiftState [12:28:27]wFMCommunicate request_size=4 [12:28:27]MH_SAM_APDU [12:28:27]CAPDU: 80 13 01 00 [12:28:27]Write to MH i2c: E2 08 00 26 06 80 13 01 00 00 00 00 00 A9 [12:28:27]Write i2c OK [12:28:27]MH_I2C_Read... [12:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:27]Read from MH i2c: E2 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 0E 00 [12:28:27]MH_I2C_Read... [12:28:27]Read from MH i2c: E2 0E 00 26 06 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 96 [12:28:27]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:28:27]wFMCommunicate OK [12:28:27]SAM_PROTO_GetShiftState done [12:28:27]FM_GetShiftState done [12:28:27]req_shift_opened done [12:28:27]requested_item shift.open_date is exist - process it [12:28:27]req_shift_open_date [12:28:27]req_shift_open_date done [12:28:27]produce_requested_data done [12:28:27]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70597,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [12:28:27]process_action_free close_receipt [12:28:27]json_value_free [12:28:27]json_value_free done [12:28:27]process_json_proto returns [12:28:27]Send response to host [12:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70597,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [12:28:27]free response buf [12:28:27]execute_script done [12:28:27]execute_script returns [12:28:27]free content buf [12:28:27]Sock 9.Close socket [12:28:27]Sock 9.Thread stoped [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:45]accept exits with 7 [12:40:45]New connection [12:40:45]New thread 3066699108 created [12:40:45]Thread 3066842468 joined [12:40:45]Waiting for new connection... [12:40:45] Sock 7.Parse request [12:40:45]Sock 7.Check first char [12:40:45]Sock 7.First char is OK [12:40:45]request: POST /json_proto HTTP/1.0 [12:40:45]Method: POST [12:40:45]URL: /json_proto [12:40:45]Method is POST - this is cgi request [12:40:45]url: /json_proto [12:40:45]query_string will be loaded in cgi processing [12:40:45]execute_cgi json_proto POST (null) [12:40:45]execute_cgi path=json_proto method=POST [12:40:45]POST find Content-Length [12:40:45]Host: 172.17.58.67:8080 [12:40:45]Content-Length: 805 [12:40:45]Content-Type: application/json [12:40:45] [12:40:45]POST finish read [12:40:45]Found Content-Length = 805 [12:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 91.400, "sum" : 6800.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6800.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:45]execute_script... [12: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)141039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 91.400, "sum" : 6800.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 6800.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:45]POST & json_proto [12:40:45]process_json_proto [12:40:45]json parsed OK: [12:40:45]protocol is kg_v1.0 [12:40:45]action value=close_receipt [12:40:45]process_action close_receipt [12:40:45]cmd_close_receipt [12:40:45]MH_GetDate [12:40:45]Write to MH i2c: F0 00 00 27 06 1C [12:40:45]Write i2c OK [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: F0 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: F0 09 00 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: F0 09 00 27 06 00 CE 02 BA 66 94 51 63 64 C1 [12:40:45]GetLastDocTimeStamp 1723465704 [12:40:45]current date 1723466446 [12:40:45]FM_GetShiftState [12:40:45]SAM_PROTO_GetShiftState [12:40:45]wFMCommunicate request_size=4 [12:40:45]MH_SAM_APDU [12:40:45]CAPDU: 80 13 01 00 [12:40:45]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [12:40:45]Write i2c OK [12:40:45]MH_I2C_Read... [12:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:45]Read from MH i2c: E2 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 0E 00 [12:40:45]MH_I2C_Read... [12:40:45]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 98 [12:40:45]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:40:45]wFMCommunicate OK [12:40:45]SAM_PROTO_GetShiftState done [12:40:45]FM_GetShiftState done [12:40:45]opened in 1723423336 [12:40:45]opened+sec_in_day 1723509736 [12:40:45]quantity*price = 680016 [12:40:45]sum+1 = 680017 [12:40:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6800.16 ÐСП 1% : 60.18 ÐДС 12% : 722.14 Ðаличными: 0.00 Безнал.: 6800.16 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 30 12.08.2024 12:40 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70598 ФПД: 120423892020029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T124046&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70598&fm=120423892020029&tin=02508201610067®Number=0000000000090913&sum=680016 [12:40:46]StoreToDocumentArchive [12:40:46]shift 465 fd 70598 [12:40:46]save to /storage/0465/doc_00070598 [12:40:46]save last doc name /storage/0465/doc_00070598 to /storage/kkm_last_doc_name [12:40:46]save OK [12:40:46]Clear old archive folders... [12:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:40:46]tlvbuf is B6EBF780 [12:40:46]SAM_PROTO_ClearQueue [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 09 00 00 [12:40:46]Write to MH i2c: E2 08 00 35 06 80 09 00 00 00 00 00 00 AD [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [12:40:46]RAPDU: 90 00 [12:40:46]wFMCommunicate OK [12:40:46]SAM_PROTO_ClearQueue done [12:40:46]KKMCreateOFDPacket [12:40:46]OFDProtocolAddRootSTLVToBuf [12:40:46]FM_MakeSignedData [12:40:46]FM_MakeSignedData [12:40:46]SAM_PROTO_SignData [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 0D 01 02 [12:40:46]Write to MH i2c: E2 08 00 36 06 80 0D 01 02 00 00 00 00 B5 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [12:40:46]RAPDU: 90 00 [12:40:46]wFMCommunicate OK [12:40:46]wFMCommunicate request_size=255 [12:40:46]MH_SAM_APDU [12: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 08 65 01 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 50 60 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 60 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 60 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 CE 02 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C6 13 01 00 35 04 06 00 6D 86 5F 4E [12:40:46]Write to MH i2c: E2 02 01 37 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 65 01 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 50 60 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 60 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 60 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 CE 02 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C6 13 01 00 35 04 06 00 6D 86 5F 4E 00 00 FE [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [12:40:47]RAPDU: 90 00 [12:40:47]wFMCommunicate OK [12:40:47]wFMCommunicate request_size=7 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 0D 02 02 02 6B 3D [12:40:47]Write to MH i2c: E2 0A 00 38 06 80 0D 02 02 02 00 6B 3D 00 00 64 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [12:40:47]RAPDU: 90 00 [12:40:47]wFMCommunicate OK [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 0D 03 02 [12:40:47]Write to MH i2c: E2 08 00 39 06 80 0D 03 02 00 00 00 00 BA [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 0B 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 0B 00 39 06 00 90 81 38 A1 B0 B5 EA 50 90 00 44 [12:40:47]RAPDU: 90 81 38 A1 B0 B5 EA 50 90 00 [12:40:47]wFMCommunicate OK [12:40:47]SAM_PROTO_SignData done [12:40:47]FM_MakeSignedData done [12:40:47]CreateOFDProtocolMessage [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 11 00 00 [12:40:47]Write to MH i2c: E2 08 00 3A 06 80 11 00 00 00 00 00 00 BA [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 17 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 17 00 3A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0F [12:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:40:47]wFMCommunicate OK [12:40:47]CreateOFDProtocolMessage done [12:40:47]OFDSenderStorePacket 70598 [12:40:47]StoreOFDPacket docnum=70598 [12:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 E0 CD 04 01 9F 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 08 65 01 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 50 60 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 60 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 60 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 CE 02 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C6 13 01 00 35 04 06 00 6D 86 5F 4E 6B 3D 90 81 38 A1 B0 B5 EA 50 [12:40:47]CheckFolder [12:40:47]dirname=/storage/ofd_packets [12:40:47]CheckFolder done [12:40:47]ProducePacketName [12:40:47]name=ofd_packets/00070598 [12:40:47]NVStorageSaveData ofd_packets/00070598 [12:40:47]File name is /storage/ofd_packets/00070598 [12:40:47]Write 298 bytes [12:40:47]NVStorageSaveData done [12:40:47]OFDSenderStorePacket done [12:40:47]KKMCreateOFDPacket done [12:40:47]NVStorageSaveData kkm_last_timestamp [12:40:47]File name is /storage/kkm_last_timestamp [12:40:47]Write 4 bytes [12:40:47]NVStorageSaveData done [12:40:47]ExternCall_PrintAddStr [12:40:47]wPrintStart [12:40:47]Write to MH i2c: 01 00 00 3B 06 41 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 07 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [12:40:47]RasterBufferAndPrint [12:40:47]line Счет N : (1)141039 [12:40:47]line ИÐÐ: 02508201610067 [12:40:47]line Контрольно-КаÑÑовый Чек [12:40:47]line ПРОДÐЖР[12:40:47]line ТРК (МРК, ГÐК) : 34 [12:40:47]line Товар: 2710194210 [12:40:47]line ДТ-К-5 [12:40:47]line 91.400 * 74.40 [12:40:47]line = 6800.16 [12:40:47]line ÐДС 12% ÐСП 1% [12:40:47]line > о реализуемом товаре [12:40:47]line ИТОГО: 6800.16 [12:40:47]line ÐСП 1% : 60.18 [12:40:47]line ÐДС 12% : 722.14 [12:40:47]line Ðаличными: 0.00 [12:40:47]line Безнал.: 6800.16 [12:40:47]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:40:47]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:40:47]line СÐО: Общий режим [12:40:47]line Чек 30 12.08.2024 12:40 [12:40:47]line Смена: 465 ФФД: 1.0 [12:40:47]line ЗÐМ: 0300000140 [12:40:47]line РÐМ: 0000000000090913 [12:40:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:40:47]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [12:40:47]line ФМ: 0000000000874915 [12:40:47]line ФД: 70598 [12:40:47]line ФПД: 120423892020029 [12:40:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T124046&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70598&fm=120423892020029&tin=02508201610067®Number=0000000000090913&sum=680016 [12:40:47]OFD Sender: Processing packet 70598 [packets to send 67, broken 66] [12:40:47]ProducePacketName [12:40:47]name=ofd_packets/00070598 [12:40:47]OFD Sender: To server: ‡•öpG, [12:40:47]CommunicateWithHost lk.salyk.kg:30040 [12:40:47]ConnectInit lk.salyk.kg [12:40:47]written 0, free lines is 4095 [12:40:47]Connected sock=10 [12: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 39 31 35 0C 01 00 00 E0 CD 04 01 9F 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 08 65 01 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 50 60 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 60 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 60 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 CE 02 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C6 13 01 00 35 04 06 00 6D 86 5F 4E 6B 3D 90 81 38 A1 B0 B5 EA 50 [12: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 39 31 35 4F 00 00 00 91 73 47 00 7B 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C6 13 01 00 F4 03 04 00 BB A9 B9 66 B6 04 01 00 00 59 99 D2 5A 4A 9D 56 D9 [12:40:47]CommunicateWithHost err = 0 [12:40:47]CheckOFDResponse [12:40:47]1017 (14) - 77093643461234 [12:40:47]1041 (16) - 0000000000874915 [12:40:47]1040 (4) - 70598 [12:40:47]1012 (4) - 12.08.2024 06:20 [12:40:47]1206 (1) - 0 [12:40:47]OFD Sender: Remove packet 70598 [12:40:47]ProducePacketName [12:40:47]name=ofd_packets/00070598 [12:40:47]NVStorageDeleteData [12:40:48]Write to MH i2c: 01 00 00 65 06 6B [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 07 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 07 00 65 06 00 00 00 00 00 F1 0C 6F [12:40:48]RasterBufferAndPrint [12:40:48]line [12:40:48]line [12:40:48]line [12:40:48]line [12:40:48]line [12:40:48]written 0, free lines is 3319 [12:40:48]MH_Cut [12:40:48]Write to MH i2c: D1 01 00 6C 06 01 44 [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: D1 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: D1 01 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: D1 01 00 6C 06 00 43 [12:40:48]Write to MH i2c: 01 00 00 6D 06 73 [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]OFD Sender: No OFD packet to send [12:40:48]*** Cut start [12:40:48]*** Purtial cut [12:40:48]*** CUTSNS_PIN = 0 [12:40:48]*** Stage 1: CUTSNS_PIN = 1 [12:40:50]Read from MH i2c: 01 [12:40:50]MH_I2C_Read... [12:40:50]*** Stop cut motor [12:40:50]*** Cut end [12:40:50]Read from MH i2c: 01 07 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 FF 0F 88 [12:40:50]process_action close_receipt done [12:40:50]requested_data is exist [12:40:50]produce_requested_data [12:40:50]requested_item fm.sn is exist - process it [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 11 00 00 [12:40:50]Write to MH i2c: E2 08 00 6E 06 80 11 00 00 00 00 00 00 EE [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 17 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 17 00 6E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 43 [12:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:40:50]wFMCommunicate OK [12:40:50]requested_item fd.num is exist - process it [12:40:50]SAM_PROTO_GetFieldsCounters [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 13 00 00 [12:40:50]Write to MH i2c: E2 08 00 6F 06 80 13 00 00 00 00 00 00 F1 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 62 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 62 00 6F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C6 13 01 00 0E 04 04 00 D1 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 17 [12:40: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C6 13 01 00 0E 04 04 00 D1 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 [12:40:50]wFMCommunicate OK [12:40:50]SAM_PROTO_GetFieldsCounters done [12:40:50]requested_item shift.num is exist - process it [12:40:50]requested_item shift.opened is exist - process it [12:40:50]req_shift_opened [12:40:50]FM_GetShiftState [12:40:50]SAM_PROTO_GetShiftState [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 13 01 00 [12:40:50]Write to MH i2c: E2 08 00 70 06 80 13 01 00 00 00 00 00 F3 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:51]Read from MH i2c: E2 [12:40:51]MH_I2C_Read... [12:40:51]Read from MH i2c: E2 0E 00 [12:40:51]MH_I2C_Read... [12:40:51]Read from MH i2c: E2 0E 00 70 06 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 E0 [12:40:51]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:40:51]wFMCommunicate OK [12:40:51]SAM_PROTO_GetShiftState done [12:40:51]FM_GetShiftState done [12:40:51]req_shift_opened done [12:40:51]requested_item shift.open_date is exist - process it [12:40:51]req_shift_open_date [12:40:51]req_shift_open_date done [12:40:51]produce_requested_data done [12:40:51]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70598,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [12:40:51]process_action_free close_receipt [12:40:51]json_value_free [12:40:51]json_value_free done [12:40:51]process_json_proto returns [12:40:51]Send response to host [12:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70598,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [12:40:51]free response buf [12:40:51]execute_script done [12:40:51]execute_script returns [12:40:51]free content buf [12:40:51]Sock 7.Close socket [12:40:51]Sock 7.Thread stoped [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:23]OFD Sender: No OFD packet to send [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:42]accept exits with 9 [12:41:42]New connection [12:41:42]New thread 3066842468 created [12:41:42]Thread 3066699108 joined [12:41:42]Waiting for new connection... [12:41:42] Sock 9.Parse request [12:41:42]Sock 9.Check first char [12:41:42]Sock 9.First char is OK [12:41:42]request: POST /json_proto HTTP/1.0 [12:41:42]Method: POST [12:41:42]URL: /json_proto [12:41:42]Method is POST - this is cgi request [12:41:42]url: /json_proto [12:41:42]query_string will be loaded in cgi processing [12:41:42]execute_cgi json_proto POST (null) [12:41:42]execute_cgi path=json_proto method=POST [12:41:42]POST find Content-Length [12:41:42]Host: 172.17.58.67:8080 [12:41:42]Content-Length: 817 [12:41:42]Content-Type: application/json [12:41:42] [12:41:42]POST finish read [12:41:42]Found Content-Length = 817 [12:41:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.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" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:42]execute_script... [12:41: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)141040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.000, "sum" : 659.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" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:42]POST & json_proto [12:41:42]process_json_proto [12:41:42]json parsed OK: [12:41:42]protocol is kg_v1.0 [12:41:42]action value=close_receipt [12:41:42]process_action close_receipt [12:41:42]cmd_close_receipt [12:41:42]MH_GetDate [12:41:42]Write to MH i2c: F0 00 00 71 06 66 [12:41:42]Write i2c OK [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: F0 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: F0 09 00 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: F0 09 00 71 06 00 06 03 BA 66 94 51 63 64 44 [12:41:42]GetLastDocTimeStamp 1723466446 [12:41:42]current date 1723466502 [12:41:42]FM_GetShiftState [12:41:42]SAM_PROTO_GetShiftState [12:41:42]wFMCommunicate request_size=4 [12:41:42]MH_SAM_APDU [12:41:42]CAPDU: 80 13 01 00 [12:41:42]Write to MH i2c: E2 08 00 72 06 80 13 01 00 00 00 00 00 F5 [12:41:42]Write i2c OK [12:41:42]MH_I2C_Read... [12:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:42]Read from MH i2c: E2 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: E2 0E 00 [12:41:42]MH_I2C_Read... [12:41:42]Read from MH i2c: E2 0E 00 72 06 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 E2 [12:41:42]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:41:42]wFMCommunicate OK [12:41:42]SAM_PROTO_GetShiftState done [12:41:42]FM_GetShiftState done [12:41:42]opened in 1723423336 [12:41:42]opened+sec_in_day 1723509736 [12:41:42]quantity*price = 65900 [12:41:42]sum+1 = 65901 [12:41:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 659.00 ÐСП 1% : 5.83 ÐДС 12% : 69.98 Ðаличными: 0.00 Безнал.: 659.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 31 12.08.2024 12:41 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70599 ФПД: 249898917856022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T124143&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70599&fm=249898917856022&tin=02508201610067®Number=0000000000090913&sum=65900 [12:41:43]StoreToDocumentArchive [12:41:43]shift 465 fd 70599 [12:41:43]save to /storage/0465/doc_00070599 [12:41:43]save last doc name /storage/0465/doc_00070599 to /storage/kkm_last_doc_name [12:41:43]save OK [12:41:43]Clear old archive folders... [12:41:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:43]tlvbuf is 01096C80 [12:41:43]SAM_PROTO_ClearQueue [12:41:43]wFMCommunicate request_size=4 [12:41:43]MH_SAM_APDU [12:41:43]CAPDU: 80 09 00 00 [12:41:43]Write to MH i2c: E2 08 00 7F 06 80 09 00 00 00 00 00 00 F7 [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:43]Read from MH i2c: E2 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [12:41:43]RAPDU: 90 00 [12:41:43]wFMCommunicate OK [12:41:43]SAM_PROTO_ClearQueue done [12:41:43]KKMCreateOFDPacket [12:41:43]OFDProtocolAddRootSTLVToBuf [12:41:43]FM_MakeSignedData [12:41:43]FM_MakeSignedData [12:41:43]SAM_PROTO_SignData [12:41:43]wFMCommunicate request_size=4 [12:41:43]MH_SAM_APDU [12:41:43]CAPDU: 80 0D 01 02 [12:41:43]Write to MH i2c: E2 08 00 80 06 80 0D 01 02 00 00 00 00 FF [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:43]Read from MH i2c: E2 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 [12:41:43]MH_I2C_Read... [12:41:43]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [12:41:43]RAPDU: 90 00 [12:41:43]wFMCommunicate OK [12:41:43]wFMCommunicate request_size=255 [12:41:43]MH_SAM_APDU [12:41: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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 07 03 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C7 13 01 00 35 04 06 00 E3 [12:41:43]Write to MH i2c: E2 02 01 81 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 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 07 03 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C7 13 01 00 35 04 06 00 E3 00 00 F3 [12:41:43]Write i2c OK [12:41:43]MH_I2C_Read... [12:41:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:44]Read from MH i2c: E2 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 03 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [12:41:44]RAPDU: 90 00 [12:41:44]wFMCommunicate OK [12:41:44]wFMCommunicate request_size=10 [12:41:44]MH_SAM_APDU [12:41:44]CAPDU: 80 0D 02 02 05 48 20 3A 83 16 [12:41:44]Write to MH i2c: E2 0D 00 82 06 80 0D 02 02 05 00 48 20 3A 83 16 00 00 47 [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:44]Read from MH i2c: E2 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 03 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [12:41:44]RAPDU: 90 00 [12:41:44]wFMCommunicate OK [12:41:44]wFMCommunicate request_size=4 [12:41:44]MH_SAM_APDU [12:41:44]CAPDU: 80 0D 03 02 [12:41:44]Write to MH i2c: E2 08 00 83 06 80 0D 03 02 00 00 00 00 04 [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:44]Read from MH i2c: E2 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 0B 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 0B 00 83 06 00 D6 43 00 7A 1A AB 94 F3 90 00 E4 [12:41:44]RAPDU: D6 43 00 7A 1A AB 94 F3 90 00 [12:41:44]wFMCommunicate OK [12:41:44]SAM_PROTO_SignData done [12:41:44]FM_MakeSignedData done [12:41:44]CreateOFDProtocolMessage [12:41:44]wFMCommunicate request_size=4 [12:41:44]MH_SAM_APDU [12:41:44]CAPDU: 80 11 00 00 [12:41:44]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:44]Read from MH i2c: E2 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 17 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 59 [12:41:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:41:44]wFMCommunicate OK [12:41:44]CreateOFDProtocolMessage done [12:41:44]OFDSenderStorePacket 70599 [12:41:44]StoreOFDPacket docnum=70599 [12:41:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 0B F1 07 01 50 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 07 03 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C7 13 01 00 35 04 06 00 E3 48 20 3A 83 16 D6 43 00 7A 1A AB 94 F3 [12:41:44]CheckFolder [12:41:44]dirname=/storage/ofd_packets [12:41:44]CheckFolder done [12:41:44]ProducePacketName [12:41:44]name=ofd_packets/00070599 [12:41:44]NVStorageSaveData ofd_packets/00070599 [12:41:44]File name is /storage/ofd_packets/00070599 [12:41:44]Write 301 bytes [12:41:44]NVStorageSaveData done [12:41:44]OFDSenderStorePacket done [12:41:44]KKMCreateOFDPacket done [12:41:44]NVStorageSaveData kkm_last_timestamp [12:41:44]File name is /storage/kkm_last_timestamp [12:41:44]Write 4 bytes [12:41:44]NVStorageSaveData done [12:41:44]ExternCall_PrintAddStr [12:41:44]wPrintStart [12:41:44]Write to MH i2c: 01 00 00 85 06 8B [12:41:44]Write i2c OK [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: 01 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: 01 07 00 [12:41:44]MH_I2C_Read... [12:41:44]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [12:41:44]RasterBufferAndPrint [12:41:44]line Счет N : (1)141040 [12:41:44]line ИÐÐ: 02508201610067 [12:41:44]line Контрольно-КаÑÑовый Чек [12:41:44]line ПРОДÐЖР[12:41:44]line ТРК (МРК, ГÐК) : 41 [12:41:44]line Товар: 2710124130 [12:41:44]line Ðи-92-К-5 [12:41:44]line 10.000 * 65.90 [12:41:44]line = 659.00 [12:41:44]line ÐДС 12% ÐСП 1% [12:41:44]line > о реализуемом товаре [12:41:44]line ИТОГО: 659.00 [12:41:44]line ÐСП 1% : 5.83 [12:41:44]line ÐДС 12% : 69.98 [12:41:44]line Ðаличными: 0.00 [12:41:44]line Безнал.: 659.00 [12:41:44]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [12:41:44]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [12:41:44]line СÐО: Общий режим [12:41:44]line Чек 31 12.08.2024 12:41 [12:41:44]line Смена: 465 ФФД: 1.0 [12:41:44]line ЗÐМ: 0300000140 [12:41:44]line РÐМ: 0000000000090913 [12:41:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:41:44]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [12:41:44]line ФМ: 0000000000874915 [12:41:44]line ФД: 70599 [12:41:44]line ФПД: 249898917856022 [12:41:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T124143&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70599&fm=249898917856022&tin=02508201610067®Number=0000000000090913&sum=65900 [12:41:44]written 0, free lines is 4095 [12:41:44]OFD Sender: Processing packet 70599 [packets to send 67, broken 66] [12:41:44]ProducePacketName [12:41:44]name=ofd_packets/00070599 [12:41:44]OFD Sender: To server: ‡•öpG, [12:41:44]CommunicateWithHost lk.salyk.kg:30040 [12:41:44]ConnectInit lk.salyk.kg [12:41:44]Connected sock=10 [12:41: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 39 31 35 0F 01 00 00 0B F1 07 01 50 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 6C 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 07 03 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C7 13 01 00 35 04 06 00 E3 48 20 3A 83 16 D6 43 00 7A 1A AB 94 F3 [12:41:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 BE 93 47 00 7A 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 39 31 35 10 04 04 00 C7 13 01 00 F4 03 04 00 F4 A9 B9 66 B6 04 01 00 00 26 90 70 7B DE 4A 9B 71 [12:41:44]CommunicateWithHost err = 0 [12:41:44]CheckOFDResponse [12:41:44]1017 (14) - 77093643461234 [12:41:44]1041 (16) - 0000000000874915 [12:41:44]1040 (4) - 70599 [12:41:44]1012 (4) - 12.08.2024 06:21 [12:41:44]1206 (1) - 0 [12:41:44]OFD Sender: Remove packet 70599 [12:41:44]ProducePacketName [12:41:44]name=ofd_packets/00070599 [12:41:44]NVStorageDeleteData [12:41:45]Write to MH i2c: 01 00 00 AF 06 B5 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 07 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 07 00 AF 06 00 00 00 00 00 F9 0C C1 [12:41:45]RasterBufferAndPrint [12:41:45]line [12:41:45]line [12:41:45]line [12:41:45]line [12:41:45]line [12:41:45]written 0, free lines is 3327 [12:41:45]MH_Cut [12:41:45]Write to MH i2c: D1 01 00 B6 06 01 8E [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: D1 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: D1 01 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: D1 01 00 B6 06 00 8D [12:41:45]Write to MH i2c: 01 00 00 B7 06 BD [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:45]OFD Sender: No OFD packet to send [12:41:45]*** Cut start [12:41:45]*** Purtial cut [12:41:45]*** Stage 1: CUTSNS_PIN = 1 [12:41:45]Read from MH i2c: 01 [12:41:45]MH_I2C_Read... [12:41:45]*** Stop cut motor [12:41:45]*** Cut end [12:41:45]Read from MH i2c: 01 07 00 [12:41:45]MH_I2C_Read... [12:41:45]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 FF 0F D2 [12:41:45]process_action close_receipt done [12:41:45]requested_data is exist [12:41:45]produce_requested_data [12:41:45]requested_item fm.sn is exist - process it [12:41:45]wFMCommunicate request_size=4 [12:41:45]MH_SAM_APDU [12:41:45]CAPDU: 80 11 00 00 [12:41:45]Write to MH i2c: E2 08 00 B8 06 80 11 00 00 00 00 00 00 38 [12:41:45]Write i2c OK [12:41:45]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 17 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 17 00 B8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 8D [12:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [12:41:46]wFMCommunicate OK [12:41:46]requested_item fd.num is exist - process it [12:41:46]SAM_PROTO_GetFieldsCounters [12:41:46]wFMCommunicate request_size=4 [12:41:46]MH_SAM_APDU [12:41:46]CAPDU: 80 13 00 00 [12:41:46]Write to MH i2c: E2 08 00 B9 06 80 13 00 00 00 00 00 00 3B [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 62 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 62 00 B9 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C7 13 01 00 0E 04 04 00 D1 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 65 [12:41: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C7 13 01 00 0E 04 04 00 D1 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 [12:41:46]wFMCommunicate OK [12:41:46]SAM_PROTO_GetFieldsCounters done [12:41:46]requested_item shift.num is exist - process it [12:41:46]requested_item shift.opened is exist - process it [12:41:46]req_shift_opened [12:41:46]FM_GetShiftState [12:41:46]SAM_PROTO_GetShiftState [12:41:46]wFMCommunicate request_size=4 [12:41:46]MH_SAM_APDU [12:41:46]CAPDU: 80 13 01 00 [12:41:46]Write to MH i2c: E2 08 00 BA 06 80 13 01 00 00 00 00 00 3D [12:41:46]Write i2c OK [12:41:46]MH_I2C_Read... [12:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:46]Read from MH i2c: E2 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 0E 00 [12:41:46]MH_I2C_Read... [12:41:46]Read from MH i2c: E2 0E 00 BA 06 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 2A [12:41:46]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [12:41:46]wFMCommunicate OK [12:41:46]SAM_PROTO_GetShiftState done [12:41:46]FM_GetShiftState done [12:41:46]req_shift_opened done [12:41:46]requested_item shift.open_date is exist - process it [12:41:46]req_shift_open_date [12:41:46]req_shift_open_date done [12:41:46]produce_requested_data done [12:41:46]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70599,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [12:41:46]process_action_free close_receipt [12:41:46]json_value_free [12:41:46]json_value_free done [12:41:46]process_json_proto returns [12:41:46]Send response to host [12:41:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70599,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [12:41:46]free response buf [12:41:46]execute_script done [12:41:46]execute_script returns [12:41:46]free content buf [12:41:46]Sock 9.Close socket [12:41:46]Sock 9.Thread stoped [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:27]accept exits with 7 [13:04:27]New connection [13:04:27]New thread 3066699108 created [13:04:27]Thread 3066842468 joined [13:04:27]Waiting for new connection... [13:04:27] Sock 7.Parse request [13:04:27]Sock 7.Check first char [13:04:27]Sock 7.First char is OK [13:04:27]request: POST /json_proto HTTP/1.0 [13:04:27]Method: POST [13:04:27]URL: /json_proto [13:04:27]Method is POST - this is cgi request [13:04:27]url: /json_proto [13:04:27]query_string will be loaded in cgi processing [13:04:27]execute_cgi json_proto POST (null) [13:04:27]execute_cgi path=json_proto method=POST [13:04:27]POST find Content-Length [13:04:27]Host: 172.17.58.67:8080 [13:04:27]Content-Length: 620 [13:04:27]Content-Type: application/json [13:04:27] [13:04:27]POST finish read [13:04:27]Found Content-Length = 620 [13:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17466", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:27]execute_script... [13:04: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 : (3)17466", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:27]POST & json_proto [13:04:27]process_json_proto [13:04:27]json parsed OK: [13:04:27]protocol is kg_v1.0 [13:04:27]action value=close_receipt [13:04:27]process_action close_receipt [13:04:27]cmd_close_receipt [13:04:27]MH_GetDate [13:04:27]Write to MH i2c: F0 00 00 BB 06 B0 [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: F0 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: F0 09 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: F0 09 00 BB 06 00 5B 08 BA 66 94 51 63 64 E8 [13:04:27]GetLastDocTimeStamp 1723466503 [13:04:27]current date 1723467867 [13:04:27]FM_GetShiftState [13:04:27]SAM_PROTO_GetShiftState [13:04:27]wFMCommunicate request_size=4 [13:04:27]MH_SAM_APDU [13:04:27]CAPDU: 80 13 01 00 [13:04:27]Write to MH i2c: E2 08 00 BC 06 80 13 01 00 00 00 00 00 3F [13:04:27]Write i2c OK [13:04:27]MH_I2C_Read... [13:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:27]Read from MH i2c: E2 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 0E 00 [13:04:27]MH_I2C_Read... [13:04:27]Read from MH i2c: E2 0E 00 BC 06 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 2C [13:04:27]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:04:27]wFMCommunicate OK [13:04:27]SAM_PROTO_GetShiftState done [13:04:27]FM_GetShiftState done [13:04:27]opened in 1723423336 [13:04:27]opened+sec_in_day 1723509736 [13:04:27]quantity*price = 14000 [13:04:27]sum+1 = 14001 [13:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 ÐСП 1% : 1.24 ÐДС 12% : 14.87 Ðаличными: 140.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 32 12.08.2024 13:04 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70600 ФПД: 120603427113616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T130427&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70600&fm=120603427113616&tin=02508201610067®Number=0000000000090913&sum=14000 0 [13:04:28]StoreToDocumentArchive [13:04:28]shift 465 fd 70600 [13:04:28]save to /storage/0465/doc_00070600 [13:04:28]save last doc name /storage/0465/doc_00070600 to /storage/kkm_last_doc_name [13:04:28]save OK [13:04:28]Clear old archive folders... [13:04:28]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:04:28]tlvbuf is 010DCAB0 [13:04:28]SAM_PROTO_ClearQueue [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 09 00 00 [13:04:28]Write to MH i2c: E2 08 00 C9 06 80 09 00 00 00 00 00 00 41 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [13:04:28]RAPDU: 90 00 [13:04:28]wFMCommunicate OK [13:04:28]SAM_PROTO_ClearQueue done [13:04:28]KKMCreateOFDPacket [13:04:28]OFDProtocolAddRootSTLVToBuf [13:04:28]FM_MakeSignedData [13:04:28]FM_MakeSignedData [13:04:28]SAM_PROTO_SignData [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 0D 01 02 [13:04:28]Write to MH i2c: E2 08 00 CA 06 80 0D 01 02 00 00 00 00 49 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [13:04:28]RAPDU: 90 00 [13:04:28]wFMCommunicate OK [13:04:28]wFMCommunicate request_size=255 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 5B 08 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 [13:04:28]Write to MH i2c: E2 02 01 CB 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 5B 08 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 00 00 9C [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [13:04:28]RAPDU: 90 00 [13:04:28]wFMCommunicate OK [13:04:28]wFMCommunicate request_size=32 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 31 35 10 04 04 00 C8 13 01 00 35 04 06 00 6D B0 2C 6E 8A 90 [13:04:28]Write to MH i2c: E2 23 00 CC 06 80 0D 02 02 1B 00 30 30 30 38 37 34 39 31 35 10 04 04 00 C8 13 01 00 35 04 06 00 6D B0 2C 6E 8A 90 00 00 58 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [13:04:28]RAPDU: 90 00 [13:04:28]wFMCommunicate OK [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 0D 03 02 [13:04:28]Write to MH i2c: E2 08 00 CD 06 80 0D 03 02 00 00 00 00 4E [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 0B 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 0B 00 CD 06 00 D5 EA A9 76 EA 89 38 AB 90 00 83 [13:04:28]RAPDU: D5 EA A9 76 EA 89 38 AB 90 00 [13:04:28]wFMCommunicate OK [13:04:28]SAM_PROTO_SignData done [13:04:28]FM_MakeSignedData done [13:04:28]CreateOFDProtocolMessage [13:04:28]wFMCommunicate request_size=4 [13:04:28]MH_SAM_APDU [13:04:28]CAPDU: 80 11 00 00 [13:04:28]Write to MH i2c: E2 08 00 CE 06 80 11 00 00 00 00 00 00 4E [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:28]Read from MH i2c: E2 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: E2 17 00 [13:04:28]MH_I2C_Read... [13:04:28]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 39 31 35 90 00 A3 [13:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:04:28]wFMCommunicate OK [13:04:28]CreateOFDProtocolMessage done [13:04:28]OFDSenderStorePacket 70600 [13:04:28]StoreOFDPacket docnum=70600 [13:04:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 25 01 00 00 B2 E6 1D 01 2B 5C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 5B 08 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C8 13 01 00 35 04 06 00 6D B0 2C 6E 8A 90 D5 EA A9 76 EA 89 38 AB [13:04:28]CheckFolder [13:04:28]dirname=/storage/ofd_packets [13:04:28]CheckFolder done [13:04:28]ProducePacketName [13:04:28]name=ofd_packets/00070600 [13:04:28]NVStorageSaveData ofd_packets/00070600 [13:04:28]File name is /storage/ofd_packets/00070600 [13:04:28]Write 323 bytes [13:04:28]NVStorageSaveData done [13:04:28]OFDSenderStorePacket done [13:04:28]KKMCreateOFDPacket done [13:04:28]NVStorageSaveData kkm_last_timestamp [13:04:28]File name is /storage/kkm_last_timestamp [13:04:28]Write 4 bytes [13:04:28]NVStorageSaveData done [13:04:28]ExternCall_PrintAddStr [13:04:28]wPrintStart [13:04:28]Write to MH i2c: 01 00 00 CF 06 D5 [13:04:28]Write i2c OK [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 07 00 [13:04:28]MH_I2C_Read... [13:04:28]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 FF 0F EA [13:04:28]RasterBufferAndPrint [13:04:28]line Счет N : (3)17466 [13:04:28]line ИÐÐ: 02508201610067 [13:04:28]line Контрольно-КаÑÑовый Чек [13:04:28]line ПРОДÐЖР[13:04:28]line Товар: 48747059 [13:04:28]line Сигареты Winston Legend Blue [13:04:28]line 1.000 * 140.00 [13:04:28]line = 140.00 [13:04:28]line ÐДС 12% ÐСП 1% [13:04:28]line > о реализуемом товаре [13:04:28]line ИТОГО: 140.00 [13:04:28]line ÐСП 1% : 1.24 [13:04:28]line ÐДС 12% : 14.87 [13:04:28]line Ðаличными: 140.00 [13:04:28]line Безнал.: 0.00 [13:04:28]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [13:04:28]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [13:04:28]line СÐО: Общий режим [13:04:28]line Чек 32 12.08.2024 13:04 [13:04:28]line Смена: 465 ФФД: 1.0 [13:04:28]line ЗÐМ: 0300000140 [13:04:28]line РÐМ: 0000000000090913 [13:04:28]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:04:28]line ФМ: 0000000000874915 [13:04:28]line ФД: 70600 [13:04:28]line ФПД: 120603427113616 [13:04:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T130427&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70600&fm=120603427113616&tin=02508201610067®Number=0000000000090913&sum=14000 [13:04:29]OFD Sender: Processing packet 70600 [packets to send 67, broken 66] [13:04:29]ProducePacketName [13:04:29]name=ofd_packets/00070600 [13:04:29]OFD Sender: To server: ‡•öpG, [13:04:29]CommunicateWithHost lk.salyk.kg:30040 [13:04:29]ConnectInit lk.salyk.kg [13:04:29]line 0 [13:04:29]written 0, free lines is 4095 [13:04:29]Connected sock=10 [13:04:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 25 01 00 00 B2 E6 1D 01 2B 5C 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 5B 08 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C8 13 01 00 35 04 06 00 6D B0 2C 6E 8A 90 D5 EA A9 76 EA 89 38 AB [13:04:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 6C 71 47 00 4D 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 39 31 35 10 04 04 00 C8 13 01 00 F4 03 04 00 48 AF B9 66 B6 04 01 00 00 1F 4A 6B 93 D9 B8 42 BF [13:04:29]CommunicateWithHost err = 0 [13:04:29]CheckOFDResponse [13:04:29]1017 (14) - 77093643461234 [13:04:29]1041 (16) - 0000000000874915 [13:04:29]1040 (4) - 70600 [13:04:29]1012 (4) - 12.08.2024 06:44 [13:04:29]1206 (1) - 0 [13:04:29]OFD Sender: Remove packet 70600 [13:04:29]ProducePacketName [13:04:29]name=ofd_packets/00070600 [13:04:29]NVStorageDeleteData [13:04:29]Write to MH i2c: 01 00 00 F8 06 FE [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: 01 07 00 F8 06 00 00 00 00 00 F4 0C 05 [13:04:29]RasterBufferAndPrint [13:04:29]line [13:04:29]line [13:04:29]line [13:04:29]line [13:04:29]line [13:04:29]written 0, free lines is 3322 [13:04:29]MH_Cut [13:04:29]Write to MH i2c: D1 01 00 FF 06 01 D7 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: D1 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: D1 01 00 [13:04:29]MH_I2C_Read... [13:04:29]Read from MH i2c: D1 01 00 FF 06 00 D6 [13:04:29]Write to MH i2c: 01 00 00 00 07 07 [13:04:29]Write i2c OK [13:04:29]MH_I2C_Read... [13:04:30]OFD Sender: No OFD packet to send [13:04:30]*** Cut start [13:04:30]*** Purtial cut [13:04:30]*** CUTSNS_PIN = 0 [13:04:30]*** Stage 1: CUTSNS_PIN = 1 [13:04:32]Read from MH i2c: 01 [13:04:32]MH_I2C_Read... [13:04:32]*** Stop cut motor [13:04:32]*** Cut end [13:04:32]Read from MH i2c: 01 07 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 07 00 00 07 00 00 00 00 00 FF 0F 1C [13:04:32]process_action close_receipt done [13:04:32]requested_data is exist [13:04:32]produce_requested_data [13:04:32]requested_item fm.sn is exist - process it [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 11 00 00 [13:04:32]Write to MH i2c: E2 08 00 01 07 80 11 00 00 00 00 00 00 82 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 17 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 17 00 01 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D7 [13:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:04:32]wFMCommunicate OK [13:04:32]requested_item fd.num is exist - process it [13:04:32]SAM_PROTO_GetFieldsCounters [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 13 00 00 [13:04:32]Write to MH i2c: E2 08 00 02 07 80 13 00 00 00 00 00 00 85 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 62 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 62 00 02 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C8 13 01 00 0E 04 04 00 D1 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 B3 [13:04: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C8 13 01 00 0E 04 04 00 D1 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 [13:04:32]wFMCommunicate OK [13:04:32]SAM_PROTO_GetFieldsCounters done [13:04:32]requested_item shift.num is exist - process it [13:04:32]requested_item shift.opened is exist - process it [13:04:32]req_shift_opened [13:04:32]FM_GetShiftState [13:04:32]SAM_PROTO_GetShiftState [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 13 01 00 [13:04:32]Write to MH i2c: E2 08 00 03 07 80 13 01 00 00 00 00 00 87 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 0E 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 0E 00 03 07 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 74 [13:04:32]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:04:32]wFMCommunicate OK [13:04:32]SAM_PROTO_GetShiftState done [13:04:32]FM_GetShiftState done [13:04:32]req_shift_opened done [13:04:32]requested_item shift.open_date is exist - process it [13:04:32]req_shift_open_date [13:04:32]req_shift_open_date done [13:04:32]produce_requested_data done [13:04:32]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70600,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [13:04:32]process_action_free close_receipt [13:04:32]json_value_free [13:04:32]json_value_free done [13:04:32]process_json_proto returns [13:04:32]Send response to host [13:04:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70600,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [13:04:32]free response buf [13:04:32]execute_script done [13:04:32]execute_script returns [13:04:32]free content buf [13:04:32]Sock 7.Close socket [13:04:32]Sock 7.Thread stoped [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:05:58]int [13:05:58]Write to MH i2c: 01 00 00 04 07 0B [13:05:58]*** FLAG_PRN_KEY set [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 07 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 07 00 04 07 00 08 00 00 00 FF 0F 28 [13:05:58]state=0 [13:05:58]Key pressed [13:05:58]Feed [13:05:58]Write to MH i2c: D8 00 00 05 07 E3 [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: D8 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: D8 01 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: D8 01 00 05 07 00 E4 [13:05:58]int [13:05:58]Write to MH i2c: 01 00 00 06 07 0D [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 07 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 07 00 06 07 00 48 00 00 00 3C 00 98 [13:05:58]state=2 [13:05:58]Key pressed [13:05:58]int [13:05:58]Write to MH i2c: 01 00 00 07 07 0E [13:05:58]*** FLAG_PRN_KEY reset [13:05:58]Write i2c OK [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 07 00 [13:05:58]MH_I2C_Read... [13:05:58]Read from MH i2c: 01 07 00 07 07 00 00 00 00 00 F6 0F 1A [13:05:58]state=2 [13:05:58]Stop feed [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:05]OFD Sender: No OFD packet to send [13:12:10]OFD Sender: No OFD packet to send [13:12:15]OFD Sender: No OFD packet to send [13:12:20]OFD Sender: No OFD packet to send [13:12:25]OFD Sender: No OFD packet to send [13:12:30]OFD Sender: No OFD packet to send [13:12:35]OFD Sender: No OFD packet to send [13:12:40]OFD Sender: No OFD packet to send [13:12:45]OFD Sender: No OFD packet to send [13:12:50]OFD Sender: No OFD packet to send [13:12:55]OFD Sender: No OFD packet to send [13:13:00]OFD Sender: No OFD packet to send [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:41]accept exits with 9 [13:21:41]New connection [13:21:41]New thread 3066842468 created [13:21:41]Thread 3066699108 joined [13:21:41]Waiting for new connection... [13:21:41] Sock 9.Parse request [13:21:41]Sock 9.Check first char [13:21:41]Sock 9.First char is OK [13:21:41]request: POST /json_proto HTTP/1.0 [13:21:41]Method: POST [13:21:41]URL: /json_proto [13:21:41]Method is POST - this is cgi request [13:21:41]url: /json_proto [13:21:41]query_string will be loaded in cgi processing [13:21:41]execute_cgi json_proto POST (null) [13:21:41]execute_cgi path=json_proto method=POST [13:21:41]POST find Content-Length [13:21:41]Host: 172.17.58.67:8080 [13:21:41]Content-Length: 800 [13:21:41]Content-Type: application/json [13:21:41] [13:21:41]POST finish read [13:21:41]Found Content-Length = 800 [13:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17467", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.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" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:41]execute_script... [13:21:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17467", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 143.00, "quantity" : 1.000, "sum" : 143.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" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:41]POST & json_proto [13:21:41]process_json_proto [13:21:41]json parsed OK: [13:21:41]protocol is kg_v1.0 [13:21:41]action value=close_receipt [13:21:41]process_action close_receipt [13:21:41]cmd_close_receipt [13:21:41]MH_GetDate [13:21:41]Write to MH i2c: F0 00 00 08 07 FE [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 09 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 09 00 08 07 00 65 0C BA 66 94 51 63 64 44 [13:21:41]GetLastDocTimeStamp 1723467867 [13:21:41]current date 1723468901 [13:21:41]FM_GetShiftState [13:21:41]SAM_PROTO_GetShiftState [13:21:41]wFMCommunicate request_size=4 [13:21:41]MH_SAM_APDU [13:21:41]CAPDU: 80 13 01 00 [13:21:41]Write to MH i2c: E2 08 00 09 07 80 13 01 00 00 00 00 00 8D [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:41]Read from MH i2c: E2 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 0E 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 0E 00 09 07 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 7A [13:21:41]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:21:41]wFMCommunicate OK [13:21:41]SAM_PROTO_GetShiftState done [13:21:41]FM_GetShiftState done [13:21:41]opened in 1723423336 [13:21:41]opened+sec_in_day 1723509736 [13:21:41]quantity*price = 14300 [13:21:41]sum+1 = 14301 [13:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 143.00 ÐСП 1% : 1.26 ÐДС 12% : 15.19 Ðаличными: 0.00 Безнал.: 143.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 33 12.08.2024 13:21 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70601 ФПД: 141486680722283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T132141&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70601&fm=141486680722283&tin=02508201610067®Number=0000000000090913&sum=14300 0 [13:21:42]StoreToDocumentArchive [13:21:42]shift 465 fd 70601 [13:21:42]save to /storage/0465/doc_00070601 [13:21:42]save last doc name /storage/0465/doc_00070601 to /storage/kkm_last_doc_name [13:21:42]save OK [13:21:42]Clear old archive folders... [13:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:21:42]tlvbuf is 010DDFD0 [13:21:42]SAM_PROTO_ClearQueue [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 09 00 00 [13:21:42]Write to MH i2c: E2 08 00 16 07 80 09 00 00 00 00 00 00 8F [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]SAM_PROTO_ClearQueue done [13:21:42]KKMCreateOFDPacket [13:21:42]OFDProtocolAddRootSTLVToBuf [13:21:42]FM_MakeSignedData [13:21:42]FM_MakeSignedData [13:21:42]SAM_PROTO_SignData [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 01 02 [13:21:42]Write to MH i2c: E2 08 00 17 07 80 0D 01 02 00 00 00 00 97 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 17 07 00 90 00 92 [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]wFMCommunicate request_size=255 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 65 0C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 [13:21:42]Write to MH i2c: E2 02 01 18 07 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 65 0C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 00 00 67 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 18 07 00 90 00 93 [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]wFMCommunicate request_size=35 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C9 13 01 00 35 04 06 00 80 AE 6F 58 4B 6B [13:21:42]Write to MH i2c: E2 26 00 19 07 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C9 13 01 00 35 04 06 00 80 AE 6F 58 4B 6B 00 00 17 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 03 02 [13:21:42]Write to MH i2c: E2 08 00 1A 07 80 0D 03 02 00 00 00 00 9C [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 0B 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 0B 00 1A 07 00 58 0F B5 24 20 25 59 C2 90 00 3D [13:21:42]RAPDU: 58 0F B5 24 20 25 59 C2 90 00 [13:21:42]wFMCommunicate OK [13:21:42]SAM_PROTO_SignData done [13:21:42]FM_MakeSignedData done [13:21:42]CreateOFDProtocolMessage [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 11 00 00 [13:21:42]Write to MH i2c: E2 08 00 1B 07 80 11 00 00 00 00 00 00 9C [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 17 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 17 00 1B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 F1 [13:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:21:42]wFMCommunicate OK [13:21:42]CreateOFDProtocolMessage done [13:21:42]OFDSenderStorePacket 70601 [13:21:42]StoreOFDPacket docnum=70601 [13:21:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 28 01 00 00 A3 D2 20 01 B3 90 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 65 0C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C9 13 01 00 35 04 06 00 80 AE 6F 58 4B 6B 58 0F B5 24 20 25 59 C2 [13:21:42]CheckFolder [13:21:42]dirname=/storage/ofd_packets [13:21:42]CheckFolder done [13:21:42]ProducePacketName [13:21:42]name=ofd_packets/00070601 [13:21:42]NVStorageSaveData ofd_packets/00070601 [13:21:42]File name is /storage/ofd_packets/00070601 [13:21:42]Write 326 bytes [13:21:42]NVStorageSaveData done [13:21:42]OFDSenderStorePacket done [13:21:42]KKMCreateOFDPacket done [13:21:42]NVStorageSaveData kkm_last_timestamp [13:21:42]File name is /storage/kkm_last_timestamp [13:21:42]Write 4 bytes [13:21:42]NVStorageSaveData done [13:21:42]ExternCall_PrintAddStr [13:21:42]wPrintStart [13:21:42]Write to MH i2c: 01 00 00 1C 07 23 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: 01 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: 01 07 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: 01 07 00 1C 07 00 00 00 00 00 FF 0F 38 [13:21:42]RasterBufferAndPrint [13:21:42]line Счет N : (3)17467 [13:21:42]line ИÐÐ: 02508201610067 [13:21:42]line Контрольно-КаÑÑовый Чек [13:21:42]line ПРОДÐЖР[13:21:42]line Товар: 48744683 [13:21:42]line Сигареты Winston XStyle Caster+ [13:21:42]line 1.000 * 143.00 [13:21:42]line = 143.00 [13:21:42]line ÐДС 12% ÐСП 1% [13:21:42]line > о реализуемом товаре [13:21:42]line ИТОГО: 143.00 [13:21:42]line ÐСП 1% : 1.26 [13:21:42]line ÐДС 12% : 15.19 [13:21:42]line Ðаличными: 0.00 [13:21:42]line Безнал.: 143.00 [13:21:42]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [13:21:42]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [13:21:42]line СÐО: Общий режим [13:21:42]line Чек 33 12.08.2024 13:21 [13:21:42]line Смена: 465 ФФД: 1.0 [13:21:42]line ЗÐМ: 0300000140 [13:21:42]line РÐМ: 0000000000090913 [13:21:42]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:21:42]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [13:21:42]line ФМ: 0000000000874915 [13:21:42]line ФД: 70601 [13:21:42]line ФПД: 141486680722283 [13:21:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T132141&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70601&fm=141486680722283&tin=02508201610067®Number=0000000000090913&sum=14300 [13:21:43]OFD Sender: Processing packet 70601 [packets to send 67, broken 66] [13:21:43]ProducePacketName [13:21:43]name=ofd_packets/00070601 [13:21:43]OFD Sender: To server: ‡•öpG, [13:21:43]CommunicateWithHost lk.salyk.kg:30040 [13:21:43]ConnectInit lk.salyk.kg [13:21:43]line 0 [13:21:43]written 0, free lines is 4095 [13:21:43]Connected sock=10 [13:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 28 01 00 00 A3 D2 20 01 B3 90 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DC 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 65 0C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C9 13 01 00 35 04 06 00 80 AE 6F 58 4B 6B 58 0F B5 24 20 25 59 C2 [13:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 93 3A 47 00 6D 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 C9 13 01 00 F4 03 04 00 52 B3 B9 66 B6 04 01 00 00 D9 A3 C1 8B FE A4 C7 48 [13:21:43]CommunicateWithHost err = 0 [13:21:43]CheckOFDResponse [13:21:43]1017 (14) - 77093643461234 [13:21:43]1041 (16) - 0000000000874915 [13:21:43]1040 (4) - 70601 [13:21:43]1012 (4) - 12.08.2024 07:01 [13:21:43]1206 (1) - 0 [13:21:43]OFD Sender: Remove packet 70601 [13:21:43]ProducePacketName [13:21:43]name=ofd_packets/00070601 [13:21:43]NVStorageDeleteData [13:21:43]Write to MH i2c: 01 00 00 47 07 4E [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 47 07 00 00 00 00 00 EE 0C 4F [13:21:43]RasterBufferAndPrint [13:21:43]line [13:21:43]line [13:21:43]line [13:21:43]line [13:21:43]line [13:21:43]written 0, free lines is 3319 [13:21:43]MH_Cut [13:21:43]Write to MH i2c: D1 01 00 4E 07 01 27 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: D1 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: D1 01 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: D1 01 00 4E 07 00 26 [13:21:43]Write to MH i2c: 01 00 00 4F 07 56 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]OFD Sender: No OFD packet to send [13:21:44]*** Cut start [13:21:44]*** Purtial cut [13:21:44]*** Stage 1: CUTSNS_PIN = 1 [13:21:44]Read from MH i2c: 01 [13:21:44]MH_I2C_Read... [13:21:44]*** Stop cut motor [13:21:44]*** Cut end [13:21:44]Read from MH i2c: 01 07 00 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: 01 07 00 4F 07 00 00 00 00 00 FF 0F 6B [13:21:44]process_action close_receipt done [13:21:44]requested_data is exist [13:21:44]produce_requested_data [13:21:44]requested_item fm.sn is exist - process it [13:21:44]wFMCommunicate request_size=4 [13:21:44]MH_SAM_APDU [13:21:44]CAPDU: 80 11 00 00 [13:21:44]Write to MH i2c: E2 08 00 50 07 80 11 00 00 00 00 00 00 D1 [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:44]Read from MH i2c: E2 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 17 00 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 17 00 50 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 26 [13:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:21:44]wFMCommunicate OK [13:21:44]requested_item fd.num is exist - process it [13:21:44]SAM_PROTO_GetFieldsCounters [13:21:44]wFMCommunicate request_size=4 [13:21:44]MH_SAM_APDU [13:21:44]CAPDU: 80 13 00 00 [13:21:44]Write to MH i2c: E2 08 00 51 07 80 13 00 00 00 00 00 00 D4 [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:44]Read from MH i2c: E2 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 62 00 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 62 00 51 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C9 13 01 00 0E 04 04 00 D1 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 06 [13:21:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 C9 13 01 00 0E 04 04 00 D1 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 [13:21:44]wFMCommunicate OK [13:21:44]SAM_PROTO_GetFieldsCounters done [13:21:44]requested_item shift.num is exist - process it [13:21:44]requested_item shift.opened is exist - process it [13:21:44]req_shift_opened [13:21:44]FM_GetShiftState [13:21:44]SAM_PROTO_GetShiftState [13:21:44]wFMCommunicate request_size=4 [13:21:44]MH_SAM_APDU [13:21:44]CAPDU: 80 13 01 00 [13:21:44]Write to MH i2c: E2 08 00 52 07 80 13 01 00 00 00 00 00 D6 [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:44] [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 0E 00 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 0E 00 52 07 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 C3 [13:21:44]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:21:44]wFMCommunicate OK [13:21:44]SAM_PROTO_GetShiftState done [13:21:44]FM_GetShiftState done [13:21:44]req_shift_opened done [13:21:44]requested_item shift.open_date is exist - process it [13:21:44]req_shift_open_date [13:21:44]req_shift_open_date done [13:21:44]produce_requested_data done [13:21:44]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70601,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [13:21:44]process_action_free close_receipt [13:21:44]json_value_free [13:21:44]json_value_free done [13:21:44]process_json_proto returns [13:21:44]Send response to host [13:21:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70601,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [13:21:44]free response buf [13:21:44]execute_script done [13:21:44]execute_script returns [13:21:44]free content buf [13:21:44]Sock 9.Close socket [13:21:44]Sock 9.Thread stoped [13:21:48]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:32]accept exits with 7 [13:25:32]New connection [13:25:32]New thread 3066699108 created [13:25:32]Thread 3066842468 joined [13:25:32]Waiting for new connection... [13:25:32] Sock 7.Parse request [13:25:32]Sock 7.Check first char [13:25:32]Sock 7.First char is OK [13:25:32]request: POST /json_proto HTTP/1.0 [13:25:32]Method: POST [13:25:32]URL: /json_proto [13:25:32]Method is POST - this is cgi request [13:25:32]url: /json_proto [13:25:32]query_string will be loaded in cgi processing [13:25:32]execute_cgi json_proto POST (null) [13:25:32]execute_cgi path=json_proto method=POST [13:25:32]POST find Content-Length [13:25:32]Host: 172.17.58.67:8080 [13:25:32]Content-Length: 819 [13:25:32]Content-Type: application/json [13:25:32] [13:25:32]POST finish read [13:25:32]Found Content-Length = 819 [13:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 134.410, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 10000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:32]execute_script... [13: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)141041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 134.410, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 10000.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:32]POST & json_proto [13:25:32]process_json_proto [13:25:32]json parsed OK: [13:25:32]protocol is kg_v1.0 [13:25:32]action value=close_receipt [13:25:32]process_action close_receipt [13:25:32]cmd_close_receipt [13:25:32]MH_GetDate [13:25:32]Write to MH i2c: F0 00 00 53 07 49 [13:25:32]Write i2c OK [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: F0 [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: F0 09 00 [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: F0 09 00 53 07 00 4C 0D BA 66 94 51 63 64 77 [13:25:32]GetLastDocTimeStamp 1723468901 [13:25:32]current date 1723469132 [13:25:32]FM_GetShiftState [13:25:32]SAM_PROTO_GetShiftState [13:25:32]wFMCommunicate request_size=4 [13:25:32]MH_SAM_APDU [13:25:32]CAPDU: 80 13 01 00 [13:25:32]Write to MH i2c: E2 08 00 54 07 80 13 01 00 00 00 00 00 D8 [13:25:32]Write i2c OK [13:25:32]MH_I2C_Read... [13:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:32]Read from MH i2c: E2 [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: E2 0E 00 [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: E2 0E 00 54 07 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 C5 [13:25:32]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:25:32]wFMCommunicate OK [13:25:32]SAM_PROTO_GetShiftState done [13:25:32]FM_GetShiftState done [13:25:32]opened in 1723423336 [13:25:32]opened+sec_in_day 1723509736 [13:25:32]quantity*price = 1000010 [13:25:32]sum+1 = 1000011 [13:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10000.10 ÐСП 1% : 88.50 ÐДС 12% : 1061.96 Ðаличными: 0.00 Безнал.: 10000.10 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 34 12.08.2024 13:25 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70602 ФПД: 156842583379959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T132532&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70602&fm=156842583379959&tin=02508201610067®Number=0000000000090913&sum=1000010 [13:25:33]StoreToDocumentArchive [13:25:33]shift 465 fd 70602 [13:25:33]save to /storage/0465/doc_00070602 [13:25:33]save last doc name /storage/0465/doc_00070602 to /storage/kkm_last_doc_name [13:25:33]save OK [13:25:33]Clear old archive folders... [13:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:25:33]tlvbuf is 010CAD50 [13:25:33]SAM_PROTO_ClearQueue [13:25:33]wFMCommunicate request_size=4 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 09 00 00 [13:25:33]Write to MH i2c: E2 08 00 61 07 80 09 00 00 00 00 00 00 DA [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 03 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [13:25:33]RAPDU: 90 00 [13:25:33]wFMCommunicate OK [13:25:33]SAM_PROTO_ClearQueue done [13:25:33]KKMCreateOFDPacket [13:25:33]OFDProtocolAddRootSTLVToBuf [13:25:33]FM_MakeSignedData [13:25:33]FM_MakeSignedData [13:25:33]SAM_PROTO_SignData [13:25:33]wFMCommunicate request_size=4 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 0D 01 02 [13:25:33]Write to MH i2c: E2 08 00 62 07 80 0D 01 02 00 00 00 00 E2 [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 03 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [13:25:33]RAPDU: 90 00 [13:25:33]wFMCommunicate OK [13:25:33]wFMCommunicate request_size=255 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 0D 02 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4C 0D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CA 13 01 00 35 04 06 00 8E A5 C2 77 [13:25:33]Write to MH i2c: E2 02 01 63 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 0D 02 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4C 0D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CA 13 01 00 35 04 06 00 8E A5 C2 77 00 00 33 [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 03 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [13:25:33]RAPDU: 90 00 [13:25:33]wFMCommunicate OK [13:25:33]wFMCommunicate request_size=7 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 0D 02 02 02 CF F7 [13:25:33]Write to MH i2c: E2 0A 00 64 07 80 0D 02 02 02 00 CF F7 00 00 AF [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 03 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [13:25:33]RAPDU: 90 00 [13:25:33]wFMCommunicate OK [13:25:33]wFMCommunicate request_size=4 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 0D 03 02 [13:25:33]Write to MH i2c: E2 08 00 65 07 80 0D 03 02 00 00 00 00 E7 [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 0B 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 0B 00 65 07 00 DE 35 20 C5 E2 84 35 FA 90 00 75 [13:25:33]RAPDU: DE 35 20 C5 E2 84 35 FA 90 00 [13:25:33]wFMCommunicate OK [13:25:33]SAM_PROTO_SignData done [13:25:33]FM_MakeSignedData done [13:25:33]CreateOFDProtocolMessage [13:25:33]wFMCommunicate request_size=4 [13:25:33]MH_SAM_APDU [13:25:33]CAPDU: 80 11 00 00 [13:25:33]Write to MH i2c: E2 08 00 66 07 80 11 00 00 00 00 00 00 E7 [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 17 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 17 00 66 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3C [13:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:25:33]wFMCommunicate OK [13:25:33]CreateOFDProtocolMessage done [13:25:33]OFDSenderStorePacket 70602 [13:25:33]StoreOFDPacket docnum=70602 [13:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 9C 82 04 01 C9 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 0A 0D 02 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4C 0D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CA 13 01 00 35 04 06 00 8E A5 C2 77 CF F7 DE 35 20 C5 E2 84 35 FA [13:25:33]CheckFolder [13:25:33]dirname=/storage/ofd_packets [13:25:33]CheckFolder done [13:25:33]ProducePacketName [13:25:33]name=ofd_packets/00070602 [13:25:33]NVStorageSaveData ofd_packets/00070602 [13:25:33]File name is /storage/ofd_packets/00070602 [13:25:33]Write 298 bytes [13:25:33]NVStorageSaveData done [13:25:33]OFDSenderStorePacket done [13:25:33]KKMCreateOFDPacket done [13:25:33]NVStorageSaveData kkm_last_timestamp [13:25:33]File name is /storage/kkm_last_timestamp [13:25:33]Write 4 bytes [13:25:33]NVStorageSaveData done [13:25:33]ExternCall_PrintAddStr [13:25:33]wPrintStart [13:25:33]Write to MH i2c: 01 00 00 67 07 6E [13:25:33]Write i2c OK [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: 01 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: 01 07 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 FF 0F 83 [13:25:33]RasterBufferAndPrint [13:25:33]line Счет N : (1)141041 [13:25:33]line ИÐÐ: 02508201610067 [13:25:33]line Контрольно-КаÑÑовый Чек [13:25:33]line ПРОДÐЖР[13:25:33]line ТРК (МРК, ГÐК) : 34 [13:25:33]line Товар: 2710194210 [13:25:33]line ДТ-К-5 [13:25:33]line 134.410 * 74.40 [13:25:33]line = 10000.10 [13:25:33]line ÐДС 12% ÐСП 1% [13:25:33]line > о реализуемом товаре [13:25:33]line ИТОГО: 10000.10 [13:25:33]line ÐСП 1% : 88.50 [13:25:33]line ÐДС 12% : 1061.96 [13:25:33]line Ðаличными: 0.00 [13:25:33]line Безнал.: 10000.10 [13:25:33]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [13:25:33]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [13:25:33]line СÐО: Общий режим [13:25:33]line Чек 34 12.08.2024 13:25 [13:25:33]line Смена: 465 ФФД: 1.0 [13:25:33]line ЗÐМ: 0300000140 [13:25:33]line РÐМ: 0000000000090913 [13:25:33]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:25:33]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [13:25:33]line ФМ: 0000000000874915 [13:25:33]line ФД: 70602 [13:25:33]line ФПД: 156842583379959 [13:25:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T132532&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70602&fm=156842583379959&tin=02508201610067®Number=0000000000090913&sum=1000010 [13:25:34]OFD Sender: Processing packet 70602 [packets to send 67, broken 66] [13:25:34]ProducePacketName [13:25:34]name=ofd_packets/00070602 [13:25:34]OFD Sender: To server: ‡•öpG, [13:25:34]CommunicateWithHost lk.salyk.kg:30040 [13:25:34]ConnectInit lk.salyk.kg [13:25:34]written 0, free lines is 4095 [13:25:34]Connected sock=10 [13: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 39 31 35 0C 01 00 00 9C 82 04 01 C9 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 0A 0D 02 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 4C 0D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CA 13 01 00 35 04 06 00 8E A5 C2 77 CF F7 DE 35 20 C5 E2 84 35 FA [13: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 39 31 35 4F 00 00 00 E9 BC 47 00 15 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 39 31 35 10 04 04 00 CA 13 01 00 F4 03 04 00 39 B4 B9 66 B6 04 01 00 00 7F D6 AD 41 F3 4E DF 20 [13:25:34]CommunicateWithHost err = 0 [13:25:34]CheckOFDResponse [13:25:34]1017 (14) - 77093643461234 [13:25:34]1041 (16) - 0000000000874915 [13:25:34]1040 (4) - 70602 [13:25:34]1012 (4) - 12.08.2024 07:05 [13:25:34]1206 (1) - 0 [13:25:34]OFD Sender: Remove packet 70602 [13:25:34]ProducePacketName [13:25:34]name=ofd_packets/00070602 [13:25:34]NVStorageDeleteData [13:25:34]Write to MH i2c: 01 00 00 91 07 98 [13:25:34]Write i2c OK [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: 01 [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: 01 07 00 [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 04 0D B0 [13:25:34]RasterBufferAndPrint [13:25:34]line [13:25:34]line [13:25:34]line [13:25:34]line [13:25:34]line [13:25:34]written 0, free lines is 3338 [13:25:34]MH_Cut [13:25:34]Write to MH i2c: D1 01 00 98 07 01 71 [13:25:34]Write i2c OK [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: D1 [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: D1 01 00 [13:25:34]MH_I2C_Read... [13:25:34]Read from MH i2c: D1 01 00 98 07 00 70 [13:25:34]Write to MH i2c: 01 00 00 99 07 A0 [13:25:34]Write i2c OK [13:25:34]MH_I2C_Read... [13:25:34]OFD Sender: No OFD packet to send [13:25:35]*** Cut start [13:25:35]*** Purtial cut [13:25:35]*** CUTSNS_PIN = 0 [13:25:35]*** Stage 1: CUTSNS_PIN = 1 [13:25:37]Read from MH i2c: 01 [13:25:37]MH_I2C_Read... [13:25:37]*** Stop cut motor [13:25:37]*** Cut end [13:25:37]Read from MH i2c: 01 07 00 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 FF 0F B5 [13:25:37]process_action close_receipt done [13:25:37]requested_data is exist [13:25:37]produce_requested_data [13:25:37]requested_item fm.sn is exist - process it [13:25:37]wFMCommunicate request_size=4 [13:25:37]MH_SAM_APDU [13:25:37]CAPDU: 80 11 00 00 [13:25:37]Write to MH i2c: E2 08 00 9A 07 80 11 00 00 00 00 00 00 1B [13:25:37]Write i2c OK [13:25:37]MH_I2C_Read... [13:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:37]Read from MH i2c: E2 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 17 00 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 17 00 9A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 70 [13:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:25:37]wFMCommunicate OK [13:25:37]requested_item fd.num is exist - process it [13:25:37]SAM_PROTO_GetFieldsCounters [13:25:37]wFMCommunicate request_size=4 [13:25:37]MH_SAM_APDU [13:25:37]CAPDU: 80 13 00 00 [13:25:37]Write to MH i2c: E2 08 00 9B 07 80 13 00 00 00 00 00 00 1E [13:25:37]Write i2c OK [13:25:37]MH_I2C_Read... [13:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:37]Read from MH i2c: E2 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 62 00 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 62 00 9B 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CA 13 01 00 0E 04 04 00 D1 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 54 [13:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CA 13 01 00 0E 04 04 00 D1 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 [13:25:37]wFMCommunicate OK [13:25:37]SAM_PROTO_GetFieldsCounters done [13:25:37]requested_item shift.num is exist - process it [13:25:37]requested_item shift.opened is exist - process it [13:25:37]req_shift_opened [13:25:37]FM_GetShiftState [13:25:37]SAM_PROTO_GetShiftState [13:25:37]wFMCommunicate request_size=4 [13:25:37]MH_SAM_APDU [13:25:37]CAPDU: 80 13 01 00 [13:25:37]Write to MH i2c: E2 08 00 9C 07 80 13 01 00 00 00 00 00 20 [13:25:37]Write i2c OK [13:25:37]MH_I2C_Read... [13:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:37]Read from MH i2c: E2 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 0E 00 [13:25:37]MH_I2C_Read... [13:25:37]Read from MH i2c: E2 0E 00 9C 07 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 0D [13:25:37]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:25:37]wFMCommunicate OK [13:25:37]SAM_PROTO_GetShiftState done [13:25:37]FM_GetShiftState done [13:25:37]req_shift_opened done [13:25:37]requested_item shift.open_date is exist - process it [13:25:37]req_shift_open_date [13:25:37]req_shift_open_date done [13:25:37]produce_requested_data done [13:25:37]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70602,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [13:25:37]process_action_free close_receipt [13:25:37]json_value_free [13:25:37]json_value_free done [13:25:37]process_json_proto returns [13:25:37]Send response to host [13:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70602,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [13:25:37]free response buf [13:25:37]execute_script done [13:25:37]execute_script returns [13:25:37]free content buf [13:25:37]Sock 7.Close socket [13:25:37]Sock 7.Thread stoped [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:53]accept exits with 9 [13:26:53]New connection [13:26:53]New thread 3066842468 created [13:26:53]Thread 3066699108 joined [13:26:53]Waiting for new connection... [13:26:53] Sock 9.Parse request [13:26:53]Sock 9.Check first char [13:26:53]Sock 9.First char is OK [13:26:53]request: POST /json_proto HTTP/1.0 [13:26:53]Method: POST [13:26:53]URL: /json_proto [13:26:53]Method is POST - this is cgi request [13:26:53]url: /json_proto [13:26:53]query_string will be loaded in cgi processing [13:26:53]execute_cgi json_proto POST (null) [13:26:53]execute_cgi path=json_proto method=POST [13:26:53]POST find Content-Length [13:26:53]Host: 172.17.58.67:8080 [13:26:53]Content-Length: 816 [13:26:53]Content-Type: application/json [13:26:53] [13:26:53]POST finish read [13:26:53]Found Content-Length = 816 [13:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:53]execute_script... [13:26: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)141042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:53]POST & json_proto [13:26:53]process_json_proto [13:26:53]json parsed OK: [13:26:53]protocol is kg_v1.0 [13:26:53]action value=close_receipt [13:26:53]process_action close_receipt [13:26:53]cmd_close_receipt [13:26:53]MH_GetDate [13:26:53]Write to MH i2c: F0 00 00 9D 07 93 [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: F0 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: F0 09 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: F0 09 00 9D 07 00 9D 0D BA 66 94 51 63 64 12 [13:26:53]GetLastDocTimeStamp 1723469132 [13:26:53]current date 1723469213 [13:26:53]FM_GetShiftState [13:26:53]SAM_PROTO_GetShiftState [13:26:53]wFMCommunicate request_size=4 [13:26:53]MH_SAM_APDU [13:26:53]CAPDU: 80 13 01 00 [13:26:53]Write to MH i2c: E2 08 00 9E 07 80 13 01 00 00 00 00 00 22 [13:26:53]Write i2c OK [13:26:53]MH_I2C_Read... [13:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:53]Read from MH i2c: E2 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 [13:26:53]MH_I2C_Read... [13:26:53]Read from MH i2c: E2 0E 00 9E 07 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 0F [13:26:53]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:26:53]wFMCommunicate OK [13:26:53]SAM_PROTO_GetShiftState done [13:26:53]FM_GetShiftState done [13:26:53]opened in 1723423336 [13:26:53]opened+sec_in_day 1723509736 [13:26:53]quantity*price = 100068 [13:26:53]sum+1 = 100069 [13:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.68 ÐСП 1% : 8.86 ÐДС 12% : 106.27 Ðаличными: 0.00 Безнал.: 1000.68 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 35 12.08.2024 13:26 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70603 ФПД: 91591907320314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T132653&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70603&fm=91591907320314&tin=02508201610067®Number=0000000000090913&sum=100068 [13:26:54]StoreToDocumentArchive [13:26:54]shift 465 fd 70603 [13:26:54]save to /storage/0465/doc_00070603 [13:26:54]save last doc name /storage/0465/doc_00070603 to /storage/kkm_last_doc_name [13:26:54]save OK [13:26:54]Clear old archive folders... [13:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:54]tlvbuf is 010DD3E0 [13:26:54]SAM_PROTO_ClearQueue [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 09 00 00 [13:26:54]Write to MH i2c: E2 08 00 AB 07 80 09 00 00 00 00 00 00 24 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]SAM_PROTO_ClearQueue done [13:26:54]KKMCreateOFDPacket [13:26:54]OFDProtocolAddRootSTLVToBuf [13:26:54]FM_MakeSignedData [13:26:54]FM_MakeSignedData [13:26:54]SAM_PROTO_SignData [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 01 02 [13:26:54]Write to MH i2c: E2 08 00 AC 07 80 0D 01 02 00 00 00 00 2C [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]wFMCommunicate request_size=255 [13:26:54]MH_SAM_APDU [13:26: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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9D 0D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CB 13 01 00 35 04 06 00 53 4D 67 19 [13:26:54]Write to MH i2c: E2 02 01 AD 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9D 0D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CB 13 01 00 35 04 06 00 53 4D 67 19 00 00 97 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]wFMCommunicate request_size=7 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 02 02 02 A1 FA [13:26:54]Write to MH i2c: E2 0A 00 AE 07 80 0D 02 02 02 00 A1 FA 00 00 CE [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [13:26:54]RAPDU: 90 00 [13:26:54]wFMCommunicate OK [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 0D 03 02 [13:26:54]Write to MH i2c: E2 08 00 AF 07 80 0D 03 02 00 00 00 00 31 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 0B 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 0B 00 AF 07 00 C2 CB B8 1E BF 69 48 9C 90 00 A1 [13:26:54]RAPDU: C2 CB B8 1E BF 69 48 9C 90 00 [13:26:54]wFMCommunicate OK [13:26:54]SAM_PROTO_SignData done [13:26:54]FM_MakeSignedData done [13:26:54]CreateOFDProtocolMessage [13:26:54]wFMCommunicate request_size=4 [13:26:54]MH_SAM_APDU [13:26:54]CAPDU: 80 11 00 00 [13:26:54]Write to MH i2c: E2 08 00 B0 07 80 11 00 00 00 00 00 00 31 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:54]Read from MH i2c: E2 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: E2 17 00 B0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 86 [13:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:26:54]wFMCommunicate OK [13:26:54]CreateOFDProtocolMessage done [13:26:54]OFDSenderStorePacket 70603 [13:26:54]StoreOFDPacket docnum=70603 [13:26:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 B2 C6 04 01 6F C2 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 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9D 0D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CB 13 01 00 35 04 06 00 53 4D 67 19 A1 FA C2 CB B8 1E BF 69 48 9C [13:26:54]CheckFolder [13:26:54]dirname=/storage/ofd_packets [13:26:54]CheckFolder done [13:26:54]ProducePacketName [13:26:54]name=ofd_packets/00070603 [13:26:54]NVStorageSaveData ofd_packets/00070603 [13:26:54]File name is /storage/ofd_packets/00070603 [13:26:54]Write 298 bytes [13:26:54]NVStorageSaveData done [13:26:54]OFDSenderStorePacket done [13:26:54]KKMCreateOFDPacket done [13:26:54]NVStorageSaveData kkm_last_timestamp [13:26:54]File name is /storage/kkm_last_timestamp [13:26:54]Write 4 bytes [13:26:54]NVStorageSaveData done [13:26:54]ExternCall_PrintAddStr [13:26:54]wPrintStart [13:26:54]Write to MH i2c: 01 00 00 B1 07 B8 [13:26:54]Write i2c OK [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 07 00 [13:26:54]MH_I2C_Read... [13:26:54]Read from MH i2c: 01 07 00 B1 07 00 00 00 00 00 FF 0F CD [13:26:54]RasterBufferAndPrint [13:26:54]line Счет N : (1)141042 [13:26:54]line ИÐÐ: 02508201610067 [13:26:54]line Контрольно-КаÑÑовый Чек [13:26:54]line ПРОДÐЖР[13:26:54]line ТРК (МРК, ГÐК) : 34 [13:26:54]line Товар: 2710194210 [13:26:54]line ДТ-К-5 [13:26:54]line 13.450 * 74.40 [13:26:54]line = 1000.68 [13:26:54]line ÐДС 12% ÐСП 1% [13:26:54]line > о реализуемом товаре [13:26:54]line ИТОГО: 1000.68 [13:26:54]line ÐСП 1% : 8.86 [13:26:54]line ÐДС 12% : 106.27 [13:26:54]line Ðаличными: 0.00 [13:26:54]line Безнал.: 1000.68 [13:26:54]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [13:26:54]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [13:26:54]line СÐО: Общий режим [13:26:54]line Чек 35 12.08.2024 13:26 [13:26:54]line Смена: 465 ФФД: 1.0 [13:26:54]line ЗÐМ: 0300000140 [13:26:54]line РÐМ: 0000000000090913 [13:26:54]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:26:54]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [13:26:54]line ФМ: 0000000000874915 [13:26:54]line ФД: 70603 [13:26:54]line ФПД: 91591907320314 [13:26:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T132653&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70603&fm=91591907320314&tin=02508201610067®Number=0000000000090913&sum=100068 [13:26:55]OFD Sender: Processing packet 70603 [packets to send 67, broken 66] [13:26:55]ProducePacketName [13:26:55]name=ofd_packets/00070603 [13:26:55]OFD Sender: To server: ‡•öpG, [13:26:55]CommunicateWithHost lk.salyk.kg:30040 [13:26:55]ConnectInit lk.salyk.kg [13:26:55]written 0, free lines is 4095 [13:26:55]Connected sock=10 [13:26: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 39 31 35 0C 01 00 00 B2 C6 04 01 6F C2 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 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9D 0D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CB 13 01 00 35 04 06 00 53 4D 67 19 A1 FA C2 CB B8 1E BF 69 48 9C [13:26:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A5 41 47 00 27 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 39 31 35 10 04 04 00 CB 13 01 00 F4 03 04 00 8A B4 B9 66 B6 04 01 00 00 BA D4 CB 41 15 7A FE 58 [13:26:55]CommunicateWithHost err = 0 [13:26:55]CheckOFDResponse [13:26:55]1017 (14) - 77093643461234 [13:26:55]1041 (16) - 0000000000874915 [13:26:55]1040 (4) - 70603 [13:26:55]1012 (4) - 12.08.2024 07:06 [13:26:55]1206 (1) - 0 [13:26:55]OFD Sender: Remove packet 70603 [13:26:55]ProducePacketName [13:26:55]name=ofd_packets/00070603 [13:26:55]NVStorageDeleteData [13:26:55]Write to MH i2c: 01 00 00 DB 07 E2 [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: 01 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: 01 07 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: 01 07 00 DB 07 00 00 00 00 00 F4 0C E9 [13:26:55]RasterBufferAndPrint [13:26:55]line [13:26:55]line [13:26:55]line [13:26:55]line [13:26:55]line [13:26:55]written 0, free lines is 3322 [13:26:55]MH_Cut [13:26:55]Write to MH i2c: D1 01 00 E2 07 01 BB [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: D1 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: D1 01 00 [13:26:55]MH_I2C_Read... [13:26:55]Read from MH i2c: D1 01 00 E2 07 00 BA [13:26:55]Write to MH i2c: 01 00 00 E3 07 EA [13:26:55]Write i2c OK [13:26:55]MH_I2C_Read... [13:26:55]OFD Sender: No OFD packet to send [13:26:56]*** Cut start [13:26:56]*** Purtial cut [13:26:56]*** Stage 1: CUTSNS_PIN = 1 [13:26:56]Read from MH i2c: 01 [13:26:56]MH_I2C_Read... [13:26:56]*** Stop cut motor [13:26:56]*** Cut end [13:26:56]Read from MH i2c: 01 07 00 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 FF 0F FF [13:26:56]process_action close_receipt done [13:26:56]requested_data is exist [13:26:56]produce_requested_data [13:26:56]requested_item fm.sn is exist - process it [13:26:56]wFMCommunicate request_size=4 [13:26:56]MH_SAM_APDU [13:26:56]CAPDU: 80 11 00 00 [13:26:56]Write to MH i2c: E2 08 00 E4 07 80 11 00 00 00 00 00 00 65 [13:26:56]Write i2c OK [13:26:56]MH_I2C_Read... [13:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:56]Read from MH i2c: E2 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: E2 17 00 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: E2 17 00 E4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 BA [13:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:26:56]wFMCommunicate OK [13:26:56]requested_item fd.num is exist - process it [13:26:56]SAM_PROTO_GetFieldsCounters [13:26:56]wFMCommunicate request_size=4 [13:26:56]MH_SAM_APDU [13:26:56]CAPDU: 80 13 00 00 [13:26:56]Write to MH i2c: E2 08 00 E5 07 80 13 00 00 00 00 00 00 68 [13:26:56]Write i2c OK [13:26:56]MH_I2C_Read... [13:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:56]Read from MH i2c: E2 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: E2 62 00 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: E2 62 00 E5 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CB 13 01 00 0E 04 04 00 D1 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 A2 [13:26: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CB 13 01 00 0E 04 04 00 D1 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 [13:26:56]wFMCommunicate OK [13:26:56]SAM_PROTO_GetFieldsCounters done [13:26:56]requested_item shift.num is exist - process it [13:26:56]requested_item shift.opened is exist - process it [13:26:56]req_shift_opened [13:26:56]FM_GetShiftState [13:26:56]SAM_PROTO_GetShiftState [13:26:56]wFMCommunicate request_size=4 [13:26:56]MH_SAM_APDU [13:26:56]CAPDU: 80 13 01 00 [13:26:56]Write to MH i2c: E2 08 00 E6 07 80 13 01 00 00 00 00 00 6A [13:26:56]Write i2c OK [13:26:56]MH_I2C_Read... [13:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:56]Read from MH i2c: E2 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: E2 0E 00 [13:26:56]MH_I2C_Read... [13:26:56]Read from MH i2c: E2 0E 00 E6 07 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 57 [13:26:56]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:26:56]wFMCommunicate OK [13:26:56]SAM_PROTO_GetShiftState done [13:26:56]FM_GetShiftState done [13:26:56]req_shift_opened done [13:26:56]requested_item shift.open_date is exist - process it [13:26:56]req_shift_open_date [13:26:56]req_shift_open_date done [13:26:56]produce_requested_data done [13:26:56]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70603,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [13:26:56]process_action_free close_receipt [13:26:56]json_value_free [13:26:56]json_value_free done [13:26:56]process_json_proto returns [13:26:56]Send response to host [13:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70603,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [13:26:56]free response buf [13:26:56]execute_script done [13:26:56]execute_script returns [13:26:56]free content buf [13:26:56]Sock 9.Close socket [13:26:56]Sock 9.Thread stoped [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:11]int [13:31:11]Write to MH i2c: 01 00 00 E7 07 EE [13:31:11]*** FLAG_PRN_KEY set [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 E7 07 00 08 00 00 00 FF 0F 0B [13:31:11]state=0 [13:31:11]Key pressed [13:31:11]Feed [13:31:11]Write to MH i2c: D8 00 00 E8 07 C6 [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: D8 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: D8 01 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: D8 01 00 E8 07 00 C7 [13:31:11]int [13:31:11]Write to MH i2c: 01 00 00 E9 07 F0 [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 E9 07 00 48 00 00 00 3C 00 7B [13:31:11]state=2 [13:31:11]Key pressed [13:31:11]int [13:31:11]Write to MH i2c: 01 00 00 EA 07 F1 [13:31:11]*** FLAG_PRN_KEY reset [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 F6 0F FD [13:31:11]state=2 [13:31:11]Stop feed [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:08]accept exits with 7 [13:43:08]New connection [13:43:08]New thread 3066699108 created [13:43:08]Thread 3066842468 joined [13:43:08]Waiting for new connection... [13:43:08] Sock 7.Parse request [13:43:08]Sock 7.Check first char [13:43:08]Sock 7.First char is OK [13:43:08]request: POST /json_proto HTTP/1.0 [13:43:08]Method: POST [13:43:08]URL: /json_proto [13:43:08]Method is POST - this is cgi request [13:43:08]url: /json_proto [13:43:08]query_string will be loaded in cgi processing [13:43:08]execute_cgi json_proto POST (null) [13:43:08]execute_cgi path=json_proto method=POST [13:43:08]POST find Content-Length [13:43:08]Host: 172.17.58.67:8080 [13:43:08]Content-Length: 805 [13:43:08]Content-Type: application/json [13:43:08] [13:43:08]POST finish read [13:43:08]Found Content-Length = 805 [13:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:08]execute_script... [13:43:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:08]POST & json_proto [13:43:08]process_json_proto [13:43:08]json parsed OK: [13:43:08]protocol is kg_v1.0 [13:43:08]action value=close_receipt [13:43:08]process_action close_receipt [13:43:08]cmd_close_receipt [13:43:08]MH_GetDate [13:43:08]Write to MH i2c: F0 00 00 EB 07 E1 [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: F0 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: F0 09 00 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: F0 09 00 EB 07 00 6D 11 BA 66 94 51 63 64 34 [13:43:08]GetLastDocTimeStamp 1723469213 [13:43:08]current date 1723470189 [13:43:08]FM_GetShiftState [13:43:08]SAM_PROTO_GetShiftState [13:43:08]wFMCommunicate request_size=4 [13:43:08]MH_SAM_APDU [13:43:08]CAPDU: 80 13 01 00 [13:43:08]Write to MH i2c: E2 08 00 EC 07 80 13 01 00 00 00 00 00 70 [13:43:08]Write i2c OK [13:43:08]MH_I2C_Read... [13:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:08]Read from MH i2c: E2 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: E2 0E 00 [13:43:08]MH_I2C_Read... [13:43:08]Read from MH i2c: E2 0E 00 EC 07 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 5D [13:43:08]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:43:08]wFMCommunicate OK [13:43:08]SAM_PROTO_GetShiftState done [13:43:08]FM_GetShiftState done [13:43:08]opened in 1723423336 [13:43:08]opened+sec_in_day 1723509736 [13:43:08]quantity*price = 50018 [13:43:08]sum+1 = 50019 [13:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 36 12.08.2024 13:43 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70604 ФПД: 224155528772936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T134309&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70604&fm=224155528772936&tin=02508201610067®Number=0000000000090913&sum=50018 [13:43:09]StoreToDocumentArchive [13:43:09]shift 465 fd 70604 [13:43:09]save to /storage/0465/doc_00070604 [13:43:09]save last doc name /storage/0465/doc_00070604 to /storage/kkm_last_doc_name [13:43:09]save OK [13:43:09]Clear old archive folders... [13:43:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:09]tlvbuf is 010CF260 [13:43:09]SAM_PROTO_ClearQueue [13:43:09]wFMCommunicate request_size=4 [13:43:09]MH_SAM_APDU [13:43:09]CAPDU: 80 09 00 00 [13:43:09]Write to MH i2c: E2 08 00 F9 07 80 09 00 00 00 00 00 00 72 [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:09]Read from MH i2c: E2 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 03 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [13:43:09]RAPDU: 90 00 [13:43:09]wFMCommunicate OK [13:43:09]SAM_PROTO_ClearQueue done [13:43:09]KKMCreateOFDPacket [13:43:09]OFDProtocolAddRootSTLVToBuf [13:43:09]FM_MakeSignedData [13:43:09]FM_MakeSignedData [13:43:09]SAM_PROTO_SignData [13:43:09]wFMCommunicate request_size=4 [13:43:09]MH_SAM_APDU [13:43:09]CAPDU: 80 0D 01 02 [13:43:09]Write to MH i2c: E2 08 00 FA 07 80 0D 01 02 00 00 00 00 7A [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:09]Read from MH i2c: E2 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 03 00 [13:43:09]MH_I2C_Read... [13:43:09]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [13:43:09]RAPDU: 90 00 [13:43:09]wFMCommunicate OK [13:43:09]wFMCommunicate request_size=255 [13:43:09]MH_SAM_APDU [13:43:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 6D 11 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CC 13 01 00 35 04 06 00 CB [13:43:09]Write to MH i2c: E2 02 01 FB 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 6D 11 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CC 13 01 00 35 04 06 00 CB 00 00 5B [13:43:09]Write i2c OK [13:43:09]MH_I2C_Read... [13:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:10]Read from MH i2c: E2 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 03 00 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [13:43:10]RAPDU: 90 00 [13:43:10]wFMCommunicate OK [13:43:10]wFMCommunicate request_size=10 [13:43:10]MH_SAM_APDU [13:43:10]CAPDU: 80 0D 02 02 05 DE 46 AA BD 48 [13:43:10]Write to MH i2c: E2 0D 00 FC 07 80 0D 02 02 05 00 DE 46 AA BD 48 00 00 5A [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:10]Read from MH i2c: E2 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 03 00 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [13:43:10]RAPDU: 90 00 [13:43:10]wFMCommunicate OK [13:43:10]wFMCommunicate request_size=4 [13:43:10]MH_SAM_APDU [13:43:10]CAPDU: 80 0D 03 02 [13:43:10]Write to MH i2c: E2 08 00 FD 07 80 0D 03 02 00 00 00 00 7F [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:10]Read from MH i2c: E2 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 0B 00 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 0B 00 FD 07 00 48 DE C7 36 D1 CE 16 6A 90 00 C2 [13:43:10]RAPDU: 48 DE C7 36 D1 CE 16 6A 90 00 [13:43:10]wFMCommunicate OK [13:43:10]SAM_PROTO_SignData done [13:43:10]FM_MakeSignedData done [13:43:10]CreateOFDProtocolMessage [13:43:10]wFMCommunicate request_size=4 [13:43:10]MH_SAM_APDU [13:43:10]CAPDU: 80 11 00 00 [13:43:10]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:10]Read from MH i2c: E2 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 17 00 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D4 [13:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:43:10]wFMCommunicate OK [13:43:10]CreateOFDProtocolMessage done [13:43:10]OFDSenderStorePacket 70604 [13:43:10]StoreOFDPacket docnum=70604 [13:43:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 82 D8 07 01 78 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 6D 11 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CC 13 01 00 35 04 06 00 CB DE 46 AA BD 48 48 DE C7 36 D1 CE 16 6A [13:43:10]CheckFolder [13:43:10]dirname=/storage/ofd_packets [13:43:10]CheckFolder done [13:43:10]ProducePacketName [13:43:10]name=ofd_packets/00070604 [13:43:10]NVStorageSaveData ofd_packets/00070604 [13:43:10]File name is /storage/ofd_packets/00070604 [13:43:10]Write 301 bytes [13:43:10]NVStorageSaveData done [13:43:10]OFDSenderStorePacket done [13:43:10]KKMCreateOFDPacket done [13:43:10]NVStorageSaveData kkm_last_timestamp [13:43:10]File name is /storage/kkm_last_timestamp [13:43:10]Write 4 bytes [13:43:10]NVStorageSaveData done [13:43:10]ExternCall_PrintAddStr [13:43:10]wPrintStart [13:43:10]Write to MH i2c: 01 00 00 FF 07 06 [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: 01 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: 01 07 00 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 FF 0F 1B [13:43:10]RasterBufferAndPrint [13:43:10]line Счет N : (1)141043 [13:43:10]line ИÐÐ: 02508201610067 [13:43:10]line Контрольно-КаÑÑовый Чек [13:43:10]line ПРОДÐЖР[13:43:10]line ТРК (МРК, ГÐК) : 31 [13:43:10]line Товар: 2710124130 [13:43:10]line Ðи-92-К-5 [13:43:10]line 7.590 * 65.90 [13:43:10]line = 500.18 [13:43:10]line ÐДС 12% ÐСП 1% [13:43:10]line > о реализуемом товаре [13:43:10]line ИТОГО: 500.18 [13:43:10]line ÐСП 1% : 4.43 [13:43:10]line ÐДС 12% : 53.12 [13:43:10]line Ðаличными: 0.00 [13:43:10]line Безнал.: 500.18 [13:43:10]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [13:43:10]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [13:43:10]line СÐО: Общий режим [13:43:10]line Чек 36 12.08.2024 13:43 [13:43:10]line Смена: 465 ФФД: 1.0 [13:43:10]line ЗÐМ: 0300000140 [13:43:10]line РÐМ: 0000000000090913 [13:43:10]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:43:10]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [13:43:10]line ФМ: 0000000000874915 [13:43:10]line ФД: 70604 [13:43:10]line ФПД: 224155528772936 [13:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T134309&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70604&fm=224155528772936&tin=02508201610067®Number=0000000000090913&sum=50018 [13:43:10]written 0, free lines is 4095 [13:43:10]OFD Sender: Processing packet 70604 [packets to send 67, broken 66] [13:43:10]ProducePacketName [13:43:10]name=ofd_packets/00070604 [13:43:10]OFD Sender: To server: ‡•öpG, [13:43:10]CommunicateWithHost lk.salyk.kg:30040 [13:43:10]ConnectInit lk.salyk.kg [13:43:10]Connected sock=10 [13:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 82 D8 07 01 78 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 6D 11 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CC 13 01 00 35 04 06 00 CB DE 46 AA BD 48 48 DE C7 36 D1 CE 16 6A [13:43:10]Write to MH i2c: 01 00 00 29 08 31 [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: 01 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: 01 07 00 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 0A 0D 4F [13:43:10]RasterBufferAndPrint [13:43:10]line [13:43:10]line [13:43:10]line [13:43:10]line [13:43:10]line [13:43:10]written 0, free lines is 3344 [13:43:10]MH_Cut [13:43:10]Write to MH i2c: D1 01 00 30 08 01 0A [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: D1 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: D1 01 00 [13:43:10]MH_I2C_Read... [13:43:10]Read from MH i2c: D1 01 00 30 08 00 09 [13:43:10]Write to MH i2c: 01 00 00 31 08 39 [13:43:10]Write i2c OK [13:43:10]MH_I2C_Read... [13:43:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 44 60 47 00 E8 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 39 31 35 10 04 04 00 CC 13 01 00 F4 03 04 00 5A B8 B9 66 B6 04 01 00 00 9E 26 EA 31 E8 46 06 31 [13:43:10]CommunicateWithHost err = 0 [13:43:10]CheckOFDResponse [13:43:10]1017 (14) - 77093643461234 [13:43:10]1041 (16) - 0000000000874915 [13:43:10]1040 (4) - 70604 [13:43:10]1012 (4) - 12.08.2024 07:23 [13:43:10]1206 (1) - 0 [13:43:10]OFD Sender: Remove packet 70604 [13:43:10]ProducePacketName [13:43:10]name=ofd_packets/00070604 [13:43:10]NVStorageDeleteData [13:43:11]OFD Sender: No OFD packet to send [13:43:11]*** Cut start [13:43:11]*** Purtial cut [13:43:11]*** CUTSNS_PIN = 0 [13:43:11]*** Stage 1: CUTSNS_PIN = 1 [13:43:13]Read from MH i2c: 01 [13:43:13]MH_I2C_Read... [13:43:13]*** Stop cut motor [13:43:13]*** Cut end [13:43:13]Read from MH i2c: 01 07 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: 01 07 00 31 08 00 00 00 00 00 FF 0F 4E [13:43:13]process_action close_receipt done [13:43:13]requested_data is exist [13:43:13]produce_requested_data [13:43:13]requested_item fm.sn is exist - process it [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 11 00 00 [13:43:13]Write to MH i2c: E2 08 00 32 08 80 11 00 00 00 00 00 00 B4 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 17 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 17 00 32 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 09 [13:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [13:43:13]wFMCommunicate OK [13:43:13]requested_item fd.num is exist - process it [13:43:13]SAM_PROTO_GetFieldsCounters [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 13 00 00 [13:43:13]Write to MH i2c: E2 08 00 33 08 80 13 00 00 00 00 00 00 B7 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 62 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 62 00 33 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CC 13 01 00 0E 04 04 00 D1 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 F5 [13: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CC 13 01 00 0E 04 04 00 D1 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 [13:43:13]wFMCommunicate OK [13:43:13]SAM_PROTO_GetFieldsCounters done [13:43:13]requested_item shift.num is exist - process it [13:43:13]requested_item shift.opened is exist - process it [13:43:13]req_shift_opened [13:43:13]FM_GetShiftState [13:43:13]SAM_PROTO_GetShiftState [13:43:13]wFMCommunicate request_size=4 [13:43:13]MH_SAM_APDU [13:43:13]CAPDU: 80 13 01 00 [13:43:13]Write to MH i2c: E2 08 00 34 08 80 13 01 00 00 00 00 00 B9 [13:43:13]Write i2c OK [13:43:13]MH_I2C_Read... [13:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:13]Read from MH i2c: E2 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 0E 00 [13:43:13]MH_I2C_Read... [13:43:13]Read from MH i2c: E2 0E 00 34 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 A6 [13:43:13]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [13:43:13]wFMCommunicate OK [13:43:13]SAM_PROTO_GetShiftState done [13:43:13]FM_GetShiftState done [13:43:13]req_shift_opened done [13:43:13]requested_item shift.open_date is exist - process it [13:43:13]req_shift_open_date [13:43:13]req_shift_open_date done [13:43:13]produce_requested_data done [13:43:13]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70604,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [13:43:13]process_action_free close_receipt [13:43:13]json_value_free [13:43:13]json_value_free done [13:43:13]process_json_proto returns [13:43:13]Send response to host [13:43:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70604,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [13:43:13]free response buf [13:43:13]execute_script done [13:43:13]execute_script returns [13:43:13]free content buf [13:43:13]Sock 7.Close socket [13:43:13]Sock 7.Thread stoped [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]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:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:44]int [13:57:44]Write to MH i2c: 01 00 00 35 08 3D [13:57:44]*** FLAG_PRN_KEY set [13:57:44]Write i2c OK [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: 01 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: 01 07 00 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: 01 07 00 35 08 00 08 00 00 00 FF 0F 5A [13:57:44]state=0 [13:57:44]Key pressed [13:57:44]Feed [13:57:44]Write to MH i2c: D8 00 00 36 08 15 [13:57:44]Write i2c OK [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: D8 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: D8 01 00 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: D8 01 00 36 08 00 16 [13:57:44]int [13:57:44]Write to MH i2c: 01 00 00 37 08 3F [13:57:44]Write i2c OK [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: 01 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: 01 07 00 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: 01 07 00 37 08 00 48 00 00 00 3C 00 CA [13:57:44]state=2 [13:57:44]Key pressed [13:57:44]int [13:57:44]Write to MH i2c: 01 00 00 38 08 40 [13:57:44]*** FLAG_PRN_KEY reset [13:57:44]Write i2c OK [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: 01 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: 01 07 00 [13:57:44]MH_I2C_Read... [13:57:44]Read from MH i2c: 01 07 00 38 08 00 00 00 00 00 F5 0F 4B [13:57:44]state=2 [13:57:44]Stop feed [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:16]accept exits with 9 [14:00:16]New connection [14:00:16]New thread 3066842468 created [14:00:16]Thread 3066699108 joined [14:00:16]Waiting for new connection... [14:00:16] Sock 9.Parse request [14:00:16]Sock 9.Check first char [14:00:16]Sock 9.First char is OK [14:00:16]request: POST /json_proto HTTP/1.0 [14:00:16]Method: POST [14:00:16]URL: /json_proto [14:00:16]Method is POST - this is cgi request [14:00:16]url: /json_proto [14:00:16]query_string will be loaded in cgi processing [14:00:16]execute_cgi json_proto POST (null) [14:00:16]execute_cgi path=json_proto method=POST [14:00:16]POST find Content-Length [14:00:16]Host: 172.17.58.67:8080 [14:00:16]Content-Length: 816 [14:00:16]Content-Type: application/json [14:00:16] [14:00:16]POST finish read [14:00:16]Found Content-Length = 816 [14:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 53.770, "sum" : 4000.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" : 4000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:16]execute_script... [14:00:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 53.770, "sum" : 4000.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" : 4000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:16]POST & json_proto [14:00:16]process_json_proto [14:00:16]json parsed OK: [14:00:16]protocol is kg_v1.0 [14:00:16]action value=close_receipt [14:00:16]process_action close_receipt [14:00:16]cmd_close_receipt [14:00:16]MH_GetDate [14:00:16]Write to MH i2c: F0 00 00 39 08 30 [14:00:16]Write i2c OK [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: F0 [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: F0 09 00 [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: F0 09 00 39 08 00 71 15 BA 66 94 51 63 64 8B [14:00:16]GetLastDocTimeStamp 1723470189 [14:00:16]current date 1723471217 [14:00:16]FM_GetShiftState [14:00:16]SAM_PROTO_GetShiftState [14:00:16]wFMCommunicate request_size=4 [14:00:16]MH_SAM_APDU [14:00:16]CAPDU: 80 13 01 00 [14:00:16]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [14:00:16]Write i2c OK [14:00:16]MH_I2C_Read... [14:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:16]Read from MH i2c: E2 [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: E2 0E 00 [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 AC [14:00:16]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [14:00:16]wFMCommunicate OK [14:00:16]SAM_PROTO_GetShiftState done [14:00:16]FM_GetShiftState done [14:00:16]opened in 1723423336 [14:00:16]opened+sec_in_day 1723509736 [14:00:16]quantity*price = 400048 [14:00:16]sum+1 = 400050 [14:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.49 ÐСП 1% : 35.40 ÐДС 12% : 424.83 Ðаличными: 0.00 Безнал.: 4000.49 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 37 12.08.2024 14:00 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70605 ФПД: 255908276743888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T140017&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70605&fm=255908276743888&tin=02508201610067®Number=0000000000090913&sum=400049 [14:00:17]StoreToDocumentArchive [14:00:17]shift 465 fd 70605 [14:00:17]save to /storage/0465/doc_00070605 [14:00:17]save last doc name /storage/0465/doc_00070605 to /storage/kkm_last_doc_name [14:00:17]save OK [14:00:17]Clear old archive folders... [14:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:00:17]tlvbuf is 010D5540 [14:00:17]SAM_PROTO_ClearQueue [14:00:17]wFMCommunicate request_size=4 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 09 00 00 [14:00:17]Write to MH i2c: E2 08 00 47 08 80 09 00 00 00 00 00 00 C1 [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:17]Read from MH i2c: E2 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [14:00:17]RAPDU: 90 00 [14:00:17]wFMCommunicate OK [14:00:17]SAM_PROTO_ClearQueue done [14:00:17]KKMCreateOFDPacket [14:00:17]OFDProtocolAddRootSTLVToBuf [14:00:17]FM_MakeSignedData [14:00:17]FM_MakeSignedData [14:00:17]SAM_PROTO_SignData [14:00:17]wFMCommunicate request_size=4 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 0D 01 02 [14:00:17]Write to MH i2c: E2 08 00 48 08 80 0D 01 02 00 00 00 00 C9 [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:17]Read from MH i2c: E2 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [14:00:17]RAPDU: 90 00 [14:00:17]wFMCommunicate OK [14:00:17]wFMCommunicate request_size=255 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 00 00 00 00 00 00 39 04 06 00 B1 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 71 15 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CD 13 01 00 35 04 06 00 E8 BF 49 EE [14:00:17]Write to MH i2c: E2 02 01 49 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 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 00 00 00 00 00 00 39 04 06 00 B1 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 71 15 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CD 13 01 00 35 04 06 00 E8 BF 49 EE 00 00 76 [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:17]Read from MH i2c: E2 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [14:00:17]RAPDU: 90 00 [14:00:17]wFMCommunicate OK [14:00:17]wFMCommunicate request_size=7 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 0D 02 02 02 2E D0 [14:00:17]Write to MH i2c: E2 0A 00 4A 08 80 0D 02 02 02 00 2E D0 00 00 CE [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:17]Read from MH i2c: E2 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [14:00:17]RAPDU: 90 00 [14:00:17]wFMCommunicate OK [14:00:17]wFMCommunicate request_size=4 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 0D 03 02 [14:00:17]Write to MH i2c: E2 08 00 4B 08 80 0D 03 02 00 00 00 00 CE [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 0B 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 0B 00 4B 08 00 EF F5 5B DC 29 66 35 4E 90 00 FC [14:00:18]RAPDU: EF F5 5B DC 29 66 35 4E 90 00 [14:00:18]wFMCommunicate OK [14:00:18]SAM_PROTO_SignData done [14:00:18]FM_MakeSignedData done [14:00:18]CreateOFDProtocolMessage [14:00:18]wFMCommunicate request_size=4 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 11 00 00 [14:00:18]Write to MH i2c: E2 08 00 4C 08 80 11 00 00 00 00 00 00 CE [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 17 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 17 00 4C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 23 [14:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:00:18]wFMCommunicate OK [14:00:18]CreateOFDProtocolMessage done [14:00:18]OFDSenderStorePacket 70605 [14:00:18]StoreOFDPacket docnum=70605 [14:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 F4 FE 04 01 F4 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 00 00 00 00 00 00 39 04 06 00 B1 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 71 15 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CD 13 01 00 35 04 06 00 E8 BF 49 EE 2E D0 EF F5 5B DC 29 66 35 4E [14:00:18]CheckFolder [14:00:18]dirname=/storage/ofd_packets [14:00:18]CheckFolder done [14:00:18]ProducePacketName [14:00:18]name=ofd_packets/00070605 [14:00:18]NVStorageSaveData ofd_packets/00070605 [14:00:18]File name is /storage/ofd_packets/00070605 [14:00:18]Write 298 bytes [14:00:18]NVStorageSaveData done [14:00:18]OFDSenderStorePacket done [14:00:18]KKMCreateOFDPacket done [14:00:18]NVStorageSaveData kkm_last_timestamp [14:00:18]File name is /storage/kkm_last_timestamp [14:00:18]Write 4 bytes [14:00:18]NVStorageSaveData done [14:00:18]ExternCall_PrintAddStr [14:00:18]wPrintStart [14:00:18]Write to MH i2c: 01 00 00 4D 08 55 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [14:00:18]RasterBufferAndPrint [14:00:18]line Счет N : (1)141044 [14:00:18]line ИÐÐ: 02508201610067 [14:00:18]line Контрольно-КаÑÑовый Чек [14:00:18]line ПРОДÐЖР[14:00:18]line ТРК (МРК, ГÐК) : 14 [14:00:18]line Товар: 2710194210 [14:00:18]line ДТ-К-5 [14:00:18]line 53.770 * 74.40 [14:00:18]line = 4000.49 [14:00:18]line ÐДС 12% ÐСП 1% [14:00:18]line > о реализуемом товаре [14:00:18]line ИТОГО: 4000.49 [14:00:18]line ÐСП 1% : 35.40 [14:00:18]line ÐДС 12% : 424.83 [14:00:18]line Ðаличными: 0.00 [14:00:18]line Безнал.: 4000.49 [14:00:18]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [14:00:18]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [14:00:18]line СÐО: Общий режим [14:00:18]line Чек 37 12.08.2024 14:00 [14:00:18]line Смена: 465 ФФД: 1.0 [14:00:18]line ЗÐМ: 0300000140 [14:00:18]line РÐМ: 0000000000090913 [14:00:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:00:18]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [14:00:18]line ФМ: 0000000000874915 [14:00:18]line ФД: 70605 [14:00:18]line ФПД: 255908276743888 [14:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T140017&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70605&fm=255908276743888&tin=02508201610067®Number=0000000000090913&sum=400049 [14:00:18]OFD Sender: Processing packet 70605 [packets to send 67, broken 66] [14:00:18]ProducePacketName [14:00:18]name=ofd_packets/00070605 [14:00:18]OFD Sender: To server: ‡•öpG, [14:00:18]CommunicateWithHost lk.salyk.kg:30040 [14:00:18]ConnectInit lk.salyk.kg [14:00:18]written 0, free lines is 4095 [14:00:18]Connected sock=10 [14:00:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 F4 FE 04 01 F4 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A D2 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B1 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B1 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 00 00 00 00 00 00 39 04 06 00 B1 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 71 15 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CD 13 01 00 35 04 06 00 E8 BF 49 EE 2E D0 EF F5 5B DC 29 66 35 4E [14:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F0 1B 47 00 29 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CD 13 01 00 F4 03 04 00 5E BC B9 66 B6 04 01 00 00 F2 CB 7F 65 BD 99 AC C8 [14:00:18]CommunicateWithHost err = 0 [14:00:18]CheckOFDResponse [14:00:18]1017 (14) - 77093643461234 [14:00:18]1041 (16) - 0000000000874915 [14:00:18]1040 (4) - 70605 [14:00:18]1012 (4) - 12.08.2024 07:40 [14:00:18]1206 (1) - 0 [14:00:18]OFD Sender: Remove packet 70605 [14:00:18]ProducePacketName [14:00:18]name=ofd_packets/00070605 [14:00:18]NVStorageDeleteData [14:00:18]Write to MH i2c: 01 00 00 77 08 7F [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 F3 0C 85 [14:00:18]RasterBufferAndPrint [14:00:18]line [14:00:18]line [14:00:18]line [14:00:18]line [14:00:18]line [14:00:18]written 0, free lines is 3320 [14:00:18]MH_Cut [14:00:18]Write to MH i2c: D1 01 00 7E 08 01 58 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: D1 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: D1 01 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: D1 01 00 7E 08 00 57 [14:00:18]Write to MH i2c: 01 00 00 7F 08 87 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:19]OFD Sender: No OFD packet to send [14:00:19]*** Cut start [14:00:19]*** Purtial cut [14:00:19]*** Stage 1: CUTSNS_PIN = 1 [14:00:19]Read from MH i2c: 01 [14:00:19]MH_I2C_Read... [14:00:19]*** Stop cut motor [14:00:19]*** Cut end [14:00:19]Read from MH i2c: 01 07 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [14:00:19]process_action close_receipt done [14:00:19]requested_data is exist [14:00:19]produce_requested_data [14:00:19]requested_item fm.sn is exist - process it [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 11 00 00 [14:00:19]Write to MH i2c: E2 08 00 80 08 80 11 00 00 00 00 00 00 02 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 17 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 17 00 80 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 57 [14:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:00:19]wFMCommunicate OK [14:00:19]requested_item fd.num is exist - process it [14:00:19]SAM_PROTO_GetFieldsCounters [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 13 00 00 [14:00:19]Write to MH i2c: E2 08 00 81 08 80 13 00 00 00 00 00 00 05 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:20]Read from MH i2c: E2 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: E2 62 00 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: E2 62 00 81 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 47 [14:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 [14:00:20]wFMCommunicate OK [14:00:20]SAM_PROTO_GetFieldsCounters done [14:00:20]requested_item shift.num is exist - process it [14:00:20]requested_item shift.opened is exist - process it [14:00:20]req_shift_opened [14:00:20]FM_GetShiftState [14:00:20]SAM_PROTO_GetShiftState [14:00:20]wFMCommunicate request_size=4 [14:00:20]MH_SAM_APDU [14:00:20]CAPDU: 80 13 01 00 [14:00:20]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [14:00:20]Write i2c OK [14:00:20]MH_I2C_Read... [14:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:20]Read from MH i2c: E2 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: E2 0E 00 [14:00:20]MH_I2C_Read... [14:00:20]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F4 [14:00:20]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [14:00:20]wFMCommunicate OK [14:00:20]SAM_PROTO_GetShiftState done [14:00:20]FM_GetShiftState done [14:00:20]req_shift_opened done [14:00:20]requested_item shift.open_date is exist - process it [14:00:20]req_shift_open_date [14:00:20]req_shift_open_date done [14:00:20]produce_requested_data done [14:00:20]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [14:00:20]process_action_free close_receipt [14:00:20]json_value_free [14:00:20]json_value_free done [14:00:20]process_json_proto returns [14:00:20]Send response to host [14:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [14:00:20]free response buf [14:00:20]execute_script done [14:00:20]execute_script returns [14:00:20]free content buf [14:00:20]Sock 9.Close socket [14:00:20]Sock 9.Thread stoped [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:04]OFD Sender: No OFD packet to send [14:05:07]int [14:05:07]Write to MH i2c: 01 00 00 83 08 8B [14:05:07]*** FLAG_PRN_KEY set [14:05:07]Write i2c OK [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: 01 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: 01 07 00 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: 01 07 00 83 08 00 08 00 00 00 FF 0F A8 [14:05:07]state=0 [14:05:07]Key pressed [14:05:07]Feed [14:05:07]Write to MH i2c: D8 00 00 84 08 63 [14:05:07]Write i2c OK [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: D8 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: D8 01 00 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: D8 01 00 84 08 00 64 [14:05:07]int [14:05:07]Write to MH i2c: 01 00 00 85 08 8D [14:05:07]Write i2c OK [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: 01 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: 01 07 00 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: 01 07 00 85 08 00 48 00 00 00 3C 00 18 [14:05:07]state=2 [14:05:07]Key pressed [14:05:08]int [14:05:08]Write to MH i2c: 01 00 00 86 08 8E [14:05:08]*** FLAG_PRN_KEY reset [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 07 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 F6 0F 9A [14:05:08]state=2 [14:05:08]Stop feed [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:20]accept exits with 7 [14:07:20]New connection [14:07:20]New thread 3066699108 created [14:07:20]Thread 3066842468 joined [14:07:20]Waiting for new connection... [14:07:20] Sock 7.Parse request [14:07:20]Sock 7.Check first char [14:07:20]Sock 7.First char is OK [14:07:20]request: POST /json_proto HTTP/1.0 [14:07:20]Method: POST [14:07:20]URL: /json_proto [14:07:20]Method is POST - this is cgi request [14:07:20]url: /json_proto [14:07:20]query_string will be loaded in cgi processing [14:07:20]execute_cgi json_proto POST (null) [14:07:20]execute_cgi path=json_proto method=POST [14:07:20]POST find Content-Length [14:07:20]Host: 172.17.58.67:8080 [14:07:20]Content-Length: 1184 [14:07:20]Content-Type: application/json [14:07:20] [14:07:20]POST finish read [14:07:20]Found Content-Length = 1184 [14:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141045\u000A12.08.2024 13:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A4205989;993\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:20]execute_script... [14:07:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141045\u000A12.08.2024 13:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A4205989;993\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:20]POST & json_proto [14:07:20]process_json_proto [14:07:20]json parsed OK: [14:07:20]protocol is kg_v1.0 [14:07:20]action value=print_text [14:07:20]process_action print_text [14:07:20]cmd_print_text [14:07:20]ExternCall_PrintAddStr [14:07:20]wPrintStart [14:07:20]Write to MH i2c: 01 00 00 87 08 8F [14:07:20]Write i2c OK [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 07 00 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 07 00 87 08 00 00 00 00 00 FF 0F A4 [14:07:20]RasterBufferAndPrint [14:07:20]line *****ТОВÐРÐЫЙ ЧЕК***** [14:07:20]line ÐЗС 39 [14:07:20]line Партнер нефть [14:07:20]line 02508201610067 [14:07:20]line КаÑÑир : Мирбек к Ð. [14:07:20]line Счет N : (1)141045 [14:07:20]line 12.08.2024 13:26 [14:07:20]line ПРОДÐЖР[14:07:20]line ТРК (МРК, ГÐК): 31 [14:07:20]line Вид ГСМ : 2710124130 [14:07:20]line Ðи-92-К-5 [14:07:20]line 20.000 x 65.90 [14:07:20]line ИТОГ: 1318.00 [14:07:20]line Тип оплаты: Талоны: Партнер нефть [14:07:20]line 4205989;993 [14:07:20]line ______________________ [14:07:20]line (подпиÑÑŒ) [14:07:20]written 0, free lines is 4095 [14:07:21]Write to MH i2c: 01 00 00 9B 08 A3 [14:07:21]Write i2c OK [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: 01 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: 01 07 00 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: 01 07 00 9B 08 00 00 00 00 00 15 0E CD [14:07:21]RasterBufferAndPrint [14:07:21]line [14:07:21]line [14:07:21]line [14:07:21]line [14:07:21]line [14:07:21]written 0, free lines is 3607 [14:07:21]MH_Cut [14:07:21]Write to MH i2c: D1 01 00 A2 08 01 7C [14:07:21]Write i2c OK [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: D1 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: D1 01 00 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: D1 01 00 A2 08 00 7B [14:07:21]Write to MH i2c: 01 00 00 A3 08 AB [14:07:21]Write i2c OK [14:07:21]MH_I2C_Read... [14:07:21]*** Cut start [14:07:21]*** Purtial cut [14:07:21]*** CUTSNS_PIN = 0 [14:07:21]*** Stage 1: CUTSNS_PIN = 1 [14:07:23]Read from MH i2c: 01 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: 01 07 00 [14:07:23]MH_I2C_Read... [14:07:23]*** Stop cut motor [14:07:23]*** Cut end [14:07:23]Read from MH i2c: 01 07 00 A3 08 00 00 00 00 00 FF 0F C0 [14:07:23]process_action print_text done [14:07:23]requested_data is exist [14:07:23]produce_requested_data [14:07:23]requested_item fm.sn is exist - process it [14:07:23]wFMCommunicate request_size=4 [14:07:23]MH_SAM_APDU [14:07:23]CAPDU: 80 11 00 00 [14:07:23]Write to MH i2c: E2 08 00 A4 08 80 11 00 00 00 00 00 00 26 [14:07:23]Write i2c OK [14:07:23]MH_I2C_Read... [14:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:23]Read from MH i2c: E2 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: E2 17 00 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: E2 17 00 A4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7B [14:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:07:23]wFMCommunicate OK [14:07:23]requested_item fd.num is exist - process it [14:07:23]SAM_PROTO_GetFieldsCounters [14:07:23]wFMCommunicate request_size=4 [14:07:23]MH_SAM_APDU [14:07:23]CAPDU: 80 13 00 00 [14:07:23]Write to MH i2c: E2 08 00 A5 08 80 13 00 00 00 00 00 00 29 [14:07:23]Write i2c OK [14:07:23]MH_I2C_Read... [14:07:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:23]Read from MH i2c: E2 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: E2 62 00 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: E2 62 00 A5 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 6B [14:07: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 [14:07:23]wFMCommunicate OK [14:07:23]SAM_PROTO_GetFieldsCounters done [14:07:23]requested_item shift.num is exist - process it [14:07:23]requested_item shift.opened is exist - process it [14:07:23]req_shift_opened [14:07:23]FM_GetShiftState [14:07:23]SAM_PROTO_GetShiftState [14:07:23]wFMCommunicate request_size=4 [14:07:23]MH_SAM_APDU [14:07:23]CAPDU: 80 13 01 00 [14:07:23]Write to MH i2c: E2 08 00 A6 08 80 13 01 00 00 00 00 00 2B [14:07:23]Write i2c OK [14:07:23]MH_I2C_Read... [14:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:24]Read from MH i2c: E2 [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: E2 0E 00 [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: E2 0E 00 A6 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 18 [14:07:24]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [14:07:24]wFMCommunicate OK [14:07:24]SAM_PROTO_GetShiftState done [14:07:24]FM_GetShiftState done [14:07:24]req_shift_opened done [14:07:24]requested_item shift.open_date is exist - process it [14:07:24]req_shift_open_date [14:07:24]req_shift_open_date done [14:07:24]produce_requested_data done [14:07:24]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [14:07:24]process_action_free print_text [14:07:24]json_value_free [14:07:24]json_value_free done [14:07:24]process_json_proto returns [14:07:24]Send response to host [14:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [14:07:24]free response buf [14:07:24]execute_script done [14:07:24]execute_script returns [14:07:24]free content buf [14:07:24]Sock 7.Close socket [14:07:24]Sock 7.Thread stoped [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:14:57]int [14:14:57]Write to MH i2c: 01 00 00 A7 08 AF [14:14:57]*** FLAG_PRN_KEY set [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: 01 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: 01 07 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: 01 07 00 A7 08 00 08 00 00 00 FF 0F CC [14:14:57]state=0 [14:14:57]Key pressed [14:14:57]Feed [14:14:57]Write to MH i2c: D8 00 00 A8 08 87 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: D8 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: D8 01 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: D8 01 00 A8 08 00 88 [14:14:58]int [14:14:58]Write to MH i2c: 01 00 00 A9 08 B1 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 A9 08 00 48 00 00 00 3C 00 3C [14:14:58]state=2 [14:14:58]Key pressed [14:14:58]int [14:14:58]Write to MH i2c: 01 00 00 AA 08 B2 [14:14:58]*** FLAG_PRN_KEY reset [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 AA 08 00 00 00 00 00 F6 0F BE [14:14:58]state=2 [14:14:58]Stop feed [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:13]accept exits with 9 [14:17:13]New connection [14:17:13]New thread 3066842468 created [14:17:13]Thread 3066699108 joined [14:17:13]Waiting for new connection... [14:17:13] Sock 9.Parse request [14:17:13]Sock 9.Check first char [14:17:13]Sock 9.First char is OK [14:17:13]request: POST /json_proto HTTP/1.0 [14:17:13]Method: POST [14:17:13]URL: /json_proto [14:17:13]Method is POST - this is cgi request [14:17:13]url: /json_proto [14:17:13]query_string will be loaded in cgi processing [14:17:13]execute_cgi json_proto POST (null) [14:17:13]execute_cgi path=json_proto method=POST [14:17:13]POST find Content-Length [14:17:13]Host: 172.17.58.67:8080 [14:17:13]Content-Length: 1185 [14:17:13]Content-Type: application/json [14:17:13] [14:17:13]POST finish read [14:17:13]Found Content-Length = 1185 [14:17: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141047\u000A12.08.2024 13:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.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" ] } } [14:17:13]execute_script... [14:17: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141047\u000A12.08.2024 13:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.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" ] } } [14:17:13]POST & json_proto [14:17:13]process_json_proto [14:17:13]json parsed OK: [14:17:13]protocol is kg_v1.0 [14:17:13]action value=print_text [14:17:13]process_action print_text [14:17:13]cmd_print_text [14:17:13]ExternCall_PrintAddStr [14:17:13]wPrintStart [14:17:13]Write to MH i2c: 01 00 00 AB 08 B3 [14:17:13]Write i2c OK [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: 01 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: 01 07 00 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: 01 07 00 AB 08 00 00 00 00 00 FF 0F C8 [14:17:13]RasterBufferAndPrint [14:17:13]line *****ТОВÐРÐЫЙ ЧЕК***** [14:17:13]line ÐЗС 39 [14:17:13]line Партнер нефть [14:17:13]line 02508201610067 [14:17:13]line КаÑÑир : Мирбек к Ð. [14:17:13]line Счет N : (1)141047 [14:17:13]line 12.08.2024 13:36 [14:17:13]line ПРОДÐЖР[14:17:13]line ТРК (МРК, ГÐК): 41 [14:17:13]line Вид ГСМ : 2710124130 [14:17:13]line Ðи-92-К-5 [14:17:13]line 30.000 x 65.90 [14:17:13]line ИТОГ: 1977.00 [14:17:13]line Тип оплаты: ТехнологичеÑкий отпуÑк: [14:17:13]line ______________________ [14:17:13]line (подпиÑÑŒ) [14:17:13]written 0, free lines is 4095 [14:17:13]Write to MH i2c: 01 00 00 BE 08 C6 [14:17:13]Write i2c OK [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: 01 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: 01 07 00 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 2B 0E 06 [14:17:13]RasterBufferAndPrint [14:17:13]line [14:17:13]line [14:17:13]line [14:17:13]line [14:17:13]line [14:17:13]written 0, free lines is 3629 [14:17:13]MH_Cut [14:17:13]Write to MH i2c: D1 01 00 C5 08 01 9F [14:17:13]Write i2c OK [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: D1 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: D1 01 00 [14:17:13]MH_I2C_Read... [14:17:13]Read from MH i2c: D1 01 00 C5 08 00 9E [14:17:13]Write to MH i2c: 01 00 00 C6 08 CE [14:17:13]Write i2c OK [14:17:13]MH_I2C_Read... [14:17:14]*** Cut start [14:17:14]*** Purtial cut [14:17:14]*** Stage 1: CUTSNS_PIN = 1 [14:17:14]Read from MH i2c: 01 [14:17:14]MH_I2C_Read... [14:17:14]*** Stop cut motor [14:17:14]*** Cut end [14:17:14]Read from MH i2c: 01 07 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: 01 07 00 C6 08 00 00 00 00 00 FF 0F E3 [14:17:14]process_action print_text done [14:17:14]requested_data is exist [14:17:14]produce_requested_data [14:17:14]requested_item fm.sn is exist - process it [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 11 00 00 [14:17:14]Write to MH i2c: E2 08 00 C7 08 80 11 00 00 00 00 00 00 49 [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 17 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 17 00 C7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 9E [14:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:17:14]wFMCommunicate OK [14:17:14]requested_item fd.num is exist - process it [14:17:14]SAM_PROTO_GetFieldsCounters [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 13 00 00 [14:17:14]Write to MH i2c: E2 08 00 C8 08 80 13 00 00 00 00 00 00 4C [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 62 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 62 00 C8 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 8E [14:17:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 [14:17:14]wFMCommunicate OK [14:17:14]SAM_PROTO_GetFieldsCounters done [14:17:14]requested_item shift.num is exist - process it [14:17:14]requested_item shift.opened is exist - process it [14:17:14]req_shift_opened [14:17:14]FM_GetShiftState [14:17:14]SAM_PROTO_GetShiftState [14:17:14]wFMCommunicate request_size=4 [14:17:14]MH_SAM_APDU [14:17:14]CAPDU: 80 13 01 00 [14:17:14]Write to MH i2c: E2 08 00 C9 08 80 13 01 00 00 00 00 00 4E [14:17:14]Write i2c OK [14:17:14]MH_I2C_Read... [14:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:14]Read from MH i2c: E2 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 0E 00 [14:17:14]MH_I2C_Read... [14:17:14]Read from MH i2c: E2 0E 00 C9 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 3B [14:17:14]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [14:17:14]wFMCommunicate OK [14:17:14]SAM_PROTO_GetShiftState done [14:17:14]FM_GetShiftState done [14:17:14]req_shift_opened done [14:17:14]requested_item shift.open_date is exist - process it [14:17:14]req_shift_open_date [14:17:14]req_shift_open_date done [14:17:14]produce_requested_data done [14:17:14]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [14:17:14]process_action_free print_text [14:17:14]json_value_free [14:17:14]json_value_free done [14:17:14]process_json_proto returns [14:17:14]Send response to host [14:17:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [14:17:14]free response buf [14:17:14]execute_script done [14:17:14]execute_script returns [14:17:14]free content buf [14:17:14]Sock 9.Close socket [14:17:14]Sock 9.Thread stoped [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:42]int [14:17:42]Write to MH i2c: 01 00 00 CA 08 D2 [14:17:42]*** FLAG_PRN_KEY set [14:17:42]Write i2c OK [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: 01 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: 01 07 00 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: 01 07 00 CA 08 00 08 00 00 00 FF 0F EF [14:17:42]state=0 [14:17:42]Key pressed [14:17:42]Feed [14:17:42]Write to MH i2c: D8 00 00 CB 08 AA [14:17:42]Write i2c OK [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: D8 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: D8 01 00 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: D8 01 00 CB 08 00 AB [14:17:42]int [14:17:42]Write to MH i2c: 01 00 00 CC 08 D4 [14:17:42]Write i2c OK [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: 01 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: 01 07 00 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: 01 07 00 CC 08 00 48 00 00 00 3C 00 5F [14:17:42]state=2 [14:17:42]Key pressed [14:17:43]int [14:17:43]Write to MH i2c: 01 00 00 CD 08 D5 [14:17:43]*** FLAG_PRN_KEY reset [14:17:43]Write i2c OK [14:17:43]MH_I2C_Read... [14:17:43]Read from MH i2c: 01 [14:17:43]MH_I2C_Read... [14:17:43]Read from MH i2c: 01 07 00 [14:17:43]MH_I2C_Read... [14:17:43]Read from MH i2c: 01 07 00 CD 08 00 00 00 00 00 F6 0F E1 [14:17:43]state=2 [14:17:43]Stop feed [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:05]accept exits with 7 [14:19:05]New connection [14:19:05]New thread 3066699108 created [14:19:05]Thread 3066842468 joined [14:19:05]Waiting for new connection... [14:19:05] Sock 7.Parse request [14:19:05]Sock 7.Check first char [14:19:05]Sock 7.First char is OK [14:19:05]request: POST /json_proto HTTP/1.0 [14:19:05]Method: POST [14:19:05]URL: /json_proto [14:19:05]Method is POST - this is cgi request [14:19:05]url: /json_proto [14:19:05]query_string will be loaded in cgi processing [14:19:05]execute_cgi json_proto POST (null) [14:19:05]execute_cgi path=json_proto method=POST [14:19:05]POST find Content-Length [14:19:05]Host: 172.17.58.67:8080 [14:19:05]Content-Length: 1190 [14:19:05]Content-Type: application/json [14:19:05] [14:19:05]POST finish read [14:19:05]Found Content-Length = 1190 [14:19:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141048\u000A12.08.2024 13:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.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\u000A43211\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:05]execute_script... [14:19:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141048\u000A12.08.2024 13:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.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\u000A43211\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:05]POST & json_proto [14:19:05]process_json_proto [14:19:05]json parsed OK: [14:19:05]protocol is kg_v1.0 [14:19:05]action value=print_text [14:19:05]process_action print_text [14:19:05]cmd_print_text [14:19:05]ExternCall_PrintAddStr [14:19:05]wPrintStart [14:19:05]Write to MH i2c: 01 00 00 CE 08 D6 [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 07 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 07 00 CE 08 00 00 00 00 00 FF 0F EB [14:19:05]RasterBufferAndPrint [14:19:05]line *****ТОВÐРÐЫЙ ЧЕК***** [14:19:05]line ÐЗС 39 [14:19:05]line Партнер нефть [14:19:05]line 02508201610067 [14:19:05]line КаÑÑир : Мирбек к Ð. [14:19:05]line Счет N : (1)141048 [14:19:05]line 12.08.2024 13:38 [14:19:05]line ПРОДÐЖР[14:19:05]line ТРК (МРК, ГÐК): 31 [14:19:05]line Вид ГСМ : 2710124130 [14:19:05]line Ðи-92-К-5 [14:19:05]line 30.000 x 65.90 [14:19:05]line ИТОГ: 1977.00 [14:19:05]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [14:19:05]line 43211 [14:19:05]line ______________________ [14:19:05]line (подпиÑÑŒ) [14:19:05]written 0, free lines is 4095 [14:19:05]Write to MH i2c: 01 00 00 E2 08 EA [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 07 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 07 00 E2 08 00 00 00 00 00 11 0E 10 [14:19:05]RasterBufferAndPrint [14:19:05]line [14:19:05]line [14:19:05]line [14:19:05]line [14:19:05]line [14:19:05]written 0, free lines is 3603 [14:19:05]MH_Cut [14:19:05]Write to MH i2c: D1 01 00 E9 08 01 C3 [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: D1 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: D1 01 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: D1 01 00 E9 08 00 C2 [14:19:05]Write to MH i2c: 01 00 00 EA 08 F2 [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:06]*** Cut start [14:19:06]*** Purtial cut [14:19:06]*** CUTSNS_PIN = 0 [14:19:06]*** Stage 1: CUTSNS_PIN = 1 [14:19:08]Read from MH i2c: 01 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 [14:19:08]MH_I2C_Read... [14:19:08]*** Stop cut motor [14:19:08]*** Cut end [14:19:08]Read from MH i2c: 01 07 00 EA 08 00 00 00 00 00 FF 0F 07 [14:19:08]process_action print_text done [14:19:08]requested_data is exist [14:19:08]produce_requested_data [14:19:08]requested_item fm.sn is exist - process it [14:19:08]wFMCommunicate request_size=4 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 11 00 00 [14:19:08]Write to MH i2c: E2 08 00 EB 08 80 11 00 00 00 00 00 00 6D [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 17 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 17 00 EB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C2 [14:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:19:08]wFMCommunicate OK [14:19:08]requested_item fd.num is exist - process it [14:19:08]SAM_PROTO_GetFieldsCounters [14:19:08]wFMCommunicate request_size=4 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 13 00 00 [14:19:08]Write to MH i2c: E2 08 00 EC 08 80 13 00 00 00 00 00 00 70 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:08]*** FLAG_PRN_KEY set [14:19:08]int [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 62 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 62 00 EC 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 B2 [14:19: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 [14:19:08]wFMCommunicate OK [14:19:08]SAM_PROTO_GetFieldsCounters done [14:19:08]requested_item shift.num is exist - process it [14:19:08]requested_item shift.opened is exist - process it [14:19:08]req_shift_opened [14:19:08]FM_GetShiftState [14:19:08]SAM_PROTO_GetShiftState [14:19:08]wFMCommunicate request_size=4 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 13 01 00 [14:19:08]Write to MH i2c: E2 08 00 ED 08 80 13 01 00 00 00 00 00 72 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 0E 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 0E 00 ED 08 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 5F [14:19:08]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [14:19:08]wFMCommunicate OK [14:19:08]SAM_PROTO_GetShiftState done [14:19:08]FM_GetShiftState done [14:19:08]req_shift_opened done [14:19:08]requested_item shift.open_date is exist - process it [14:19:08]req_shift_open_date [14:19:08]req_shift_open_date done [14:19:08]produce_requested_data done [14:19:08]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [14:19:08]process_action_free print_text [14:19:08]json_value_free [14:19:08]json_value_free done [14:19:08]process_json_proto returns [14:19:08]Send response to host [14:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [14:19:08]free response buf [14:19:08]execute_script done [14:19:08]execute_script returns [14:19:08]free content buf [14:19:08]Sock 7.Close socket [14:19:08]Sock 7.Thread stoped [14:19:08]Write to MH i2c: 01 00 00 EE 08 F6 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 EE 08 00 08 00 00 00 FF 0F 13 [14:19:08]state=0 [14:19:08]Key pressed [14:19:08]Feed [14:19:08]Write to MH i2c: D8 00 00 EF 08 CE [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: D8 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: D8 01 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: D8 01 00 EF 08 00 CF [14:19:08]int [14:19:08]Write to MH i2c: 01 00 00 F0 08 F8 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 F0 08 00 48 00 00 00 3C 00 83 [14:19:08]state=2 [14:19:08]Key pressed [14:19:08]int [14:19:08]Write to MH i2c: 01 00 00 F1 08 F9 [14:19:08]*** FLAG_PRN_KEY reset [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 F1 08 00 00 00 00 00 F5 0F 04 [14:19:08]state=2 [14:19:08]Stop feed [14:19:08]int [14:19:08]Write to MH i2c: 01 00 00 F2 08 FA [14:19:08]*** FLAG_PRN_KEY set [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 F2 08 00 08 00 00 00 FF 0F 17 [14:19:08]state=0 [14:19:08]Key pressed [14:19:08]Feed [14:19:08]Write to MH i2c: D8 00 00 F3 08 D2 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: D8 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: D8 01 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: D8 01 00 F3 08 00 D3 [14:19:08]int [14:19:08]Write to MH i2c: 01 00 00 F4 08 FC [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 F4 08 00 48 00 00 00 3C 00 87 [14:19:08]state=2 [14:19:08]Key pressed [14:19:08]int [14:19:08]Write to MH i2c: 01 00 00 F5 08 FD [14:19:08]*** FLAG_PRN_KEY reset [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 F5 08 00 00 00 00 00 F5 0F 08 [14:19:08]state=2 [14:19:08]Stop feed [14:19:09]int [14:19:09]Write to MH i2c: 01 00 00 F6 08 FE [14:19:09]*** FLAG_PRN_KEY set [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 F6 08 00 08 00 00 00 FF 0F 1B [14:19:09]state=0 [14:19:09]Key pressed [14:19:09]Feed [14:19:09]Write to MH i2c: D8 00 00 F7 08 D6 [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: D8 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: D8 01 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: D8 01 00 F7 08 00 D7 [14:19:09]int [14:19:09]Write to MH i2c: 01 00 00 F8 08 00 [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 F8 08 00 48 00 00 00 3C 00 8B [14:19:09]state=2 [14:19:09]Key pressed [14:19:09]int [14:19:09]Write to MH i2c: 01 00 00 F9 08 01 [14:19:09]*** FLAG_PRN_KEY reset [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 F9 08 00 00 00 00 00 F6 0F 0D [14:19:09]state=2 [14:19:09]Stop feed [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]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:11]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:24]accept exits with 9 [14:38:24]New connection [14:38:24]New thread 3066842468 created [14:38:24]Thread 3066699108 joined [14:38:24]Waiting for new connection... [14:38:24] Sock 9.Parse request [14:38:24]Sock 9.Check first char [14:38:24]Sock 9.First char is OK [14:38:24]request: POST /json_proto HTTP/1.0 [14:38:24]Method: POST [14:38:24]URL: /json_proto [14:38:24]Method is POST - this is cgi request [14:38:24]url: /json_proto [14:38:24]query_string will be loaded in cgi processing [14:38:24]execute_cgi json_proto POST (null) [14:38:24]execute_cgi path=json_proto method=POST [14:38:24]POST find Content-Length [14:38:24]Host: 172.17.58.67:8080 [14:38:24]Content-Length: 1179 [14:38:24]Content-Type: application/json [14:38:24] [14:38:24]POST finish read [14:38:24]Found Content-Length = 1179 [14:38:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141049\u000A12.08.2024 13:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4133997\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:24]execute_script... [14:38:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141049\u000A12.08.2024 13:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4133997\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:24]POST & json_proto [14:38:24]process_json_proto [14:38:24]json parsed OK: [14:38:24]protocol is kg_v1.0 [14:38:24]action value=print_text [14:38:24]process_action print_text [14:38:24]cmd_print_text [14:38:24]ExternCall_PrintAddStr [14:38:24]wPrintStart [14:38:24]Write to MH i2c: 01 00 00 FA 08 02 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 FA 08 00 00 00 00 00 FF 0F 17 [14:38:24]RasterBufferAndPrint [14:38:24]line *****ТОВÐРÐЫЙ ЧЕК***** [14:38:24]line ÐЗС 39 [14:38:24]line Партнер нефть [14:38:24]line 02508201610067 [14:38:24]line КаÑÑир : Мирбек к Ð. [14:38:24]line Счет N : (1)141049 [14:38:24]line 12.08.2024 13:57 [14:38:24]line ПРОДÐЖР[14:38:24]line ТРК (МРК, ГÐК): 31 [14:38:24]line Вид ГСМ : 2710124130 [14:38:24]line Ðи-92-К-5 [14:38:24]line 10.000 x 65.90 [14:38:24]line ИТОГ: 659.00 [14:38:24]line Тип оплаты: Талоны: Партнер нефть [14:38:24]line 4133997 [14:38:24]line ______________________ [14:38:24]line (подпиÑÑŒ) [14:38:24]written 0, free lines is 4095 [14:38:24]Write to MH i2c: 01 00 00 0E 09 17 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 13 0E 3F [14:38:24]RasterBufferAndPrint [14:38:24]line [14:38:24]line [14:38:24]line [14:38:24]line [14:38:24]line [14:38:24]written 0, free lines is 3605 [14:38:24]MH_Cut [14:38:24]Write to MH i2c: D1 01 00 15 09 01 F0 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: D1 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: D1 01 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: D1 01 00 15 09 00 EF [14:38:24]Write to MH i2c: 01 00 00 16 09 1F [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]*** Cut start [14:38:24]*** Purtial cut [14:38:24]*** Stage 1: CUTSNS_PIN = 1 [14:38:25]Read from MH i2c: 01 [14:38:25]MH_I2C_Read... [14:38:25]*** Stop cut motor [14:38:25]*** Cut end [14:38:25]Read from MH i2c: 01 07 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [14:38:25]process_action print_text done [14:38:25]requested_data is exist [14:38:25]produce_requested_data [14:38:25]requested_item fm.sn is exist - process it [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 11 00 00 [14:38:25]Write to MH i2c: E2 08 00 17 09 80 11 00 00 00 00 00 00 9A [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:25]Read from MH i2c: E2 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 17 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 17 00 17 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EF [14:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:38:25]wFMCommunicate OK [14:38:25]requested_item fd.num is exist - process it [14:38:25]SAM_PROTO_GetFieldsCounters [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 13 00 00 [14:38:25]Write to MH i2c: E2 08 00 18 09 80 13 00 00 00 00 00 00 9D [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:25]Read from MH i2c: E2 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 62 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 62 00 18 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 DF [14:38:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CD 13 01 00 0E 04 04 00 D1 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 [14:38:25]wFMCommunicate OK [14:38:25]SAM_PROTO_GetFieldsCounters done [14:38:25]requested_item shift.num is exist - process it [14:38:25]requested_item shift.opened is exist - process it [14:38:25]req_shift_opened [14:38:25]FM_GetShiftState [14:38:25]SAM_PROTO_GetShiftState [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 13 01 00 [14:38:25]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:25]Read from MH i2c: E2 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 0E 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 8C [14:38:25]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [14:38:25]wFMCommunicate OK [14:38:25]SAM_PROTO_GetShiftState done [14:38:25]FM_GetShiftState done [14:38:25]req_shift_opened done [14:38:25]requested_item shift.open_date is exist - process it [14:38:25]req_shift_open_date [14:38:25]req_shift_open_date done [14:38:25]produce_requested_data done [14:38:25]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [14:38:25]process_action_free print_text [14:38:25]json_value_free [14:38:25]json_value_free done [14:38:25]process_json_proto returns [14:38:25]Send response to host [14:38:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70605,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [14:38:25]free response buf [14:38:25]execute_script done [14:38:25]execute_script returns [14:38:25]free content buf [14:38:25]Sock 9.Close socket [14:38:25]Sock 9.Thread stoped [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:53]int [14:45:53]Write to MH i2c: 01 00 00 1A 09 23 [14:45:53]*** FLAG_PRN_KEY set [14:45:53]Write i2c OK [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: 01 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: 01 07 00 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: 01 07 00 1A 09 00 08 00 00 00 FF 0F 40 [14:45:53]state=0 [14:45:53]Key pressed [14:45:53]Feed [14:45:53]Write to MH i2c: D8 00 00 1B 09 FB [14:45:53]Write i2c OK [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: D8 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: D8 01 00 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: D8 01 00 1B 09 00 FC [14:45:53]int [14:45:53]Write to MH i2c: 01 00 00 1C 09 25 [14:45:53]Write i2c OK [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: 01 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: 01 07 00 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: 01 07 00 1C 09 00 48 00 00 00 3C 00 B0 [14:45:53]state=2 [14:45:53]Key pressed [14:45:53]int [14:45:53]Write to MH i2c: 01 00 00 1D 09 26 [14:45:53]*** FLAG_PRN_KEY reset [14:45:53]Write i2c OK [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: 01 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: 01 07 00 [14:45:53]MH_I2C_Read... [14:45:53]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 F6 0F 32 [14:45:53]state=2 [14:45:53]Stop feed [14:45:56]OFD Sender: No OFD packet to send [14:45:58]accept exits with 7 [14:45:58]New connection [14:45:58]New thread 3066699108 created [14:45:58]Thread 3066842468 joined [14:45:58]Waiting for new connection... [14:45:58] Sock 7.Parse request [14:45:58]Sock 7.Check first char [14:45:58]Sock 7.First char is OK [14:45:58]request: POST /json_proto HTTP/1.0 [14:45:58]Method: POST [14:45:58]URL: /json_proto [14:45:58]Method is POST - this is cgi request [14:45:58]url: /json_proto [14:45:58]query_string will be loaded in cgi processing [14:45:58]execute_cgi json_proto POST (null) [14:45:58]execute_cgi path=json_proto method=POST [14:45:58]POST find Content-Length [14:45:58]Host: 172.17.58.67:8080 [14:45:58]Content-Length: 677 [14:45:58]Content-Type: application/json [14:45:58] [14:45:58]POST finish read [14:45:58]Found Content-Length = 677 [14:45:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.000, "sum" : 197.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 197.00, "total" : 197.00, "payments": [ { "type": 0, "sum" : 197.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:58]execute_script... [14:45: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)141050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.000, "sum" : 197.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 197.00, "total" : 197.00, "payments": [ { "type": 0, "sum" : 197.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:58]POST & json_proto [14:45:58]process_json_proto [14:45:58]json parsed OK: [14:45:58]protocol is kg_v1.0 [14:45:58]action value=close_receipt [14:45:58]process_action close_receipt [14:45:58]cmd_close_receipt [14:45:58]MH_GetDate [14:45:58]Write to MH i2c: F0 00 00 1E 09 16 [14:45:58]Write i2c OK [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: F0 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: F0 09 00 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: F0 09 00 1E 09 00 27 20 BA 66 94 51 63 64 32 [14:45:58]GetLastDocTimeStamp 1723471217 [14:45:58]current date 1723473959 [14:45:58]FM_GetShiftState [14:45:58]SAM_PROTO_GetShiftState [14:45:58]wFMCommunicate request_size=4 [14:45:58]MH_SAM_APDU [14:45:58]CAPDU: 80 13 01 00 [14:45:58]Write to MH i2c: E2 08 00 1F 09 80 13 01 00 00 00 00 00 A5 [14:45:58]Write i2c OK [14:45:58]MH_I2C_Read... [14:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:58]Read from MH i2c: E2 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: E2 0E 00 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: E2 0E 00 1F 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 92 [14:45:58]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [14:45:58]wFMCommunicate OK [14:45:58]SAM_PROTO_GetShiftState done [14:45:58]FM_GetShiftState done [14:45:58]opened in 1723423336 [14:45:58]opened+sec_in_day 1723509736 [14:45:58]quantity*price = 19770 [14:45:58]sum+1 = 19771 [14:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.70 ИТОГО: 197.00 ВнеÑено: 197.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.75 ÐДС 12% : 20.99 Ðаличными: 197.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 38 12.08.2024 14:45 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70606 ФПД: 127147562074000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T144559&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70606&fm=127147562074000&tin=02508201610067®Number=0000000000090913&sum=19700 [14:45:59]StoreToDocumentArchive [14:45:59]shift 465 fd 70606 [14:45:59]save to /storage/0465/doc_00070606 [14:45:59]save last doc name /storage/0465/doc_00070606 to /storage/kkm_last_doc_name [14:45:59]save OK [14:45:59]Clear old archive folders... [14:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:59]tlvbuf is 010CFA80 [14:45:59]SAM_PROTO_ClearQueue [14:45:59]wFMCommunicate request_size=4 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 09 00 00 [14:45:59]Write to MH i2c: E2 08 00 2C 09 80 09 00 00 00 00 00 00 A7 [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [14:45:59]RAPDU: 90 00 [14:45:59]wFMCommunicate OK [14:45:59]SAM_PROTO_ClearQueue done [14:45:59]KKMCreateOFDPacket [14:45:59]OFDProtocolAddRootSTLVToBuf [14:45:59]FM_MakeSignedData [14:45:59]FM_MakeSignedData [14:45:59]SAM_PROTO_SignData [14:45:59]wFMCommunicate request_size=4 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 0D 01 02 [14:45:59]Write to MH i2c: E2 08 00 2D 09 80 0D 01 02 00 00 00 00 AF [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 2D 09 00 90 00 AA [14:45:59]RAPDU: 90 00 [14:45:59]wFMCommunicate OK [14:45:59]wFMCommunicate request_size=255 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3A 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 27 20 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CE 13 01 00 35 04 06 00 73 [14:45:59]Write to MH i2c: E2 02 01 2E 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3A 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 27 20 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CE 13 01 00 35 04 06 00 73 00 00 F7 [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 2E 09 00 90 00 AB [14:45:59]RAPDU: 90 00 [14:45:59]wFMCommunicate OK [14:45:59]wFMCommunicate request_size=10 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 0D 02 02 05 A3 D9 45 7F 90 [14:45:59]Write to MH i2c: E2 0D 00 2F 09 80 0D 02 02 05 00 A3 D9 45 7F 90 00 00 8C [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 2F 09 00 90 00 AC [14:45:59]RAPDU: 90 00 [14:45:59]wFMCommunicate OK [14:45:59]wFMCommunicate request_size=4 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 0D 03 02 [14:45:59]Write to MH i2c: E2 08 00 30 09 80 0D 03 02 00 00 00 00 B4 [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 0B 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 0B 00 30 09 00 E0 FD C8 44 6E 59 88 45 90 00 32 [14:45:59]RAPDU: E0 FD C8 44 6E 59 88 45 90 00 [14:45:59]wFMCommunicate OK [14:45:59]SAM_PROTO_SignData done [14:45:59]FM_MakeSignedData done [14:45:59]CreateOFDProtocolMessage [14:45:59]wFMCommunicate request_size=4 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 11 00 00 [14:45:59]Write to MH i2c: E2 08 00 31 09 80 11 00 00 00 00 00 00 B4 [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 17 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 17 00 31 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 09 [14:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:45:59]wFMCommunicate OK [14:45:59]CreateOFDProtocolMessage done [14:45:59]OFDSenderStorePacket 70606 [14:45:59]StoreOFDPacket docnum=70606 [14:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 E5 40 07 01 6A 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3A 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 27 20 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CE 13 01 00 35 04 06 00 73 A3 D9 45 7F 90 E0 FD C8 44 6E 59 88 45 [14:45:59]CheckFolder [14:45:59]dirname=/storage/ofd_packets [14:45:59]CheckFolder done [14:45:59]ProducePacketName [14:45:59]name=ofd_packets/00070606 [14:45:59]NVStorageSaveData ofd_packets/00070606 [14:45:59]File name is /storage/ofd_packets/00070606 [14:45:59]Write 301 bytes [14:45:59]NVStorageSaveData done [14:45:59]OFDSenderStorePacket done [14:45:59]KKMCreateOFDPacket done [14:45:59]NVStorageSaveData kkm_last_timestamp [14:45:59]File name is /storage/kkm_last_timestamp [14:46:00]Write 4 bytes [14:46:00]NVStorageSaveData done [14:46:00]ExternCall_PrintAddStr [14:46:00]wPrintStart [14:46:00]Write to MH i2c: 01 00 00 32 09 3B [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 32 09 00 00 00 00 00 FF 0F 50 [14:46:00]RasterBufferAndPrint [14:46:00]line Счет N : (1)141050 [14:46:00]line ИÐÐ: 02508201610067 [14:46:00]line Контрольно-КаÑÑовый Чек [14:46:00]line ПРОДÐЖР[14:46:00]line ТРК (МРК, ГÐК) : 31 [14:46:00]line Товар: 2710124130 [14:46:00]line Ðи-92-К-5 [14:46:00]line 3.000 * 65.90 [14:46:00]line = 197.70 [14:46:00]line ÐДС 12% ÐСП 1% [14:46:00]line > о реализуемом товаре [14:46:00]line ОКРУГЛЕÐИЕ: -0.70 [14:46:00]line ИТОГО: 197.00 [14:46:00]line ВнеÑено: 197.00 [14:46:00]line СДÐЧÐ: 0.00 [14:46:00]line ÐСП 1% : 1.75 [14:46:00]line ÐДС 12% : 20.99 [14:46:00]line Ðаличными: 197.00 [14:46:00]line Безнал.: 0.00 [14:46:00]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [14:46:00]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [14:46:00]line СÐО: Общий режим [14:46:00]line Чек 38 12.08.2024 14:45 [14:46:00]line Смена: 465 ФФД: 1.0 [14:46:00]line ЗÐМ: 0300000140 [14:46:00]line РÐМ: 0000000000090913 [14:46:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:46:00]line ФМ: 0000000000874915 [14:46:00]line ФД: 70606 [14:46:00]line ФПД: 127147562074000 [14:46:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T144559&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70606&fm=127147562074000&tin=02508201610067®Number=0000000000090913&sum=19700 [14:46:00]OFD Sender: Processing packet 70606 [packets to send 67, broken 66] [14:46:00]ProducePacketName [14:46:00]name=ofd_packets/00070606 [14:46:00]OFD Sender: To server: ‡•öpG, [14:46:00]CommunicateWithHost lk.salyk.kg:30040 [14:46:00]ConnectInit lk.salyk.kg [14:46:00]written 0, free lines is 4095 [14:46:00]Connected sock=11 [14:46: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 39 31 35 0F 01 00 00 E5 40 07 01 6A 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3A 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 27 20 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CE 13 01 00 35 04 06 00 73 A3 D9 45 7F 90 E0 FD C8 44 6E 59 88 45 [14:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 81 22 47 00 48 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CE 13 01 00 F4 03 04 00 14 C7 B9 66 B6 04 01 00 00 CE F0 15 8A 12 BF D6 3E [14:46:00]CommunicateWithHost err = 0 [14:46:00]CheckOFDResponse [14:46:00]1017 (14) - 77093643461234 [14:46:00]1041 (16) - 0000000000874915 [14:46:00]1040 (4) - 70606 [14:46:00]1012 (4) - 12.08.2024 08:25 [14:46:00]1206 (1) - 0 [14:46:00]OFD Sender: Remove packet 70606 [14:46:00]ProducePacketName [14:46:00]name=ofd_packets/00070606 [14:46:00]NVStorageDeleteData [14:46:00]Write to MH i2c: 01 00 00 5D 09 66 [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 5D 09 00 00 00 00 00 E6 0C 5F [14:46:00]RasterBufferAndPrint [14:46:00]line [14:46:00]line [14:46:00]line [14:46:00]line [14:46:00]line [14:46:00]written 0, free lines is 3308 [14:46:00]MH_Cut [14:46:00]Write to MH i2c: D1 01 00 64 09 01 3F [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: D1 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: D1 01 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: D1 01 00 64 09 00 3E [14:46:00]Write to MH i2c: 01 00 00 65 09 6E [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:01]OFD Sender: No OFD packet to send [14:46:01]*** Cut start [14:46:01]*** Purtial cut [14:46:01]*** CUTSNS_PIN = 0 [14:46:01]*** Stage 1: CUTSNS_PIN = 1 [14:46:03]Read from MH i2c: 01 [14:46:03]MH_I2C_Read... [14:46:03]*** Stop cut motor [14:46:03]*** Cut end [14:46:03]Read from MH i2c: 01 07 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: 01 07 00 65 09 00 00 00 00 00 FF 0F 83 [14:46:03]process_action close_receipt done [14:46:03]requested_data is exist [14:46:03]produce_requested_data [14:46:03]requested_item fm.sn is exist - process it [14:46:03]wFMCommunicate request_size=4 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 11 00 00 [14:46:03]Write to MH i2c: E2 08 00 66 09 80 11 00 00 00 00 00 00 E9 [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:03]Read from MH i2c: E2 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 17 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 17 00 66 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3E [14:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [14:46:03]wFMCommunicate OK [14:46:03]requested_item fd.num is exist - process it [14:46:03]SAM_PROTO_GetFieldsCounters [14:46:03]wFMCommunicate request_size=4 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 13 00 00 [14:46:03]Write to MH i2c: E2 08 00 67 09 80 13 00 00 00 00 00 00 EC [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:03]Read from MH i2c: E2 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 62 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 62 00 67 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CE 13 01 00 0E 04 04 00 D1 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 32 [14: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CE 13 01 00 0E 04 04 00 D1 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 [14:46:03]wFMCommunicate OK [14:46:03]SAM_PROTO_GetFieldsCounters done [14:46:03]requested_item shift.num is exist - process it [14:46:03]requested_item shift.opened is exist - process it [14:46:03]req_shift_opened [14:46:03]FM_GetShiftState [14:46:03]SAM_PROTO_GetShiftState [14:46:03]wFMCommunicate request_size=4 [14:46:03]MH_SAM_APDU [14:46:03]CAPDU: 80 13 01 00 [14:46:03]Write to MH i2c: E2 08 00 68 09 80 13 01 00 00 00 00 00 EE [14:46:03]Write i2c OK [14:46:03]MH_I2C_Read... [14:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:03]Read from MH i2c: E2 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 0E 00 [14:46:03]MH_I2C_Read... [14:46:03]Read from MH i2c: E2 0E 00 68 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 DB [14:46:03]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [14:46:03]wFMCommunicate OK [14:46:03]SAM_PROTO_GetShiftState done [14:46:03]FM_GetShiftState done [14:46:03]req_shift_opened done [14:46:03]requested_item shift.open_date is exist - process it [14:46:03]req_shift_open_date [14:46:03]req_shift_open_date done [14:46:03]produce_requested_data done [14:46:03]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70606,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [14:46:03]process_action_free close_receipt [14:46:03]json_value_free [14:46:03]json_value_free done [14:46:03]process_json_proto returns [14:46:03]Send response to host [14:46:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70606,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [14:46:03]free response buf [14:46:03]execute_script done [14:46:03]execute_script returns [14:46:03]free content buf [14:46:03]Sock 7.Close socket [14:46:03]Sock 7.Thread stoped [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:14]int [14:46:14]Write to MH i2c: 01 00 00 69 09 72 [14:46:14]*** FLAG_PRN_KEY set [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 69 09 00 08 00 00 00 FF 0F 8F [14:46:14]state=0 [14:46:14]Key pressed [14:46:14]Feed [14:46:14]Write to MH i2c: D8 00 00 6A 09 4A [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: D8 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: D8 01 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: D8 01 00 6A 09 00 4B [14:46:14]int [14:46:14]Write to MH i2c: 01 00 00 6B 09 74 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 6B 09 00 48 00 00 00 3C 00 FF [14:46:14]state=2 [14:46:14]Key pressed [14:46:14]int [14:46:14]Write to MH i2c: 01 00 00 6C 09 75 [14:46:14]*** FLAG_PRN_KEY reset [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 6C 09 00 00 00 00 00 F5 0F 80 [14:46:14]state=2 [14:46:14]Stop feed [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:23]accept exits with 9 [15:00:23]New connection [15:00:23]New thread 3066842468 created [15:00:23]Thread 3066699108 joined [15:00:23]Waiting for new connection... [15:00:23] Sock 9.Parse request [15:00:23]Sock 9.Check first char [15:00:23]Sock 9.First char is OK [15:00:23]request: POST /json_proto HTTP/1.0 [15:00:23]Method: POST [15:00:23]URL: /json_proto [15:00:23]Method is POST - this is cgi request [15:00:23]url: /json_proto [15:00:23]query_string will be loaded in cgi processing [15:00:23]execute_cgi json_proto POST (null) [15:00:23]execute_cgi path=json_proto method=POST [15:00:23]POST find Content-Length [15:00:23]Host: 172.17.58.67:8080 [15:00:23]Content-Length: 1190 [15:00:23]Content-Type: application/json [15:00:23] [15:00:23]POST finish read [15:00:23]Found Content-Length = 1190 [15:00:23]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141051\u000A12.08.2024 14:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2636.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\u000A74658\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:23]execute_script... [15:00:23]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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141051\u000A12.08.2024 14:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 2636.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\u000A74658\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:23]POST & json_proto [15:00:23]process_json_proto [15:00:23]json parsed OK: [15:00:23]protocol is kg_v1.0 [15:00:23]action value=print_text [15:00:23]process_action print_text [15:00:23]cmd_print_text [15:00:23]ExternCall_PrintAddStr [15:00:23]wPrintStart [15:00:23]Write to MH i2c: 01 00 00 6D 09 76 [15:00:23]Write i2c OK [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: 01 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: 01 07 00 [15:00:23]MH_I2C_Read... [15:00:23]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [15:00:23]RasterBufferAndPrint [15:00:23]line *****ТОВÐРÐЫЙ ЧЕК***** [15:00:23]line ÐЗС 39 [15:00:23]line Партнер нефть [15:00:23]line 02508201610067 [15:00:23]line КаÑÑир : Мирбек к Ð. [15:00:23]line Счет N : (1)141051 [15:00:23]line 12.08.2024 14:19 [15:00:23]line ПРОДÐЖР[15:00:23]line ТРК (МРК, ГÐК): 31 [15:00:23]line Вид ГСМ : 2710124130 [15:00:23]line Ðи-92-К-5 [15:00:23]line 40.000 x 65.90 [15:00:23]line ИТОГ: 2636.00 [15:00:23]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [15:00:23]line 74658 [15:00:23]line ______________________ [15:00:23]line (подпиÑÑŒ) [15:00:23]written 0, free lines is 4095 [15:00:24]Write to MH i2c: 01 00 00 81 09 8A [15:00:24]Write i2c OK [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: 01 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: 01 07 00 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: 01 07 00 81 09 00 00 00 00 00 13 0E B2 [15:00:24]RasterBufferAndPrint [15:00:24]line [15:00:24]line [15:00:24]line [15:00:24]line [15:00:24]line [15:00:24]written 0, free lines is 3605 [15:00:24]MH_Cut [15:00:24]Write to MH i2c: D1 01 00 88 09 01 63 [15:00:24]Write i2c OK [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: D1 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: D1 01 00 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: D1 01 00 88 09 00 62 [15:00:24]Write to MH i2c: 01 00 00 89 09 92 [15:00:24]Write i2c OK [15:00:24]MH_I2C_Read... [15:00:24]*** Cut start [15:00:24]*** Purtial cut [15:00:24]*** Stage 1: CUTSNS_PIN = 1 [15:00:24]Read from MH i2c: 01 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: 01 07 00 [15:00:24]MH_I2C_Read... [15:00:24]*** Stop cut motor [15:00:24]*** Cut end [15:00:24]Read from MH i2c: 01 07 00 89 09 00 00 00 00 00 FF 0F A7 [15:00:24]process_action print_text done [15:00:24]requested_data is exist [15:00:24]produce_requested_data [15:00:24]requested_item fm.sn is exist - process it [15:00:24]wFMCommunicate request_size=4 [15:00:24]MH_SAM_APDU [15:00:24]CAPDU: 80 11 00 00 [15:00:24]Write to MH i2c: E2 08 00 8A 09 80 11 00 00 00 00 00 00 0D [15:00:24]Write i2c OK [15:00:24]MH_I2C_Read... [15:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:24]Read from MH i2c: E2 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: E2 17 00 [15:00:24]MH_I2C_Read... [15:00:24]Read from MH i2c: E2 17 00 8A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 62 [15:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:00:24]wFMCommunicate OK [15:00:24]requested_item fd.num is exist - process it [15:00:24]SAM_PROTO_GetFieldsCounters [15:00:24]wFMCommunicate request_size=4 [15:00:24]MH_SAM_APDU [15:00:24]CAPDU: 80 13 00 00 [15:00:24]Write to MH i2c: E2 08 00 8B 09 80 13 00 00 00 00 00 00 10 [15:00:24]Write i2c OK [15:00:24]MH_I2C_Read... [15:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:25]Read from MH i2c: E2 [15:00:25]MH_I2C_Read... [15:00:25]Read from MH i2c: E2 62 00 [15:00:25]MH_I2C_Read... [15:00:25]Read from MH i2c: E2 62 00 8B 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CE 13 01 00 0E 04 04 00 D1 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 56 [15:00: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CE 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:25]wFMCommunicate OK [15:00:25]SAM_PROTO_GetFieldsCounters done [15:00:25]requested_item shift.num is exist - process it [15:00:25]requested_item shift.opened is exist - process it [15:00:25]req_shift_opened [15:00:25]FM_GetShiftState [15:00:25]SAM_PROTO_GetShiftState [15:00:25]wFMCommunicate request_size=4 [15:00:25]MH_SAM_APDU [15:00:25]CAPDU: 80 13 01 00 [15:00:25]Write to MH i2c: E2 08 00 8C 09 80 13 01 00 00 00 00 00 12 [15:00:25]Write i2c OK [15:00:25]MH_I2C_Read... [15:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:25]Read from MH i2c: E2 [15:00:25]MH_I2C_Read... [15:00:25]Read from MH i2c: E2 0E 00 [15:00:25]MH_I2C_Read... [15:00:25]Read from MH i2c: E2 0E 00 8C 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 FF [15:00:25]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [15:00:25]wFMCommunicate OK [15:00:25]SAM_PROTO_GetShiftState done [15:00:25]FM_GetShiftState done [15:00:25]req_shift_opened done [15:00:25]requested_item shift.open_date is exist - process it [15:00:25]req_shift_open_date [15:00:25]req_shift_open_date done [15:00:25]produce_requested_data done [15:00:25]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70606,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [15:00:25]process_action_free print_text [15:00:25]json_value_free [15:00:25]json_value_free done [15:00:25]process_json_proto returns [15:00:25]Send response to host [15:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70606,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [15:00:25]free response buf [15:00:25]execute_script done [15:00:25]execute_script returns [15:00:25]free content buf [15:00:25]Sock 9.Close socket [15:00:25]Sock 9.Thread stoped [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]int [15:00:46]Write to MH i2c: 01 00 00 8D 09 96 [15:00:46]*** FLAG_PRN_KEY set [15:00:46]Write i2c OK [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 07 00 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 07 00 8D 09 00 08 00 00 00 FF 0F B3 [15:00:46]state=0 [15:00:46]Key pressed [15:00:46]Feed [15:00:46]Write to MH i2c: D8 00 00 8E 09 6E [15:00:46]Write i2c OK [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: D8 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: D8 01 00 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: D8 01 00 8E 09 00 6F [15:00:46]int [15:00:46]Write to MH i2c: 01 00 00 8F 09 98 [15:00:46]Write i2c OK [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 07 00 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 07 00 8F 09 00 48 00 00 00 3C 00 23 [15:00:46]state=2 [15:00:46]Key pressed [15:00:46]int [15:00:46]Write to MH i2c: 01 00 00 90 09 99 [15:00:46]*** FLAG_PRN_KEY reset [15:00:46]Write i2c OK [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 07 00 [15:00:46]MH_I2C_Read... [15:00:46]Read from MH i2c: 01 07 00 90 09 00 00 00 00 00 F6 0F A5 [15:00:46]state=2 [15:00:46]Stop feed [15:00:46]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:06]accept exits with 7 [15:14:06]New connection [15:14:06]New thread 3066699108 created [15:14:06]Thread 3066842468 joined [15:14:06]Waiting for new connection... [15:14:06] Sock 7.Parse request [15:14:06]Sock 7.Check first char [15:14:06]Sock 7.First char is OK [15:14:06]request: POST /json_proto HTTP/1.0 [15:14:06]Method: POST [15:14:06]URL: /json_proto [15:14:06]Method is POST - this is cgi request [15:14:06]url: /json_proto [15:14:06]query_string will be loaded in cgi processing [15:14:06]execute_cgi json_proto POST (null) [15:14:06]execute_cgi path=json_proto method=POST [15:14:06]POST find Content-Length [15:14:06]Host: 172.17.58.67:8080 [15:14:06]Content-Length: 1190 [15:14:06]Content-Type: application/json [15:14:06] [15:14:06]POST finish read [15:14:06]Found Content-Length = 1190 [15:14: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141052\u000A12.08.2024 14:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 17.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1120.30\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\u000A01130\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:06]execute_script... [15:14: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141052\u000A12.08.2024 14:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 17.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1120.30\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\u000A01130\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:06]POST & json_proto [15:14:06]process_json_proto [15:14:06]json parsed OK: [15:14:06]protocol is kg_v1.0 [15:14:06]action value=print_text [15:14:06]process_action print_text [15:14:06]cmd_print_text [15:14:06]ExternCall_PrintAddStr [15:14:06]wPrintStart [15:14:06]Write to MH i2c: 01 00 00 91 09 9A [15:14:06]Write i2c OK [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: 01 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: 01 07 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: 01 07 00 91 09 00 00 00 00 00 FF 0F AF [15:14:06]RasterBufferAndPrint [15:14:06]line *****ТОВÐРÐЫЙ ЧЕК***** [15:14:06]line ÐЗС 39 [15:14:06]line Партнер нефть [15:14:06]line 02508201610067 [15:14:06]line КаÑÑир : Мирбек к Ð. [15:14:06]line Счет N : (1)141052 [15:14:06]line 12.08.2024 14:33 [15:14:06]line ПРОДÐЖР[15:14:06]line ТРК (МРК, ГÐК): 41 [15:14:06]line Вид ГСМ : 2710124130 [15:14:06]line Ðи-92-К-5 [15:14:06]line 17.000 x 65.90 [15:14:06]line ИТОГ: 1120.30 [15:14:06]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [15:14:06]line 01130 [15:14:06]line ______________________ [15:14:06]line (подпиÑÑŒ) [15:14:06]written 0, free lines is 4095 [15:14:06]Write to MH i2c: 01 00 00 A5 09 AE [15:14:06]Write i2c OK [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: 01 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: 01 07 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: 01 07 00 A5 09 00 00 00 00 00 11 0E D4 [15:14:06]RasterBufferAndPrint [15:14:06]line [15:14:06]line [15:14:06]line [15:14:06]line [15:14:06]line [15:14:06]written 0, free lines is 3603 [15:14:06]MH_Cut [15:14:06]Write to MH i2c: D1 01 00 AC 09 01 87 [15:14:06]Write i2c OK [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: D1 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: D1 01 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: D1 01 00 AC 09 00 86 [15:14:06]Write to MH i2c: 01 00 00 AD 09 B6 [15:14:06]Write i2c OK [15:14:06]MH_I2C_Read... [15:14:07]*** Cut start [15:14:07]*** Purtial cut [15:14:07]*** CUTSNS_PIN = 0 [15:14:07]*** Stage 1: CUTSNS_PIN = 1 [15:14:07]OFD Sender: No OFD packet to send [15:14:09]Read from MH i2c: 01 [15:14:09]MH_I2C_Read... [15:14:09]*** Stop cut motor [15:14:09]*** Cut end [15:14:09]Read from MH i2c: 01 07 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: 01 07 00 AD 09 00 00 00 00 00 FF 0F CB [15:14:09]process_action print_text done [15:14:09]requested_data is exist [15:14:09]produce_requested_data [15:14:09]requested_item fm.sn is exist - process it [15:14:09]wFMCommunicate request_size=4 [15:14:09]MH_SAM_APDU [15:14:09]CAPDU: 80 11 00 00 [15:14:09]Write to MH i2c: E2 08 00 AE 09 80 11 00 00 00 00 00 00 31 [15:14:09]Write i2c OK [15:14:09]MH_I2C_Read... [15:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:09]Read from MH i2c: E2 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 17 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 17 00 AE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 86 [15:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:14:09]wFMCommunicate OK [15:14:09]requested_item fd.num is exist - process it [15:14:09]SAM_PROTO_GetFieldsCounters [15:14:09]wFMCommunicate request_size=4 [15:14:09]MH_SAM_APDU [15:14:09]CAPDU: 80 13 00 00 [15:14:09]Write to MH i2c: E2 08 00 AF 09 80 13 00 00 00 00 00 00 34 [15:14:09]Write i2c OK [15:14:09]MH_I2C_Read... [15:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:09]Read from MH i2c: E2 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 62 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 62 00 AF 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CE 13 01 00 0E 04 04 00 D1 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 7A [15:14: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CE 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:09]wFMCommunicate OK [15:14:09]SAM_PROTO_GetFieldsCounters done [15:14:09]requested_item shift.num is exist - process it [15:14:09]requested_item shift.opened is exist - process it [15:14:09]req_shift_opened [15:14:09]FM_GetShiftState [15:14:09]SAM_PROTO_GetShiftState [15:14:09]wFMCommunicate request_size=4 [15:14:09]MH_SAM_APDU [15:14:09]CAPDU: 80 13 01 00 [15:14:09]Write to MH i2c: E2 08 00 B0 09 80 13 01 00 00 00 00 00 36 [15:14:09]Write i2c OK [15:14:09]MH_I2C_Read... [15:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:09]Read from MH i2c: E2 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 0E 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 0E 00 B0 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 23 [15:14:09]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [15:14:09]wFMCommunicate OK [15:14:09]SAM_PROTO_GetShiftState done [15:14:09]FM_GetShiftState done [15:14:09]req_shift_opened done [15:14:09]requested_item shift.open_date is exist - process it [15:14:09]req_shift_open_date [15:14:09]req_shift_open_date done [15:14:09]produce_requested_data done [15:14:09]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70606,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [15:14:09]process_action_free print_text [15:14:09]json_value_free [15:14:09]json_value_free done [15:14:09]process_json_proto returns [15:14:09]Send response to host [15:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70606,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [15:14:09]free response buf [15:14:09]execute_script done [15:14:09]execute_script returns [15:14:09]free content buf [15:14:09]Sock 7.Close socket [15:14:09]Sock 7.Thread stoped [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]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:01]int [15:20:01]Write to MH i2c: 01 00 00 B1 09 BA [15:20:01]*** FLAG_PRN_KEY set [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 B1 09 00 08 00 00 00 FF 0F D7 [15:20:01]state=0 [15:20:01]Key pressed [15:20:01]Feed [15:20:01]Write to MH i2c: D8 00 00 B2 09 92 [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: D8 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: D8 01 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: D8 01 00 B2 09 00 93 [15:20:01]int [15:20:01]Write to MH i2c: 01 00 00 B3 09 BC [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 B3 09 00 48 00 00 00 3C 00 47 [15:20:01]state=2 [15:20:01]Key pressed [15:20:01]int [15:20:01]Write to MH i2c: 01 00 00 B4 09 BD [15:20:01]*** FLAG_PRN_KEY reset [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 B4 09 00 00 00 00 00 F9 0F CC [15:20:01]state=2 [15:20:01]Stop feed [15:20:01]int [15:20:01]Write to MH i2c: 01 00 00 B5 09 BE [15:20:01]*** FLAG_PRN_KEY set [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 B5 09 00 08 00 00 00 FF 0F DB [15:20:01]state=0 [15:20:01]Key pressed [15:20:01]Feed [15:20:01]Write to MH i2c: D8 00 00 B6 09 96 [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: D8 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: D8 01 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: D8 01 00 B6 09 00 97 [15:20:01]int [15:20:01]Write to MH i2c: 01 00 00 B7 09 C0 [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 B7 09 00 48 00 00 00 3C 00 4B [15:20:01]state=2 [15:20:01]Key pressed [15:20:01]int [15:20:01]Write to MH i2c: 01 00 00 B8 09 C1 [15:20:01]*** FLAG_PRN_KEY reset [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 F6 0F CD [15:20:01]state=2 [15:20:01]Stop feed [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:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:49]accept exits with 9 [15:21:49]New connection [15:21:49]New thread 3066842468 created [15:21:49]Thread 3066699108 joined [15:21:49]Waiting for new connection... [15:21:49] Sock 9.Parse request [15:21:49]Sock 9.Check first char [15:21:49]Sock 9.First char is OK [15:21:49]request: POST /json_proto HTTP/1.0 [15:21:49]Method: POST [15:21:49]URL: /json_proto [15:21:49]Method is POST - this is cgi request [15:21:49]url: /json_proto [15:21:49]query_string will be loaded in cgi processing [15:21:49]execute_cgi json_proto POST (null) [15:21:49]execute_cgi path=json_proto method=POST [15:21:49]POST find Content-Length [15:21:49]Host: 172.17.58.67:8080 [15:21:49]Content-Length: 805 [15:21:49]Content-Type: application/json [15:21:49] [15:21:49]POST finish read [15:21:49]Found Content-Length = 805 [15:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:49]execute_script... [15:21: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)141053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:49]POST & json_proto [15:21:49]process_json_proto [15:21:49]json parsed OK: [15:21:49]protocol is kg_v1.0 [15:21:49]action value=close_receipt [15:21:49]process_action close_receipt [15:21:49]cmd_close_receipt [15:21:49]MH_GetDate [15:21:49]Write to MH i2c: F0 00 00 B9 09 B1 [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: F0 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: F0 09 00 [15:21:49]MH_I2C_Read... [15:21:49]Read from MH i2c: F0 09 00 B9 09 00 8E 28 BA 66 94 51 63 64 3C [15:21:49]GetLastDocTimeStamp 1723473959 [15:21:49]current date 1723476110 [15:21:49]FM_GetShiftState [15:21:49]SAM_PROTO_GetShiftState [15:21:49]wFMCommunicate request_size=4 [15:21:49]MH_SAM_APDU [15:21:49]CAPDU: 80 13 01 00 [15:21:49]Write to MH i2c: E2 08 00 BA 09 80 13 01 00 00 00 00 00 40 [15:21:49]Write i2c OK [15:21:49]MH_I2C_Read... [15:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:50]Read from MH i2c: E2 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 0E 00 [15:21:50]MH_I2C_Read... [15:21:50]Read from MH i2c: E2 0E 00 BA 09 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 2D [15:21:50]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [15:21:50]wFMCommunicate OK [15:21:50]SAM_PROTO_GetShiftState done [15:21:50]FM_GetShiftState done [15:21:50]opened in 1723423336 [15:21:50]opened+sec_in_day 1723509736 [15:21:50]quantity*price = 50018 [15:21:50]sum+1 = 50019 [15:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 39 12.08.2024 15:21 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70607 ФПД: 194075887361770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T152151&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70607&fm=194075887361770&tin=02508201610067®Number=0000000000090913&sum=50018 [15:21:51]StoreToDocumentArchive [15:21:51]shift 465 fd 70607 [15:21:51]save to /storage/0465/doc_00070607 [15:21:51]save last doc name /storage/0465/doc_00070607 to /storage/kkm_last_doc_name [15:21:51]save OK [15:21:51]Clear old archive folders... [15:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:51]tlvbuf is 010C8AA0 [15:21:51]SAM_PROTO_ClearQueue [15:21:51]wFMCommunicate request_size=4 [15:21:51]MH_SAM_APDU [15:21:51]CAPDU: 80 09 00 00 [15:21:51]Write to MH i2c: E2 08 00 C7 09 80 09 00 00 00 00 00 00 42 [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:51]Read from MH i2c: E2 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 03 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [15:21:51]RAPDU: 90 00 [15:21:51]wFMCommunicate OK [15:21:51]SAM_PROTO_ClearQueue done [15:21:51]KKMCreateOFDPacket [15:21:51]OFDProtocolAddRootSTLVToBuf [15:21:51]FM_MakeSignedData [15:21:51]FM_MakeSignedData [15:21:51]SAM_PROTO_SignData [15:21:51]wFMCommunicate request_size=4 [15:21:51]MH_SAM_APDU [15:21:51]CAPDU: 80 0D 01 02 [15:21:51]Write to MH i2c: E2 08 00 C8 09 80 0D 01 02 00 00 00 00 4A [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:51]Read from MH i2c: E2 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 03 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 03 00 C8 09 00 90 00 45 [15:21:51]RAPDU: 90 00 [15:21:51]wFMCommunicate OK [15:21:51]wFMCommunicate request_size=255 [15:21:51]MH_SAM_APDU [15:21: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 8F 28 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CF 13 01 00 35 04 06 00 B0 [15:21:51]Write to MH i2c: E2 02 01 C9 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 8F 28 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CF 13 01 00 35 04 06 00 B0 00 00 4F [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:51]Read from MH i2c: E2 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 03 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [15:21:51]RAPDU: 90 00 [15:21:51]wFMCommunicate OK [15:21:51]wFMCommunicate request_size=10 [15:21:51]MH_SAM_APDU [15:21:51]CAPDU: 80 0D 02 02 05 82 D0 53 5E EA [15:21:51]Write to MH i2c: E2 0D 00 CA 09 80 0D 02 02 05 00 82 D0 53 5E EA 00 00 44 [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:51]Read from MH i2c: E2 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 03 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [15:21:51]RAPDU: 90 00 [15:21:51]wFMCommunicate OK [15:21:51]wFMCommunicate request_size=4 [15:21:51]MH_SAM_APDU [15:21:51]CAPDU: 80 0D 03 02 [15:21:51]Write to MH i2c: E2 08 00 CB 09 80 0D 03 02 00 00 00 00 4F [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:51]Read from MH i2c: E2 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 0B 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 0B 00 CB 09 00 DD A7 63 22 0D 3D 2F B3 90 00 85 [15:21:51]RAPDU: DD A7 63 22 0D 3D 2F B3 90 00 [15:21:51]wFMCommunicate OK [15:21:51]SAM_PROTO_SignData done [15:21:51]FM_MakeSignedData done [15:21:51]CreateOFDProtocolMessage [15:21:51]wFMCommunicate request_size=4 [15:21:51]MH_SAM_APDU [15:21:51]CAPDU: 80 11 00 00 [15:21:51]Write to MH i2c: E2 08 00 CC 09 80 11 00 00 00 00 00 00 4F [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:51]Read from MH i2c: E2 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 17 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: E2 17 00 CC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A4 [15:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:21:51]wFMCommunicate OK [15:21:51]CreateOFDProtocolMessage done [15:21:51]OFDSenderStorePacket 70607 [15:21:51]StoreOFDPacket docnum=70607 [15:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 48 81 07 01 E0 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 8F 28 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CF 13 01 00 35 04 06 00 B0 82 D0 53 5E EA DD A7 63 22 0D 3D 2F B3 [15:21:51]CheckFolder [15:21:51]dirname=/storage/ofd_packets [15:21:51]CheckFolder done [15:21:51]ProducePacketName [15:21:51]name=ofd_packets/00070607 [15:21:51]NVStorageSaveData ofd_packets/00070607 [15:21:51]File name is /storage/ofd_packets/00070607 [15:21:51]Write 301 bytes [15:21:51]NVStorageSaveData done [15:21:51]OFDSenderStorePacket done [15:21:51]KKMCreateOFDPacket done [15:21:51]NVStorageSaveData kkm_last_timestamp [15:21:51]File name is /storage/kkm_last_timestamp [15:21:51]Write 4 bytes [15:21:51]NVStorageSaveData done [15:21:51]ExternCall_PrintAddStr [15:21:51]wPrintStart [15:21:51]Write to MH i2c: 01 00 00 CD 09 D6 [15:21:51]Write i2c OK [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 07 00 [15:21:51]MH_I2C_Read... [15:21:51]Read from MH i2c: 01 07 00 CD 09 00 00 00 00 00 FF 0F EB [15:21:51]RasterBufferAndPrint [15:21:51]line Счет N : (1)141053 [15:21:51]line ИÐÐ: 02508201610067 [15:21:51]line Контрольно-КаÑÑовый Чек [15:21:51]line ПРОДÐЖР[15:21:51]line ТРК (МРК, ГÐК) : 31 [15:21:51]line Товар: 2710124130 [15:21:51]line Ðи-92-К-5 [15:21:51]line 7.590 * 65.90 [15:21:51]line = 500.18 [15:21:51]line ÐДС 12% ÐСП 1% [15:21:51]line > о реализуемом товаре [15:21:51]line ИТОГО: 500.18 [15:21:51]line ÐСП 1% : 4.43 [15:21:51]line ÐДС 12% : 53.12 [15:21:51]line Ðаличными: 0.00 [15:21:51]line Безнал.: 500.18 [15:21:51]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [15:21:51]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [15:21:51]line СÐО: Общий режим [15:21:51]line Чек 39 12.08.2024 15:21 [15:21:51]line Смена: 465 ФФД: 1.0 [15:21:51]line ЗÐМ: 0300000140 [15:21:51]line РÐМ: 0000000000090913 [15:21:51]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [15:21:51]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [15:21:51]line ФМ: 0000000000874915 [15:21:51]line ФД: 70607 [15:21:51]line ФПД: 194075887361770 [15:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T152151&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70607&fm=194075887361770&tin=02508201610067®Number=0000000000090913&sum=50018 [15:21:51]written 0, free lines is 4095 [15:21:51]OFD Sender: Processing packet 70607 [packets to send 67, broken 66] [15:21:51]ProducePacketName [15:21:51]name=ofd_packets/00070607 [15:21:51]OFD Sender: To server: ‡•öpG, [15:21:51]CommunicateWithHost lk.salyk.kg:30040 [15:21:51]ConnectInit lk.salyk.kg [15:21:51]Connected sock=11 [15:21: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 39 31 35 0F 01 00 00 48 81 07 01 E0 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 8F 28 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 CF 13 01 00 35 04 06 00 B0 82 D0 53 5E EA DD A7 63 22 0D 3D 2F B3 [15:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 84 E2 47 00 52 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 39 31 35 10 04 04 00 CF 13 01 00 F4 03 04 00 7B CF B9 66 B6 04 01 00 00 A6 AD 10 DB C4 1E 04 EE [15:21:52]CommunicateWithHost err = 0 [15:21:52]CheckOFDResponse [15:21:52]1017 (14) - 77093643461234 [15:21:52]1041 (16) - 0000000000874915 [15:21:52]1040 (4) - 70607 [15:21:52]1012 (4) - 12.08.2024 09:01 [15:21:52]1206 (1) - 0 [15:21:52]OFD Sender: Remove packet 70607 [15:21:52]ProducePacketName [15:21:52]name=ofd_packets/00070607 [15:21:52]NVStorageDeleteData [15:21:52]Write to MH i2c: 01 00 00 F7 09 00 [15:21:52]Write i2c OK [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: 01 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: 01 07 00 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: 01 07 00 F7 09 00 00 00 00 00 08 0D 1C [15:21:52]RasterBufferAndPrint [15:21:52]line [15:21:52]line [15:21:52]line [15:21:52]line [15:21:52]line [15:21:52]written 0, free lines is 3342 [15:21:52]MH_Cut [15:21:52]Write to MH i2c: D1 01 00 FE 09 01 D9 [15:21:52]Write i2c OK [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: D1 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: D1 01 00 [15:21:52]MH_I2C_Read... [15:21:52]Read from MH i2c: D1 01 00 FE 09 00 D8 [15:21:52]Write to MH i2c: 01 00 00 FF 09 08 [15:21:52]Write i2c OK [15:21:52]MH_I2C_Read... [15:21:52]OFD Sender: No OFD packet to send [15:21:52]*** Cut start [15:21:52]*** Purtial cut [15:21:52]*** Stage 1: CUTSNS_PIN = 1 [15:21:53]Read from MH i2c: 01 [15:21:53]MH_I2C_Read... [15:21:53]*** Stop cut motor [15:21:53]*** Cut end [15:21:53]Read from MH i2c: 01 07 00 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 FF 0F 1D [15:21:53]process_action close_receipt done [15:21:53]requested_data is exist [15:21:53]produce_requested_data [15:21:53]requested_item fm.sn is exist - process it [15:21:53]wFMCommunicate request_size=4 [15:21:53]MH_SAM_APDU [15:21:53]CAPDU: 80 11 00 00 [15:21:53]Write to MH i2c: E2 08 00 00 0A 80 11 00 00 00 00 00 00 84 [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 [15:21:53]MH_I2C_Read... [15:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:53]Read from MH i2c: E2 17 00 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 17 00 00 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D9 [15:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:21:53]wFMCommunicate OK [15:21:53]requested_item fd.num is exist - process it [15:21:53]SAM_PROTO_GetFieldsCounters [15:21:53]wFMCommunicate request_size=4 [15:21:53]MH_SAM_APDU [15:21:53]CAPDU: 80 13 00 00 [15:21:53]Write to MH i2c: E2 08 00 01 0A 80 13 00 00 00 00 00 00 87 [15:21:53]Write i2c OK [15:21:53]MH_I2C_Read... [15:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:53]Read from MH i2c: E2 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 62 00 [15:21:53]MH_I2C_Read... [15:21:53]Read from MH i2c: E2 62 00 01 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CF 13 01 00 0E 04 04 00 D1 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 D1 [15:21: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CF 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:53]wFMCommunicate OK [15:21:53]SAM_PROTO_GetFieldsCounters done [15:21:53]requested_item shift.num is exist - process it [15:21:53]requested_item shift.opened is exist - process it [15:21:53]req_shift_opened [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 02 0A 80 13 01 00 00 00 00 00 89 [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 02 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 76 [15:21:53]RAPDU: 09 00 01 68 5A B9 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]req_shift_opened done [15:21:53]requested_item shift.open_date is exist - process it [15:21:53]req_shift_open_date [15:21:53]req_shift_open_date done [15:21:53]produce_requested_data done [15:21:53]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70607,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [15:21:53]process_action_free close_receipt [15:21:53]json_value_free [15:21:53]json_value_free done [15:21:53]process_json_proto returns [15:21:53]Send response to host [15:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70607,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [15:21:53]free response buf [15:21:53]execute_script done [15:21:53]execute_script returns [15:21:53]free content buf [15:21:53]Sock 9.Close socket [15:21:53]Sock 9.Thread stoped [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:48]int [15:32:48]Write to MH i2c: 01 00 00 03 0A 0D [15:32:48]*** FLAG_PRN_KEY set [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 03 0A 00 08 00 00 00 FF 0F 2A [15:32:48]state=0 [15:32:48]Key pressed [15:32:48]Feed [15:32:48]Write to MH i2c: D8 00 00 04 0A E5 [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: D8 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: D8 01 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: D8 01 00 04 0A 00 E6 [15:32:48]int [15:32:48]Write to MH i2c: 01 00 00 05 0A 0F [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 05 0A 00 48 00 00 00 3C 00 9A [15:32:48]state=2 [15:32:48]Key pressed [15:32:48]int [15:32:48]Write to MH i2c: 01 00 00 06 0A 10 [15:32:48]*** FLAG_PRN_KEY reset [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 06 0A 00 00 00 00 00 F7 0F 1D [15:32:48]state=2 [15:32:48]Stop feed [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:43]OFD Sender: No OFD packet to send [15:37:48]OFD Sender: No OFD packet to send [15:37:53]OFD Sender: No OFD packet to send [15:37:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:04]accept exits with 7 [15:42:04]New connection [15:42:04]New thread 3066699108 created [15:42:04]Thread 3066842468 joined [15:42:04]Waiting for new connection... [15:42:04] Sock 7.Parse request [15:42:04]Sock 7.Check first char [15:42:04]Sock 7.First char is OK [15:42:04]request: POST /json_proto HTTP/1.0 [15:42:04]Method: POST [15:42:04]URL: /json_proto [15:42:04]Method is POST - this is cgi request [15:42:04]url: /json_proto [15:42:04]query_string will be loaded in cgi processing [15:42:04]execute_cgi json_proto POST (null) [15:42:04]execute_cgi path=json_proto method=POST [15:42:04]POST find Content-Length [15:42:04]Host: 172.17.58.67:8080 [15:42:04]Content-Length: 1190 [15:42:04]Content-Type: application/json [15:42:04] [15:42:04]POST finish read [15:42:04]Found Content-Length = 1190 [15:42: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141054\u000A12.08.2024 15:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A43210\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:04]execute_script... [15:42: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141054\u000A12.08.2024 15:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1318.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\u000A43210\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:04]POST & json_proto [15:42:04]process_json_proto [15:42:04]json parsed OK: [15:42:04]protocol is kg_v1.0 [15:42:04]action value=print_text [15:42:04]process_action print_text [15:42:04]cmd_print_text [15:42:04]ExternCall_PrintAddStr [15:42:04]wPrintStart [15:42:04]Write to MH i2c: 01 00 00 07 0A 11 [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 07 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 FF 0F 26 [15:42:04]RasterBufferAndPrint [15:42:04]line *****ТОВÐРÐЫЙ ЧЕК***** [15:42:04]line ÐЗС 39 [15:42:04]line Партнер нефть [15:42:04]line 02508201610067 [15:42:04]line КаÑÑир : Мирбек к Ð. [15:42:04]line Счет N : (1)141054 [15:42:04]line 12.08.2024 15:01 [15:42:04]line ПРОДÐЖР[15:42:04]line ТРК (МРК, ГÐК): 31 [15:42:04]line Вид ГСМ : 2710124130 [15:42:04]line Ðи-92-К-5 [15:42:04]line 20.000 x 65.90 [15:42:04]line ИТОГ: 1318.00 [15:42:04]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [15:42:04]line 43210 [15:42:04]line ______________________ [15:42:04]line (подпиÑÑŒ) [15:42:04]written 0, free lines is 4095 [15:42:04]Write to MH i2c: 01 00 00 1B 0A 25 [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 07 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: 01 07 00 1B 0A 00 00 00 00 00 12 0E 4C [15:42:04]RasterBufferAndPrint [15:42:04]line [15:42:04]line [15:42:04]line [15:42:04]line [15:42:04]line [15:42:04]written 0, free lines is 3603 [15:42:04]MH_Cut [15:42:04]Write to MH i2c: D1 01 00 22 0A 01 FE [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: D1 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: D1 01 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: D1 01 00 22 0A 00 FD [15:42:04]Write to MH i2c: 01 00 00 23 0A 2D [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:05]*** Cut start [15:42:05]*** Purtial cut [15:42:05]*** CUTSNS_PIN = 0 [15:42:05]*** Stage 1: CUTSNS_PIN = 1 [15:42:07]Read from MH i2c: 01 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: 01 07 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [15:42:07]process_action print_text done [15:42:07]requested_data is exist [15:42:07]produce_requested_data [15:42:07]requested_item fm.sn is exist - process it [15:42:07]wFMCommunicate request_size=4 [15:42:07]MH_SAM_APDU [15:42:07]CAPDU: 80 11 00 00 [15:42:07]Write to MH i2c: E2 08 00 24 0A 80 11 00 00 00 00 00 00 A8 [15:42:07]int [15:42:07]*** Stop cut motor [15:42:07]*** Cut end [15:42:07]*** FLAG_PRN_KEY set [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:07]Read from MH i2c: E2 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 17 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 17 00 24 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FD [15:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:42:07]wFMCommunicate OK [15:42:07]requested_item fd.num is exist - process it [15:42:07]SAM_PROTO_GetFieldsCounters [15:42:07]wFMCommunicate request_size=4 [15:42:07]MH_SAM_APDU [15:42:07]CAPDU: 80 13 00 00 [15:42:07]Write to MH i2c: E2 08 00 25 0A 80 13 00 00 00 00 00 00 AB [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 62 00 [15:42:07]MH_I2C_Read... [15:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:07]*** FLAG_PRN_KEY reset [15:42:07]Read from MH i2c: E2 62 00 25 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CF 13 01 00 0E 04 04 00 D1 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 F5 [15:42: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 CF 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:07]wFMCommunicate OK [15:42:07]SAM_PROTO_GetFieldsCounters done [15:42:07]requested_item shift.num is exist - process it [15:42:07]requested_item shift.opened is exist - process it [15:42:07]req_shift_opened [15:42:07]FM_GetShiftState [15:42:07]SAM_PROTO_GetShiftState [15:42:07]wFMCommunicate request_size=4 [15:42:07]MH_SAM_APDU [15:42:07]CAPDU: 80 13 01 00 [15:42:07]Write to MH i2c: E2 08 00 26 0A 80 13 01 00 00 00 00 00 AD [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:07]Read from MH i2c: E2 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 0E 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: E2 0E 00 26 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 9A [15:42:07]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [15:42:07]wFMCommunicate OK [15:42:07]SAM_PROTO_GetShiftState done [15:42:07]FM_GetShiftState done [15:42:07]req_shift_opened done [15:42:07]requested_item shift.open_date is exist - process it [15:42:07]req_shift_open_date [15:42:07]req_shift_open_date done [15:42:07]produce_requested_data done [15:42:07]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70607,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [15:42:07]process_action_free print_text [15:42:07]json_value_free [15:42:07]json_value_free done [15:42:07]process_json_proto returns [15:42:07]Send response to host [15:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70607,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [15:42:07]free response buf [15:42:07]execute_script done [15:42:07]execute_script returns [15:42:07]free content buf [15:42:07]Sock 7.Close socket [15:42:07]Sock 7.Thread stoped [15:42:07]Write to MH i2c: 01 00 00 27 0A 31 [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: 01 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: 01 07 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [15:42:07]state=0 [15:42:08]OFD Sender: No OFD packet to send [15:42:08]int [15:42:08]Write to MH i2c: 01 00 00 28 0A 32 [15:42:08]*** FLAG_PRN_KEY set [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 28 0A 00 08 00 00 00 FF 0F 4F [15:42:08]state=0 [15:42:08]Key pressed [15:42:08]Feed [15:42:08]Write to MH i2c: D8 00 00 29 0A 0A [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: D8 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: D8 01 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: D8 01 00 29 0A 00 0B [15:42:08]int [15:42:08]Write to MH i2c: 01 00 00 2A 0A 34 [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 2A 0A 00 48 00 00 00 3C 00 BF [15:42:08]state=2 [15:42:08]Key pressed [15:42:08]int [15:42:08]Write to MH i2c: 01 00 00 2B 0A 35 [15:42:08]*** FLAG_PRN_KEY reset [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 2B 0A 00 00 00 00 00 FC 0F 47 [15:42:08]state=2 [15:42:08]Stop feed [15:42:09]int [15:42:09]Write to MH i2c: 01 00 00 2C 0A 36 [15:42:09]*** FLAG_PRN_KEY set [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: 01 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: 01 07 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: 01 07 00 2C 0A 00 08 00 00 00 FF 0F 53 [15:42:09]state=0 [15:42:09]Key pressed [15:42:09]Feed [15:42:09]Write to MH i2c: D8 00 00 2D 0A 0E [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: D8 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: D8 01 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: D8 01 00 2D 0A 00 0F [15:42:09]int [15:42:09]Write to MH i2c: 01 00 00 2E 0A 38 [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: 01 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: 01 07 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: 01 07 00 2E 0A 00 48 00 00 00 3C 00 C3 [15:42:09]state=2 [15:42:09]Key pressed [15:42:09]int [15:42:09]Write to MH i2c: 01 00 00 2F 0A 39 [15:42:09]*** FLAG_PRN_KEY reset [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: 01 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: 01 07 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 F6 0F 45 [15:42:09]state=2 [15:42:09]Stop feed [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:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:36]accept exits with 9 [15:57:36]New connection [15:57:36]New thread 3066842468 created [15:57:36]Thread 3066699108 joined [15:57:36]Waiting for new connection... [15:57:36] Sock 9.Parse request [15:57:36]Sock 9.Check first char [15:57:36]Sock 9.First char is OK [15:57:36]request: POST /json_proto HTTP/1.0 [15:57:36]Method: POST [15:57:36]URL: /json_proto [15:57:36]Method is POST - this is cgi request [15:57:36]url: /json_proto [15:57:36]query_string will be loaded in cgi processing [15:57:36]execute_cgi json_proto POST (null) [15:57:36]execute_cgi path=json_proto method=POST [15:57:36]POST find Content-Length [15:57:36]Host: 172.17.58.67:8080 [15:57:36]Content-Length: 677 [15:57:36]Content-Type: application/json [15:57:36] [15:57:36]POST finish read [15:57:36]Found Content-Length = 677 [15:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:36]execute_script... [15:57: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)141055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:36]POST & json_proto [15:57:36]process_json_proto [15:57:36]json parsed OK: [15:57:36]protocol is kg_v1.0 [15:57:36]action value=close_receipt [15:57:36]process_action close_receipt [15:57:36]cmd_close_receipt [15:57:36]MH_GetDate [15:57:36]Write to MH i2c: F0 00 00 30 0A 29 [15:57:36]Write i2c OK [15:57:36]MH_I2C_Read... [15:57:36]Read from MH i2c: F0 [15:57:36]MH_I2C_Read... [15:57:36]Read from MH i2c: F0 09 00 [15:57:36]MH_I2C_Read... [15:57:36]Read from MH i2c: F0 09 00 30 0A 00 F1 30 BA 66 94 51 63 64 1F [15:57:36]GetLastDocTimeStamp 1723476111 [15:57:36]current date 1723478257 [15:57:36]FM_GetShiftState [15:57:36]SAM_PROTO_GetShiftState [15:57:36]wFMCommunicate request_size=4 [15:57:36]MH_SAM_APDU [15:57:36]CAPDU: 80 13 01 00 [15:57:36]Write to MH i2c: E2 08 00 31 0A 80 13 01 00 00 00 00 00 B8 [15:57:36]Write i2c OK [15:57:36]MH_I2C_Read... [15:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:36]Read from MH i2c: E2 [15:57:36]MH_I2C_Read... [15:57:36]Read from MH i2c: E2 0E 00 [15:57:36]MH_I2C_Read... [15:57:36]Read from MH i2c: E2 0E 00 31 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 A5 [15:57:36]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [15:57:36]wFMCommunicate OK [15:57:36]SAM_PROTO_GetShiftState done [15:57:36]FM_GetShiftState done [15:57:36]opened in 1723423336 [15:57:36]opened+sec_in_day 1723509736 [15:57:36]quantity*price = 30050 [15:57:36]sum+1 = 30051 [15:57:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.50 ИТОГО: 300.00 ВнеÑено: 300.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.66 ÐДС 12% : 31.91 Ðаличными: 300.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 40 12.08.2024 15:57 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70608 ФПД: 19854443103874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T155737&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70608&fm=19854443103874&tin=02508201610067®Number=0000000000090913&sum=30000 [15:57:37]StoreToDocumentArchive [15:57:37]shift 465 fd 70608 [15:57:37]save to /storage/0465/doc_00070608 [15:57:37]save last doc name /storage/0465/doc_00070608 to /storage/kkm_last_doc_name [15:57:37]save OK [15:57:37]Clear old archive folders... [15:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:37]tlvbuf is 0107DA10 [15:57:37]SAM_PROTO_ClearQueue [15:57:37]wFMCommunicate request_size=4 [15:57:37]MH_SAM_APDU [15:57:37]CAPDU: 80 09 00 00 [15:57:37]Write to MH i2c: E2 08 00 3E 0A 80 09 00 00 00 00 00 00 BA [15:57:37]Write i2c OK [15:57:37]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 3E 0A 00 90 00 BC [15:57:38]RAPDU: 90 00 [15:57:38]wFMCommunicate OK [15:57:38]SAM_PROTO_ClearQueue done [15:57:38]KKMCreateOFDPacket [15:57:38]OFDProtocolAddRootSTLVToBuf [15:57:38]FM_MakeSignedData [15:57:38]FM_MakeSignedData [15:57:38]SAM_PROTO_SignData [15:57:38]wFMCommunicate request_size=4 [15:57:38]MH_SAM_APDU [15:57:38]CAPDU: 80 0D 01 02 [15:57:38]Write to MH i2c: E2 08 00 3F 0A 80 0D 01 02 00 00 00 00 C2 [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 3F 0A 00 90 00 BD [15:57:38]RAPDU: 90 00 [15:57:38]wFMCommunicate OK [15:57:38]wFMCommunicate request_size=255 [15:57:38]MH_SAM_APDU [15:57:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F1 30 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D0 13 01 00 35 04 06 00 12 [15:57:38]Write to MH i2c: E2 02 01 40 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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F1 30 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D0 13 01 00 35 04 06 00 12 00 00 63 [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 40 0A 00 90 00 BE [15:57:38]RAPDU: 90 00 [15:57:38]wFMCommunicate OK [15:57:38]wFMCommunicate request_size=10 [15:57:38]MH_SAM_APDU [15:57:38]CAPDU: 80 0D 02 02 05 0E B9 07 46 82 [15:57:38]Write to MH i2c: E2 0D 00 41 0A 80 0D 02 02 05 00 0E B9 07 46 82 00 00 65 [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [15:57:38]RAPDU: 90 00 [15:57:38]wFMCommunicate OK [15:57:38]wFMCommunicate request_size=4 [15:57:38]MH_SAM_APDU [15:57:38]CAPDU: 80 0D 03 02 [15:57:38]Write to MH i2c: E2 08 00 42 0A 80 0D 03 02 00 00 00 00 C7 [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 0B 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 0B 00 42 0A 00 90 F9 28 1D 59 4F 0E 7C 90 00 C8 [15:57:38]RAPDU: 90 F9 28 1D 59 4F 0E 7C 90 00 [15:57:38]wFMCommunicate OK [15:57:38]SAM_PROTO_SignData done [15:57:38]FM_MakeSignedData done [15:57:38]CreateOFDProtocolMessage [15:57:38]wFMCommunicate request_size=4 [15:57:38]MH_SAM_APDU [15:57:38]CAPDU: 80 11 00 00 [15:57:38]Write to MH i2c: E2 08 00 43 0A 80 11 00 00 00 00 00 00 C7 [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 17 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 17 00 43 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 1C [15:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:57:38]wFMCommunicate OK [15:57:38]CreateOFDProtocolMessage done [15:57:38]OFDSenderStorePacket 70608 [15:57:38]StoreOFDPacket docnum=70608 [15:57:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 F4 B6 07 01 1E 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F1 30 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D0 13 01 00 35 04 06 00 12 0E B9 07 46 82 90 F9 28 1D 59 4F 0E 7C [15:57:38]CheckFolder [15:57:38]dirname=/storage/ofd_packets [15:57:38]CheckFolder done [15:57:38]ProducePacketName [15:57:38]name=ofd_packets/00070608 [15:57:38]NVStorageSaveData ofd_packets/00070608 [15:57:38]File name is /storage/ofd_packets/00070608 [15:57:38]Write 301 bytes [15:57:38]NVStorageSaveData done [15:57:38]OFDSenderStorePacket done [15:57:38]KKMCreateOFDPacket done [15:57:38]NVStorageSaveData kkm_last_timestamp [15:57:38]File name is /storage/kkm_last_timestamp [15:57:38]Write 4 bytes [15:57:38]NVStorageSaveData done [15:57:38]ExternCall_PrintAddStr [15:57:38]wPrintStart [15:57:38]Write to MH i2c: 01 00 00 44 0A 4E [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: 01 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: 01 07 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 FF 0F 63 [15:57:38]RasterBufferAndPrint [15:57:38]line Счет N : (1)141055 [15:57:38]line ИÐÐ: 02508201610067 [15:57:38]line Контрольно-КаÑÑовый Чек [15:57:38]line ПРОДÐЖР[15:57:38]line ТРК (МРК, ГÐК) : 41 [15:57:38]line Товар: 2710124130 [15:57:38]line Ðи-92-К-5 [15:57:38]line 4.560 * 65.90 [15:57:38]line = 300.50 [15:57:38]line ÐДС 12% ÐСП 1% [15:57:38]line > о реализуемом товаре [15:57:38]line ОКРУГЛЕÐИЕ: -0.50 [15:57:38]line ИТОГО: 300.00 [15:57:38]line ВнеÑено: 300.00 [15:57:38]line СДÐЧÐ: 0.00 [15:57:38]line ÐСП 1% : 2.66 [15:57:38]line ÐДС 12% : 31.91 [15:57:38]line Ðаличными: 300.00 [15:57:38]line Безнал.: 0.00 [15:57:38]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [15:57:38]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [15:57:38]line СÐО: Общий режим [15:57:38]line Чек 40 12.08.2024 15:57 [15:57:38]line Смена: 465 ФФД: 1.0 [15:57:38]line ЗÐМ: 0300000140 [15:57:38]line РÐМ: 0000000000090913 [15:57:38]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [15:57:38]line ФМ: 0000000000874915 [15:57:38]line ФД: 70608 [15:57:38]line ФПД: 19854443103874 [15:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T155737&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70608&fm=19854443103874&tin=02508201610067®Number=0000000000090913&sum=30000 [15:57:38]OFD Sender: Processing packet 70608 [packets to send 67, broken 66] [15:57:38]ProducePacketName [15:57:38]name=ofd_packets/00070608 [15:57:38]OFD Sender: To server: ‡•öpG, [15:57:38]CommunicateWithHost lk.salyk.kg:30040 [15:57:38]ConnectInit lk.salyk.kg [15:57:38]written 0, free lines is 4095 [15:57:38]Connected sock=10 [15:57: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 39 31 35 0F 01 00 00 F4 B6 07 01 1E 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 F1 30 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D0 13 01 00 35 04 06 00 12 0E B9 07 46 82 90 F9 28 1D 59 4F 0E 7C [15:57:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 9F 44 47 00 FA 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 39 31 35 10 04 04 00 D0 13 01 00 F4 03 04 00 DE D7 B9 66 B6 04 01 00 00 7B EF EE 37 62 69 8E F1 [15:57:39]CommunicateWithHost err = 0 [15:57:39]CheckOFDResponse [15:57:39]1017 (14) - 77093643461234 [15:57:39]1041 (16) - 0000000000874915 [15:57:39]1040 (4) - 70608 [15:57:39]1012 (4) - 12.08.2024 09:37 [15:57:39]1206 (1) - 0 [15:57:39]OFD Sender: Remove packet 70608 [15:57:39]ProducePacketName [15:57:39]name=ofd_packets/00070608 [15:57:39]NVStorageDeleteData [15:57:39]Write to MH i2c: 01 00 00 6F 0A 79 [15:57:39]Write i2c OK [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: 01 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: 01 07 00 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: 01 07 00 6F 0A 00 00 00 00 00 EF 0C 7B [15:57:39]RasterBufferAndPrint [15:57:39]line [15:57:39]line [15:57:39]line [15:57:39]line [15:57:39]line [15:57:39]written 0, free lines is 3317 [15:57:39]MH_Cut [15:57:39]Write to MH i2c: D1 01 00 76 0A 01 52 [15:57:39]Write i2c OK [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: D1 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: D1 01 00 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: D1 01 00 76 0A 00 51 [15:57:39]Write to MH i2c: 01 00 00 77 0A 81 [15:57:39]Write i2c OK [15:57:39]MH_I2C_Read... [15:57:39]OFD Sender: No OFD packet to send [15:57:39]*** Cut start [15:57:39]*** Purtial cut [15:57:39]*** Stage 1: CUTSNS_PIN = 1 [15:57:40]Read from MH i2c: 01 [15:57:40]MH_I2C_Read... [15:57:40]*** Stop cut motor [15:57:40]*** Cut end [15:57:40]Read from MH i2c: 01 07 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: 01 07 00 77 0A 00 00 00 00 00 FF 0F 96 [15:57:40]process_action close_receipt done [15:57:40]requested_data is exist [15:57:40]produce_requested_data [15:57:40]requested_item fm.sn is exist - process it [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 11 00 00 [15:57:40]Write to MH i2c: E2 08 00 78 0A 80 11 00 00 00 00 00 00 FC [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 17 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 17 00 78 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 51 [15:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [15:57:40]wFMCommunicate OK [15:57:40]requested_item fd.num is exist - process it [15:57:40]SAM_PROTO_GetFieldsCounters [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 13 00 00 [15:57:40]Write to MH i2c: E2 08 00 79 0A 80 13 00 00 00 00 00 00 FF [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 62 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 62 00 79 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D0 13 01 00 0E 04 04 00 D1 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 4D [15:57: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D0 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:40]wFMCommunicate OK [15:57:40]SAM_PROTO_GetFieldsCounters done [15:57:40]requested_item shift.num is exist - process it [15:57:40]requested_item shift.opened is exist - process it [15:57:40]req_shift_opened [15:57:40]FM_GetShiftState [15:57:40]SAM_PROTO_GetShiftState [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 13 01 00 [15:57:40]Write to MH i2c: E2 08 00 7A 0A 80 13 01 00 00 00 00 00 01 [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 0E 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 0E 00 7A 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 EE [15:57:40]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [15:57:40]wFMCommunicate OK [15:57:40]SAM_PROTO_GetShiftState done [15:57:40]FM_GetShiftState done [15:57:40]req_shift_opened done [15:57:40]requested_item shift.open_date is exist - process it [15:57:40]req_shift_open_date [15:57:40]req_shift_open_date done [15:57:40]produce_requested_data done [15:57:40]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70608,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [15:57:40]process_action_free close_receipt [15:57:40]json_value_free [15:57:40]json_value_free done [15:57:40]process_json_proto returns [15:57:40]Send response to host [15:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70608,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [15:57:40]free response buf [15:57:40]execute_script done [15:57:40]execute_script returns [15:57:40]free content buf [15:57:40]Sock 9.Close socket [15:57:40]Sock 9.Thread stoped [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:04]int [16:11:04]Write to MH i2c: 01 00 00 7B 0A 85 [16:11:04]*** FLAG_PRN_KEY set [16:11:04]Write i2c OK [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: 01 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: 01 07 00 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: 01 07 00 7B 0A 00 08 00 00 00 FF 0F A2 [16:11:04]state=0 [16:11:04]Key pressed [16:11:04]Feed [16:11:04]Write to MH i2c: D8 00 00 7C 0A 5D [16:11:04]Write i2c OK [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: D8 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: D8 01 00 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: D8 01 00 7C 0A 00 5E [16:11:04]int [16:11:04]Write to MH i2c: 01 00 00 7D 0A 87 [16:11:04]Write i2c OK [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: 01 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: 01 07 00 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: 01 07 00 7D 0A 00 48 00 00 00 3C 00 12 [16:11:04]state=2 [16:11:04]Key pressed [16:11:04]int [16:11:04]Write to MH i2c: 01 00 00 7E 0A 88 [16:11:04]*** FLAG_PRN_KEY reset [16:11:04]Write i2c OK [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: 01 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: 01 07 00 [16:11:04]MH_I2C_Read... [16:11:04]Read from MH i2c: 01 07 00 7E 0A 00 00 00 00 00 F6 0F 94 [16:11:04]state=2 [16:11:04]Stop feed [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:24]accept exits with 7 [16:13:24]New connection [16:13:24]New thread 3066699108 created [16:13:24]Thread 3066842468 joined [16:13:24]Waiting for new connection... [16:13:24] Sock 7.Parse request [16:13:24]Sock 7.Check first char [16:13:24]Sock 7.First char is OK [16:13:24]request: POST /json_proto HTTP/1.0 [16:13:24]Method: POST [16:13:24]URL: /json_proto [16:13:24]Method is POST - this is cgi request [16:13:24]url: /json_proto [16:13:24]query_string will be loaded in cgi processing [16:13:24]execute_cgi json_proto POST (null) [16:13:24]execute_cgi path=json_proto method=POST [16:13:24]POST find Content-Length [16:13:24]Host: 172.17.58.67:8080 [16:13:24]Content-Length: 808 [16:13:24]Content-Type: application/json [16:13:24] [16:13:24]POST finish read [16:13:24]Found Content-Length = 808 [16:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 25.070, "sum" : 1652.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1652.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:24]execute_script... [16:13:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 25.070, "sum" : 1652.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1652.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:24]POST & json_proto [16:13:24]process_json_proto [16:13:24]json parsed OK: [16:13:24]protocol is kg_v1.0 [16:13:24]action value=close_receipt [16:13:24]process_action close_receipt [16:13:24]cmd_close_receipt [16:13:24]MH_GetDate [16:13:24]Write to MH i2c: F0 00 00 7F 0A 78 [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: F0 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: F0 09 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: F0 09 00 7F 0A 00 A5 34 BA 66 94 51 63 64 26 [16:13:24]GetLastDocTimeStamp 1723478257 [16:13:24]current date 1723479205 [16:13:24]FM_GetShiftState [16:13:24]SAM_PROTO_GetShiftState [16:13:24]wFMCommunicate request_size=4 [16:13:24]MH_SAM_APDU [16:13:24]CAPDU: 80 13 01 00 [16:13:24]Write to MH i2c: E2 08 00 80 0A 80 13 01 00 00 00 00 00 07 [16:13:24]Write i2c OK [16:13:24]MH_I2C_Read... [16:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:24]Read from MH i2c: E2 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 0E 00 [16:13:24]MH_I2C_Read... [16:13:24]Read from MH i2c: E2 0E 00 80 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F4 [16:13:24]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:13:24]wFMCommunicate OK [16:13:24]SAM_PROTO_GetShiftState done [16:13:24]FM_GetShiftState done [16:13:24]opened in 1723423336 [16:13:24]opened+sec_in_day 1723509736 [16:13:24]quantity*price = 165211 [16:13:24]sum+1 = 165212 [16:13:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1652.11 ÐСП 1% : 14.62 ÐДС 12% : 175.44 Ðаличными: 0.00 Безнал.: 1652.11 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 41 12.08.2024 16:13 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70609 ФПД: 167081192122639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T161325&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70609&fm=167081192122639&tin=02508201610067®Number=0000000000090913&sum=165211 [16:13:25]StoreToDocumentArchive [16:13:25]shift 465 fd 70609 [16:13:25]save to /storage/0465/doc_00070609 [16:13:25]save last doc name /storage/0465/doc_00070609 to /storage/kkm_last_doc_name [16:13:25]save OK [16:13:25]Clear old archive folders... [16:13:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:25]tlvbuf is 0109E000 [16:13:25]SAM_PROTO_ClearQueue [16:13:25]wFMCommunicate request_size=4 [16:13:25]MH_SAM_APDU [16:13:25]CAPDU: 80 09 00 00 [16:13:25]Write to MH i2c: E2 08 00 8D 0A 80 09 00 00 00 00 00 00 09 [16:13:25]Write i2c OK [16:13:25]MH_I2C_Read... [16:13:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:25]Read from MH i2c: E2 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 03 00 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [16:13:25]RAPDU: 90 00 [16:13:25]wFMCommunicate OK [16:13:25]SAM_PROTO_ClearQueue done [16:13:25]KKMCreateOFDPacket [16:13:25]OFDProtocolAddRootSTLVToBuf [16:13:25]FM_MakeSignedData [16:13:25]FM_MakeSignedData [16:13:25]SAM_PROTO_SignData [16:13:25]wFMCommunicate request_size=4 [16:13:25]MH_SAM_APDU [16:13:25]CAPDU: 80 0D 01 02 [16:13:25]Write to MH i2c: E2 08 00 8E 0A 80 0D 01 02 00 00 00 00 11 [16:13:25]Write i2c OK [16:13:25]MH_I2C_Read... [16:13:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:25]Read from MH i2c: E2 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 03 00 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [16:13:25]RAPDU: 90 00 [16:13:25]wFMCommunicate OK [16:13:25]wFMCommunicate request_size=255 [16:13:25]MH_SAM_APDU [16:13: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 EE 61 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5B 85 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 85 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 85 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A5 34 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D1 13 01 00 35 04 06 00 97 [16:13:25]Write to MH i2c: E2 02 01 8F 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 EE 61 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5B 85 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 85 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 85 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A5 34 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D1 13 01 00 35 04 06 00 97 00 00 DD [16:13:25]Write i2c OK [16:13:25]MH_I2C_Read... [16:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:25]OFD Sender: No OFD packet to send [16:13:25]Read from MH i2c: E2 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 03 00 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [16:13:25]RAPDU: 90 00 [16:13:25]wFMCommunicate OK [16:13:25]wFMCommunicate request_size=10 [16:13:25]MH_SAM_APDU [16:13:25]CAPDU: 80 0D 02 02 05 F5 9F 1A E9 0F [16:13:25]Write to MH i2c: E2 0D 00 90 0A 80 0D 02 02 05 00 F5 9F 1A E9 0F 00 00 C4 [16:13:25]Write i2c OK [16:13:25]MH_I2C_Read... [16:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:25]Read from MH i2c: E2 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 03 00 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [16:13:25]RAPDU: 90 00 [16:13:25]wFMCommunicate OK [16:13:25]wFMCommunicate request_size=4 [16:13:25]MH_SAM_APDU [16:13:25]CAPDU: 80 0D 03 02 [16:13:25]Write to MH i2c: E2 08 00 91 0A 80 0D 03 02 00 00 00 00 16 [16:13:25]Write i2c OK [16:13:25]MH_I2C_Read... [16:13:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:25]Read from MH i2c: E2 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 0B 00 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 0B 00 91 0A 00 CF DE 1D 4C 3D 41 D9 BC 90 00 40 [16:13:25]RAPDU: CF DE 1D 4C 3D 41 D9 BC 90 00 [16:13:25]wFMCommunicate OK [16:13:25]SAM_PROTO_SignData done [16:13:25]FM_MakeSignedData done [16:13:25]CreateOFDProtocolMessage [16:13:25]wFMCommunicate request_size=4 [16:13:25]MH_SAM_APDU [16:13:25]CAPDU: 80 11 00 00 [16:13:25]Write to MH i2c: E2 08 00 92 0A 80 11 00 00 00 00 00 00 16 [16:13:25]Write i2c OK [16:13:25]MH_I2C_Read... [16:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:25]Read from MH i2c: E2 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 17 00 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: E2 17 00 92 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6B [16:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:13:25]wFMCommunicate OK [16:13:25]CreateOFDProtocolMessage done [16:13:25]OFDSenderStorePacket 70609 [16:13:25]StoreOFDPacket docnum=70609 [16:13:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 93 DE 07 01 CC FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 61 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5B 85 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 85 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 85 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A5 34 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D1 13 01 00 35 04 06 00 97 F5 9F 1A E9 0F CF DE 1D 4C 3D 41 D9 BC [16:13:25]CheckFolder [16:13:25]dirname=/storage/ofd_packets [16:13:25]CheckFolder done [16:13:25]ProducePacketName [16:13:25]name=ofd_packets/00070609 [16:13:25]NVStorageSaveData ofd_packets/00070609 [16:13:25]File name is /storage/ofd_packets/00070609 [16:13:25]Write 301 bytes [16:13:25]NVStorageSaveData done [16:13:25]OFDSenderStorePacket done [16:13:25]KKMCreateOFDPacket done [16:13:25]NVStorageSaveData kkm_last_timestamp [16:13:25]File name is /storage/kkm_last_timestamp [16:13:25]Write 4 bytes [16:13:25]NVStorageSaveData done [16:13:25]ExternCall_PrintAddStr [16:13:25]wPrintStart [16:13:25]Write to MH i2c: 01 00 00 93 0A 9D [16:13:25]Write i2c OK [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: 01 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: 01 07 00 [16:13:25]MH_I2C_Read... [16:13:25]Read from MH i2c: 01 07 00 93 0A 00 00 00 00 00 FF 0F B2 [16:13:25]RasterBufferAndPrint [16:13:25]line Счет N : (1)141056 [16:13:25]line ИÐÐ: 02508201610067 [16:13:25]line Контрольно-КаÑÑовый Чек [16:13:25]line ПРОДÐЖР[16:13:25]line ТРК (МРК, ГÐК) : 31 [16:13:25]line Товар: 2710124130 [16:13:25]line Ðи-92-К-5 [16:13:25]line 25.070 * 65.90 [16:13:25]line = 1652.11 [16:13:25]line ÐДС 12% ÐСП 1% [16:13:25]line > о реализуемом товаре [16:13:25]line ИТОГО: 1652.11 [16:13:25]line ÐСП 1% : 14.62 [16:13:25]line ÐДС 12% : 175.44 [16:13:25]line Ðаличными: 0.00 [16:13:25]line Безнал.: 1652.11 [16:13:25]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [16:13:25]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [16:13:25]line СÐО: Общий режим [16:13:25]line Чек 41 12.08.2024 16:13 [16:13:25]line Смена: 465 ФФД: 1.0 [16:13:25]line ЗÐМ: 0300000140 [16:13:25]line РÐМ: 0000000000090913 [16:13:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:13:25]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [16:13:25]line ФМ: 0000000000874915 [16:13:25]line ФД: 70609 [16:13:25]line ФПД: 167081192122639 [16:13:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T161325&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70609&fm=167081192122639&tin=02508201610067®Number=0000000000090913&sum=165211 [16:13:26]OFD Sender: Processing packet 70609 [packets to send 67, broken 66] [16:13:26]ProducePacketName [16:13:26]name=ofd_packets/00070609 [16:13:26]OFD Sender: To server: ‡•öpG, [16:13:26]CommunicateWithHost lk.salyk.kg:30040 [16:13:26]ConnectInit lk.salyk.kg [16:13:26]written 0, free lines is 4095 [16:13:26]Connected sock=10 [16:13: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 39 31 35 0F 01 00 00 93 DE 07 01 CC FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 61 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 5B 85 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B 85 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 44 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 85 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A5 34 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D1 13 01 00 35 04 06 00 97 F5 9F 1A E9 0F CF DE 1D 4C 3D 41 D9 BC [16:13:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 C8 B9 47 00 A6 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D1 13 01 00 F4 03 04 00 92 DB B9 66 B6 04 01 00 00 EE 35 04 02 21 5D FD 5F [16:13:26]CommunicateWithHost err = 0 [16:13:26]CheckOFDResponse [16:13:26]1017 (14) - 77093643461234 [16:13:26]1041 (16) - 0000000000874915 [16:13:26]1040 (4) - 70609 [16:13:26]1012 (4) - 12.08.2024 09:53 [16:13:26]1206 (1) - 0 [16:13:26]OFD Sender: Remove packet 70609 [16:13:26]ProducePacketName [16:13:26]name=ofd_packets/00070609 [16:13:26]NVStorageDeleteData [16:13:26]Write to MH i2c: 01 00 00 BD 0A C7 [16:13:26]Write i2c OK [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: 01 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: 01 07 00 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: 01 07 00 BD 0A 00 00 00 00 00 F5 0C CF [16:13:26]RasterBufferAndPrint [16:13:26]line [16:13:26]line [16:13:26]line [16:13:26]line [16:13:26]line [16:13:26]written 0, free lines is 3323 [16:13:26]MH_Cut [16:13:26]Write to MH i2c: D1 01 00 C4 0A 01 A0 [16:13:26]Write i2c OK [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: D1 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: D1 01 00 [16:13:26]MH_I2C_Read... [16:13:26]Read from MH i2c: D1 01 00 C4 0A 00 9F [16:13:26]Write to MH i2c: 01 00 00 C5 0A CF [16:13:26]Write i2c OK [16:13:26]MH_I2C_Read... [16:13:26]OFD Sender: No OFD packet to send [16:13:27]*** Cut start [16:13:27]*** Purtial cut [16:13:27]*** CUTSNS_PIN = 0 [16:13:27]*** Stage 1: CUTSNS_PIN = 1 [16:13:29]Read from MH i2c: 01 [16:13:29]MH_I2C_Read... [16:13:29]*** Stop cut motor [16:13:29]*** Cut end [16:13:29]Read from MH i2c: 01 07 00 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 FF 0F E4 [16:13:29]process_action close_receipt done [16:13:29]requested_data is exist [16:13:29]produce_requested_data [16:13:29]requested_item fm.sn is exist - process it [16:13:29]wFMCommunicate request_size=4 [16:13:29]MH_SAM_APDU [16:13:29]CAPDU: 80 11 00 00 [16:13:29]Write to MH i2c: E2 08 00 C6 0A 80 11 00 00 00 00 00 00 4A [16:13:29]Write i2c OK [16:13:29]MH_I2C_Read... [16:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:29]Read from MH i2c: E2 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: E2 17 00 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: E2 17 00 C6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 9F [16:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:13:29]wFMCommunicate OK [16:13:29]requested_item fd.num is exist - process it [16:13:29]SAM_PROTO_GetFieldsCounters [16:13:29]wFMCommunicate request_size=4 [16:13:29]MH_SAM_APDU [16:13:29]CAPDU: 80 13 00 00 [16:13:29]Write to MH i2c: E2 08 00 C7 0A 80 13 00 00 00 00 00 00 4D [16:13:29]Write i2c OK [16:13:29]MH_I2C_Read... [16:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:29]Read from MH i2c: E2 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: E2 62 00 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: E2 62 00 C7 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 9F [16:13:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 [16:13:29]wFMCommunicate OK [16:13:29]SAM_PROTO_GetFieldsCounters done [16:13:29]requested_item shift.num is exist - process it [16:13:29]requested_item shift.opened is exist - process it [16:13:29]req_shift_opened [16:13:29]FM_GetShiftState [16:13:29]SAM_PROTO_GetShiftState [16:13:29]wFMCommunicate request_size=4 [16:13:29]MH_SAM_APDU [16:13:29]CAPDU: 80 13 01 00 [16:13:29]Write to MH i2c: E2 08 00 C8 0A 80 13 01 00 00 00 00 00 4F [16:13:29]Write i2c OK [16:13:29]MH_I2C_Read... [16:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:29]Read from MH i2c: E2 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: E2 0E 00 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: E2 0E 00 C8 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 3C [16:13:29]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:13:29]wFMCommunicate OK [16:13:29]SAM_PROTO_GetShiftState done [16:13:29]FM_GetShiftState done [16:13:29]req_shift_opened done [16:13:29]requested_item shift.open_date is exist - process it [16:13:29]req_shift_open_date [16:13:29]req_shift_open_date done [16:13:29]produce_requested_data done [16:13:29]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:13:29]process_action_free close_receipt [16:13:29]json_value_free [16:13:29]json_value_free done [16:13:29]process_json_proto returns [16:13:29]Send response to host [16:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:13:29]free response buf [16:13:29]execute_script done [16:13:29]execute_script returns [16:13:29]free content buf [16:13:29]Sock 7.Close socket [16:13:29]Sock 7.Thread stoped [16:13:29]int [16:13:29]Write to MH i2c: 01 00 00 C9 0A D3 [16:13:29]*** FLAG_PRN_KEY set [16:13:29]Write i2c OK [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 07 00 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 07 00 C9 0A 00 08 00 00 00 FF 0F F0 [16:13:29]state=0 [16:13:29]Key pressed [16:13:29]Feed [16:13:29]Write to MH i2c: D8 00 00 CA 0A AB [16:13:29]Write i2c OK [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: D8 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: D8 01 00 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: D8 01 00 CA 0A 00 AC [16:13:29]int [16:13:29]Write to MH i2c: 01 00 00 CB 0A D5 [16:13:29]Write i2c OK [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 07 00 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 07 00 CB 0A 00 48 00 00 00 3C 00 60 [16:13:29]state=2 [16:13:29]Key pressed [16:13:29]int [16:13:29]Write to MH i2c: 01 00 00 CC 0A D6 [16:13:29]*** FLAG_PRN_KEY reset [16:13:29]Write i2c OK [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 07 00 [16:13:29]MH_I2C_Read... [16:13:29]Read from MH i2c: 01 07 00 CC 0A 00 00 00 00 00 FF 0F EB [16:13:29]state=2 [16:13:29]Stop feed [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:07]accept exits with 9 [16:17:07]New connection [16:17:07]New thread 3066842468 created [16:17:07]Thread 3066699108 joined [16:17:07]Waiting for new connection... [16:17:07] Sock 9.Parse request [16:17:07]Sock 9.Check first char [16:17:07]Sock 9.First char is OK [16:17:07]request: POST /json_proto HTTP/1.0 [16:17:07]Method: POST [16:17:07]URL: /json_proto [16:17:07]Method is POST - this is cgi request [16:17:07]url: /json_proto [16:17:07]query_string will be loaded in cgi processing [16:17:07]execute_cgi json_proto POST (null) [16:17:07]execute_cgi path=json_proto method=POST [16:17:07]POST find Content-Length [16:17:07]Host: 172.17.58.67:8080 [16:17:07]Content-Length: 1190 [16:17:07]Content-Type: application/json [16:17:07] [16:17:07]POST finish read [16:17:07]Found Content-Length = 1190 [16:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141057\u000A12.08.2024 15:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 39.850 x 65.90\u000A\u0418\u0422\u041E\u0413: 2626.12\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\u000A53038\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:07]execute_script... [16:17:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141057\u000A12.08.2024 15:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 39.850 x 65.90\u000A\u0418\u0422\u041E\u0413: 2626.12\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\u000A53038\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:07]POST & json_proto [16:17:07]process_json_proto [16:17:07]json parsed OK: [16:17:07]protocol is kg_v1.0 [16:17:07]action value=print_text [16:17:07]process_action print_text [16:17:07]cmd_print_text [16:17:07]ExternCall_PrintAddStr [16:17:07]wPrintStart [16:17:07]Write to MH i2c: 01 00 00 CD 0A D7 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: 01 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: 01 07 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 FF 0F EC [16:17:07]RasterBufferAndPrint [16:17:07]line *****ТОВÐРÐЫЙ ЧЕК***** [16:17:07]line ÐЗС 39 [16:17:07]line Партнер нефть [16:17:07]line 02508201610067 [16:17:07]line КаÑÑир : Мирбек к Ð. [16:17:07]line Счет N : (1)141057 [16:17:07]line 12.08.2024 15:36 [16:17:07]line ПРОДÐЖР[16:17:07]line ТРК (МРК, ГÐК): 41 [16:17:07]line Вид ГСМ : 2710124130 [16:17:07]line Ðи-92-К-5 [16:17:07]line 39.850 x 65.90 [16:17:07]line ИТОГ: 2626.12 [16:17:07]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [16:17:07]line 53038 [16:17:07]line ______________________ [16:17:07]line (подпиÑÑŒ) [16:17:07]written 0, free lines is 4095 [16:17:07]Write to MH i2c: 01 00 00 E1 0A EB [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: 01 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: 01 07 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: 01 07 00 E1 0A 00 00 00 00 00 12 0E 12 [16:17:07]RasterBufferAndPrint [16:17:07]line [16:17:07]line [16:17:07]line [16:17:07]line [16:17:07]line [16:17:07]written 0, free lines is 3604 [16:17:07]MH_Cut [16:17:07]Write to MH i2c: D1 01 00 E8 0A 01 C4 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: D1 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: D1 01 00 [16:17:07]MH_I2C_Read... [16:17:07]Read from MH i2c: D1 01 00 E8 0A 00 C3 [16:17:07]Write to MH i2c: 01 00 00 E9 0A F3 [16:17:07]Write i2c OK [16:17:07]MH_I2C_Read... [16:17:08]*** Cut start [16:17:08]*** Purtial cut [16:17:08]*** Stage 1: CUTSNS_PIN = 1 [16:17:08]Read from MH i2c: 01 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: 01 07 00 [16:17:08]MH_I2C_Read... [16:17:08]*** Stop cut motor [16:17:08]*** Cut end [16:17:08]Read from MH i2c: 01 07 00 E9 0A 00 00 00 00 00 FF 0F 08 [16:17:08]process_action print_text done [16:17:08]requested_data is exist [16:17:08]produce_requested_data [16:17:08]requested_item fm.sn is exist - process it [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 11 00 00 [16:17:08]Write to MH i2c: E2 08 00 EA 0A 80 11 00 00 00 00 00 00 6E [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 17 00 EA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C3 [16:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:17:08]wFMCommunicate OK [16:17:08]requested_item fd.num is exist - process it [16:17:08]SAM_PROTO_GetFieldsCounters [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 13 00 00 [16:17:08]Write to MH i2c: E2 08 00 EB 0A 80 13 00 00 00 00 00 00 71 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 62 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 62 00 EB 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 C3 [16:17: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_GetFieldsCounters done [16:17:08]requested_item shift.num is exist - process it [16:17:08]requested_item shift.opened is exist - process it [16:17:08]req_shift_opened [16:17:08]FM_GetShiftState [16:17:08]SAM_PROTO_GetShiftState [16:17:08]wFMCommunicate request_size=4 [16:17:08]MH_SAM_APDU [16:17:08]CAPDU: 80 13 01 00 [16:17:08]Write to MH i2c: E2 08 00 EC 0A 80 13 01 00 00 00 00 00 73 [16:17:08]Write i2c OK [16:17:08]MH_I2C_Read... [16:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:08]Read from MH i2c: E2 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0E 00 [16:17:08]MH_I2C_Read... [16:17:08]Read from MH i2c: E2 0E 00 EC 0A 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 60 [16:17:08]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:17:08]wFMCommunicate OK [16:17:08]SAM_PROTO_GetShiftState done [16:17:08]FM_GetShiftState done [16:17:08]req_shift_opened done [16:17:08]requested_item shift.open_date is exist - process it [16:17:08]req_shift_open_date [16:17:08]req_shift_open_date done [16:17:08]produce_requested_data done [16:17:08]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:17:08]process_action_free print_text [16:17:08]json_value_free [16:17:08]json_value_free done [16:17:08]process_json_proto returns [16:17:08]Send response to host [16:17:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:17:08]free response buf [16:17:08]execute_script done [16:17:08]execute_script returns [16:17:08]free content buf [16:17:08]Sock 9.Close socket [16:17:08]Sock 9.Thread stoped [16:17:09]int [16:17:09]Write to MH i2c: 01 00 00 ED 0A F7 [16:17:09]*** FLAG_PRN_KEY set [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 ED 0A 00 08 00 00 00 FF 0F 14 [16:17:09]state=0 [16:17:09]Key pressed [16:17:09]Feed [16:17:09]Write to MH i2c: D8 00 00 EE 0A CF [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D8 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D8 01 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: D8 01 00 EE 0A 00 D0 [16:17:09]int [16:17:09]Write to MH i2c: 01 00 00 EF 0A F9 [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 EF 0A 00 48 00 00 00 3C 00 84 [16:17:09]state=2 [16:17:09]Key pressed [16:17:09]int [16:17:09]Write to MH i2c: 01 00 00 F0 0A FA [16:17:09]*** FLAG_PRN_KEY reset [16:17:09]Write i2c OK [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 [16:17:09]MH_I2C_Read... [16:17:09]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 FC 0F 0C [16:17:09]state=2 [16:17:09]Stop feed [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:19]accept exits with 7 [16:18:19]New connection [16:18:19]New thread 3066699108 created [16:18:19]Thread 3066842468 joined [16:18:19]Waiting for new connection... [16:18:19] Sock 7.Parse request [16:18:19]Sock 7.Check first char [16:18:19]Sock 7.First char is OK [16:18:19]request: POST /json_proto HTTP/1.0 [16:18:19]Method: POST [16:18:19]URL: /json_proto [16:18:19]Method is POST - this is cgi request [16:18:19]url: /json_proto [16:18:19]query_string will be loaded in cgi processing [16:18:19]execute_cgi json_proto POST (null) [16:18:19]execute_cgi path=json_proto method=POST [16:18:19]POST find Content-Length [16:18:19]Host: 172.17.58.67:8080 [16:18:19]Content-Length: 1187 [16:18:19]Content-Type: application/json [16:18:19] [16:18:19]POST finish read [16:18:19]Found Content-Length = 1187 [16:18: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141059\u000A12.08.2024 15:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 14\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 2232.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\u000A03351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:19]execute_script... [16:18: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141059\u000A12.08.2024 15:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 14\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 2232.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\u000A03351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:19]POST & json_proto [16:18:19]process_json_proto [16:18:19]json parsed OK: [16:18:19]protocol is kg_v1.0 [16:18:19]action value=print_text [16:18:19]process_action print_text [16:18:19]cmd_print_text [16:18:19]ExternCall_PrintAddStr [16:18:19]wPrintStart [16:18:19]Write to MH i2c: 01 00 00 F1 0A FB [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 07 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 FF 0F 10 [16:18:19]RasterBufferAndPrint [16:18:19]line *****ТОВÐРÐЫЙ ЧЕК***** [16:18:19]line ÐЗС 39 [16:18:19]line Партнер нефть [16:18:19]line 02508201610067 [16:18:19]line КаÑÑир : Мирбек к Ð. [16:18:19]line Счет N : (1)141059 [16:18:19]line 12.08.2024 15:37 [16:18:19]line ПРОДÐЖР[16:18:19]line ТРК (МРК, ГÐК): 14 [16:18:19]line Вид ГСМ : 2710194210 [16:18:19]line ДТ-К-5 [16:18:19]line 30.000 x 74.40 [16:18:19]line ИТОГ: 2232.00 [16:18:19]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [16:18:19]line 03351 [16:18:19]line ______________________ [16:18:19]line (подпиÑÑŒ) [16:18:19]written 0, free lines is 4095 [16:18:19]Write to MH i2c: 01 00 00 05 0B 10 [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 07 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 0F 0E 34 [16:18:19]RasterBufferAndPrint [16:18:19]line [16:18:19]line [16:18:19]line [16:18:19]line [16:18:19]line [16:18:19]written 0, free lines is 3601 [16:18:19]MH_Cut [16:18:19]Write to MH i2c: D1 01 00 0C 0B 01 E9 [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: D1 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: D1 01 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: D1 01 00 0C 0B 00 E8 [16:18:19]Write to MH i2c: 01 00 00 0D 0B 18 [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:20]*** Cut start [16:18:20]*** Purtial cut [16:18:20]*** CUTSNS_PIN = 0 [16:18:20]*** Stage 1: CUTSNS_PIN = 1 [16:18:22]OFD Sender: No OFD packet to send [16:18:22]Read from MH i2c: 01 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: 01 07 00 [16:18:22]MH_I2C_Read... [16:18:22]*** Stop cut motor [16:18:22]*** Cut end [16:18:22]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [16:18:22]process_action print_text done [16:18:22]requested_data is exist [16:18:22]produce_requested_data [16:18:22]requested_item fm.sn is exist - process it [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 11 00 00 [16:18:22]Write to MH i2c: E2 08 00 0E 0B 80 11 00 00 00 00 00 00 93 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 17 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 17 00 0E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E8 [16:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:18:22]wFMCommunicate OK [16:18:22]requested_item fd.num is exist - process it [16:18:22]SAM_PROTO_GetFieldsCounters [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 13 00 00 [16:18:22]Write to MH i2c: E2 08 00 0F 0B 80 13 00 00 00 00 00 00 96 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 62 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 62 00 0F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 E8 [16:18:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 [16:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_GetFieldsCounters done [16:18:22]requested_item shift.num is exist - process it [16:18:22]requested_item shift.opened is exist - process it [16:18:22]req_shift_opened [16:18:22]FM_GetShiftState [16:18:22]SAM_PROTO_GetShiftState [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 13 01 00 [16:18:22]Write to MH i2c: E2 08 00 10 0B 80 13 01 00 00 00 00 00 98 [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0E 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0E 00 10 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 85 [16:18:22]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_GetShiftState done [16:18:22]FM_GetShiftState done [16:18:22]req_shift_opened done [16:18:22]requested_item shift.open_date is exist - process it [16:18:22]req_shift_open_date [16:18:22]req_shift_open_date done [16:18:22]produce_requested_data done [16:18:22]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:18:22]process_action_free print_text [16:18:22]json_value_free [16:18:22]json_value_free done [16:18:22]process_json_proto returns [16:18:22]Send response to host [16:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:18:22]free response buf [16:18:22]execute_script done [16:18:22]execute_script returns [16:18:22]free content buf [16:18:22]Sock 7.Close socket [16:18:22]Sock 7.Thread stoped [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:50]int [16:18:50]Write to MH i2c: 01 00 00 11 0B 1C [16:18:50]*** FLAG_PRN_KEY set [16:18:50]Write i2c OK [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 07 00 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 07 00 11 0B 00 08 00 00 00 FF 0F 39 [16:18:50]state=0 [16:18:50]Key pressed [16:18:50]Feed [16:18:50]Write to MH i2c: D8 00 00 12 0B F4 [16:18:50]Write i2c OK [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: D8 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: D8 01 00 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: D8 01 00 12 0B 00 F5 [16:18:50]int [16:18:50]Write to MH i2c: 01 00 00 13 0B 1E [16:18:50]Write i2c OK [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 07 00 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 07 00 13 0B 00 48 00 00 00 3C 00 A9 [16:18:50]state=2 [16:18:50]Key pressed [16:18:50]int [16:18:50]Write to MH i2c: 01 00 00 14 0B 1F [16:18:50]*** FLAG_PRN_KEY reset [16:18:50]Write i2c OK [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 07 00 [16:18:50]MH_I2C_Read... [16:18:50]Read from MH i2c: 01 07 00 14 0B 00 00 00 00 00 F6 0F 2B [16:18:50]state=2 [16:18:50]Stop feed [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:15]accept exits with 9 [16:27:15]New connection [16:27:15]New thread 3066842468 created [16:27:15]Thread 3066699108 joined [16:27:15]Waiting for new connection... [16:27:15] Sock 9.Parse request [16:27:15]Sock 9.Check first char [16:27:15]Sock 9.First char is OK [16:27:15]request: POST /json_proto HTTP/1.0 [16:27:15]Method: POST [16:27:15]URL: /json_proto [16:27:15]Method is POST - this is cgi request [16:27:15]url: /json_proto [16:27:15]query_string will be loaded in cgi processing [16:27:15]execute_cgi json_proto POST (null) [16:27:15]execute_cgi path=json_proto method=POST [16:27:15]POST find Content-Length [16:27:15]Host: 172.17.58.67:8080 [16:27:15]Content-Length: 1179 [16:27:15]Content-Type: application/json [16:27:15] [16:27:15]POST finish read [16:27:15]Found Content-Length = 1179 [16:27: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141060\u000A12.08.2024 15:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4212645\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:15]execute_script... [16:27: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141060\u000A12.08.2024 15:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 659.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\u000A4212645\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:15]POST & json_proto [16:27:15]process_json_proto [16:27:15]json parsed OK: [16:27:15]protocol is kg_v1.0 [16:27:15]action value=print_text [16:27:15]process_action print_text [16:27:15]cmd_print_text [16:27:15]ExternCall_PrintAddStr [16:27:15]wPrintStart [16:27:15]Write to MH i2c: 01 00 00 15 0B 20 [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: 01 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: 01 07 00 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: 01 07 00 15 0B 00 00 00 00 00 FF 0F 35 [16:27:15]RasterBufferAndPrint [16:27:15]line *****ТОВÐРÐЫЙ ЧЕК***** [16:27:15]line ÐЗС 39 [16:27:15]line Партнер нефть [16:27:15]line 02508201610067 [16:27:15]line КаÑÑир : Мирбек к Ð. [16:27:15]line Счет N : (1)141060 [16:27:15]line 12.08.2024 15:46 [16:27:15]line ПРОДÐЖР[16:27:15]line ТРК (МРК, ГÐК): 41 [16:27:15]line Вид ГСМ : 2710124130 [16:27:15]line Ðи-92-К-5 [16:27:15]line 10.000 x 65.90 [16:27:15]line ИТОГ: 659.00 [16:27:15]line Тип оплаты: Талоны: Партнер нефть [16:27:15]line 4212645 [16:27:15]line ______________________ [16:27:15]line (подпиÑÑŒ) [16:27:15]written 0, free lines is 4095 [16:27:15]Write to MH i2c: 01 00 00 29 0B 34 [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: 01 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: 01 07 00 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: 01 07 00 29 0B 00 00 00 00 00 12 0E 5B [16:27:15]RasterBufferAndPrint [16:27:15]line [16:27:15]line [16:27:15]line [16:27:15]line [16:27:15]line [16:27:15]written 0, free lines is 3603 [16:27:15]MH_Cut [16:27:15]Write to MH i2c: D1 01 00 30 0B 01 0D [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: D1 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: D1 01 00 [16:27:15]MH_I2C_Read... [16:27:15]Read from MH i2c: D1 01 00 30 0B 00 0C [16:27:15]Write to MH i2c: 01 00 00 31 0B 3C [16:27:15]Write i2c OK [16:27:15]MH_I2C_Read... [16:27:16]*** Cut start [16:27:16]*** Purtial cut [16:27:16]*** Stage 1: CUTSNS_PIN = 1 [16:27:16]Read from MH i2c: 01 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: 01 07 00 [16:27:16]MH_I2C_Read... [16:27:16]*** Stop cut motor [16:27:16]*** Cut end [16:27:16]Read from MH i2c: 01 07 00 31 0B 00 00 00 00 00 FF 0F 51 [16:27:16]process_action print_text done [16:27:16]requested_data is exist [16:27:16]produce_requested_data [16:27:16]requested_item fm.sn is exist - process it [16:27:16]wFMCommunicate request_size=4 [16:27:16]MH_SAM_APDU [16:27:16]CAPDU: 80 11 00 00 [16:27:16]Write to MH i2c: E2 08 00 32 0B 80 11 00 00 00 00 00 00 B7 [16:27:16]Write i2c OK [16:27:16]MH_I2C_Read... [16:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:16]Read from MH i2c: E2 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: E2 17 00 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: E2 17 00 32 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0C [16:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:27:16]wFMCommunicate OK [16:27:16]requested_item fd.num is exist - process it [16:27:16]SAM_PROTO_GetFieldsCounters [16:27:16]wFMCommunicate request_size=4 [16:27:16]MH_SAM_APDU [16:27:16]CAPDU: 80 13 00 00 [16:27:16]Write to MH i2c: E2 08 00 33 0B 80 13 00 00 00 00 00 00 BA [16:27:16]Write i2c OK [16:27:16]MH_I2C_Read... [16:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:16]Read from MH i2c: E2 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: E2 62 00 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: E2 62 00 33 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 0C [16:27: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 [16:27:16]wFMCommunicate OK [16:27:16]SAM_PROTO_GetFieldsCounters done [16:27:16]requested_item shift.num is exist - process it [16:27:16]requested_item shift.opened is exist - process it [16:27:16]req_shift_opened [16:27:16]FM_GetShiftState [16:27:16]SAM_PROTO_GetShiftState [16:27:16]wFMCommunicate request_size=4 [16:27:16]MH_SAM_APDU [16:27:16]CAPDU: 80 13 01 00 [16:27:16]Write to MH i2c: E2 08 00 34 0B 80 13 01 00 00 00 00 00 BC [16:27:16]Write i2c OK [16:27:16]MH_I2C_Read... [16:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:16]Read from MH i2c: E2 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: E2 0E 00 [16:27:16]MH_I2C_Read... [16:27:16]Read from MH i2c: E2 0E 00 34 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 A9 [16:27:16]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:27:16]wFMCommunicate OK [16:27:16]SAM_PROTO_GetShiftState done [16:27:16]FM_GetShiftState done [16:27:16]req_shift_opened done [16:27:16]requested_item shift.open_date is exist - process it [16:27:16]req_shift_open_date [16:27:16]req_shift_open_date done [16:27:16]produce_requested_data done [16:27:16]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:27:16]process_action_free print_text [16:27:16]json_value_free [16:27:16]json_value_free done [16:27:16]process_json_proto returns [16:27:16]Send response to host [16:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:27:16]free response buf [16:27:16]execute_script done [16:27:16]execute_script returns [16:27:16]free content buf [16:27:16]Sock 9.Close socket [16:27:16]Sock 9.Thread stoped [16:27:17]OFD Sender: No OFD packet to send [16:27:22]int [16:27:22]Write to MH i2c: 01 00 00 35 0B 40 [16:27:22]*** FLAG_PRN_KEY set [16:27:22]Write i2c OK [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 07 00 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 07 00 35 0B 00 08 00 00 00 FF 0F 5D [16:27:22]state=0 [16:27:22]Key pressed [16:27:22]Feed [16:27:22]Write to MH i2c: D8 00 00 36 0B 18 [16:27:22]Write i2c OK [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: D8 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: D8 01 00 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: D8 01 00 36 0B 00 19 [16:27:22]int [16:27:22]Write to MH i2c: 01 00 00 37 0B 42 [16:27:22]Write i2c OK [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 07 00 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 07 00 37 0B 00 48 00 00 00 3C 00 CD [16:27:22]state=2 [16:27:22]Key pressed [16:27:22]int [16:27:22]Write to MH i2c: 01 00 00 38 0B 43 [16:27:22]*** FLAG_PRN_KEY reset [16:27:22]Write i2c OK [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 07 00 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 07 00 38 0B 00 00 00 00 00 F5 0F 4E [16:27:22]state=2 [16:27:22]Stop feed [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:26]accept exits with 7 [16:35:26]New connection [16:35:26]New thread 3066699108 created [16:35:26]Thread 3066842468 joined [16:35:26]Waiting for new connection... [16:35:26] Sock 7.Parse request [16:35:26]Sock 7.Check first char [16:35:26]Sock 7.First char is OK [16:35:26]request: POST /json_proto HTTP/1.0 [16:35:26]Method: POST [16:35:26]URL: /json_proto [16:35:26]Method is POST - this is cgi request [16:35:26]url: /json_proto [16:35:26]query_string will be loaded in cgi processing [16:35:26]execute_cgi json_proto POST (null) [16:35:26]execute_cgi path=json_proto method=POST [16:35:26]POST find Content-Length [16:35:26]Host: 172.17.58.67:8080 [16:35:26]Content-Length: 1189 [16:35:26]Content-Type: application/json [16:35:26] [16:35:26]POST finish read [16:35:26]Found Content-Length = 1189 [16:35:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141058\u000A12.08.2024 15:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 34\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 800.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 59520.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\u000A53038\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:26]execute_script... [16:35:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141058\u000A12.08.2024 15:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 34\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 800.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 59520.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\u000A53038\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:26]POST & json_proto [16:35:26]process_json_proto [16:35:26]json parsed OK: [16:35:26]protocol is kg_v1.0 [16:35:26]action value=print_text [16:35:26]process_action print_text [16:35:26]cmd_print_text [16:35:26]ExternCall_PrintAddStr [16:35:26]wPrintStart [16:35:26]Write to MH i2c: 01 00 00 39 0B 44 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 07 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 07 00 39 0B 00 00 00 00 00 FF 0F 59 [16:35:26]RasterBufferAndPrint [16:35:26]line *****ТОВÐРÐЫЙ ЧЕК***** [16:35:26]line ÐЗС 39 [16:35:26]line Партнер нефть [16:35:26]line 02508201610067 [16:35:26]line КаÑÑир : Мирбек к Ð. [16:35:26]line Счет N : (1)141058 [16:35:26]line 12.08.2024 15:54 [16:35:26]line ПРОДÐЖР[16:35:26]line ТРК (МРК, ГÐК): 34 [16:35:26]line Вид ГСМ : 2710194210 [16:35:26]line ДТ-К-5 [16:35:26]line 800.000 x 74.40 [16:35:26]line ИТОГ: 59520.00 [16:35:26]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [16:35:26]line 53038 [16:35:26]line ______________________ [16:35:26]line (подпиÑÑŒ) [16:35:26]written 0, free lines is 4095 [16:35:26]Write to MH i2c: 01 00 00 4D 0B 58 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 07 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: 01 07 00 4D 0B 00 00 00 00 00 10 0E 7D [16:35:26]RasterBufferAndPrint [16:35:26]line [16:35:26]line [16:35:26]line [16:35:26]line [16:35:26]line [16:35:26]written 0, free lines is 3602 [16:35:26]MH_Cut [16:35:26]Write to MH i2c: D1 01 00 54 0B 01 31 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: D1 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: D1 01 00 [16:35:26]MH_I2C_Read... [16:35:26]Read from MH i2c: D1 01 00 54 0B 00 30 [16:35:26]Write to MH i2c: 01 00 00 55 0B 60 [16:35:26]Write i2c OK [16:35:26]MH_I2C_Read... [16:35:26]*** Cut start [16:35:26]*** Purtial cut [16:35:26]*** CUTSNS_PIN = 0 [16:35:26]*** Stage 1: CUTSNS_PIN = 1 [16:35:28]OFD Sender: No OFD packet to send [16:35:28]Read from MH i2c: 01 [16:35:28]MH_I2C_Read... [16:35:28]*** Stop cut motor [16:35:28]*** Cut end [16:35:28]Read from MH i2c: 01 07 00 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: 01 07 00 55 0B 00 00 00 00 00 FF 0F 75 [16:35:28]process_action print_text done [16:35:28]requested_data is exist [16:35:28]produce_requested_data [16:35:28]requested_item fm.sn is exist - process it [16:35:28]wFMCommunicate request_size=4 [16:35:28]MH_SAM_APDU [16:35:28]CAPDU: 80 11 00 00 [16:35:28]Write to MH i2c: E2 08 00 56 0B 80 11 00 00 00 00 00 00 DB [16:35:28]Write i2c OK [16:35:28]MH_I2C_Read... [16:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:28]Read from MH i2c: E2 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: E2 17 00 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: E2 17 00 56 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 30 [16:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:35:28]wFMCommunicate OK [16:35:28]requested_item fd.num is exist - process it [16:35:28]SAM_PROTO_GetFieldsCounters [16:35:28]wFMCommunicate request_size=4 [16:35:28]MH_SAM_APDU [16:35:28]CAPDU: 80 13 00 00 [16:35:28]Write to MH i2c: E2 08 00 57 0B 80 13 00 00 00 00 00 00 DE [16:35:28]Write i2c OK [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: E2 [16:35:28]MH_I2C_Read... [16:35:28]Read from MH i2c: E2 62 00 [16:35:28]MH_I2C_Read... [16:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:28]Read from MH i2c: E2 62 00 57 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 30 [16:35: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D1 13 01 00 0E 04 04 00 D1 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 [16:35:28]wFMCommunicate OK [16:35:28]SAM_PROTO_GetFieldsCounters done [16:35:28]requested_item shift.num is exist - process it [16:35:28]requested_item shift.opened is exist - process it [16:35:28]req_shift_opened [16:35:28]FM_GetShiftState [16:35:28]SAM_PROTO_GetShiftState [16:35:28]wFMCommunicate request_size=4 [16:35:28]MH_SAM_APDU [16:35:28]CAPDU: 80 13 01 00 [16:35:28]Write to MH i2c: E2 08 00 58 0B 80 13 01 00 00 00 00 00 E0 [16:35:28]Write i2c OK [16:35:28]MH_I2C_Read... [16:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:29]Read from MH i2c: E2 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 0E 00 [16:35:29]MH_I2C_Read... [16:35:29]Read from MH i2c: E2 0E 00 58 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 CD [16:35:29]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:35:29]wFMCommunicate OK [16:35:29]SAM_PROTO_GetShiftState done [16:35:29]FM_GetShiftState done [16:35:29]req_shift_opened done [16:35:29]requested_item shift.open_date is exist - process it [16:35:29]req_shift_open_date [16:35:29]req_shift_open_date done [16:35:29]produce_requested_data done [16:35:29]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:35:29]process_action_free print_text [16:35:29]json_value_free [16:35:29]json_value_free done [16:35:29]process_json_proto returns [16:35:29]Send response to host [16:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70609,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:35:29]free response buf [16:35:29]execute_script done [16:35:29]execute_script returns [16:35:29]free content buf [16:35:29]Sock 7.Close socket [16:35:29]Sock 7.Thread stoped [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:44]int [16:35:44]Write to MH i2c: 01 00 00 59 0B 64 [16:35:44]*** FLAG_PRN_KEY set [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 59 0B 00 08 00 00 00 FF 0F 81 [16:35:44]state=0 [16:35:44]Key pressed [16:35:44]Feed [16:35:44]Write to MH i2c: D8 00 00 5A 0B 3C [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: D8 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: D8 01 00 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: D8 01 00 5A 0B 00 3D [16:35:44]int [16:35:44]Write to MH i2c: 01 00 00 5B 0B 66 [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 5B 0B 00 48 00 00 00 3C 00 F1 [16:35:44]state=2 [16:35:44]Key pressed [16:35:44]int [16:35:44]Write to MH i2c: 01 00 00 5C 0B 67 [16:35:44]*** FLAG_PRN_KEY reset [16:35:44]Write i2c OK [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 [16:35:44]MH_I2C_Read... [16:35:44]Read from MH i2c: 01 07 00 5C 0B 00 00 00 00 00 F6 0F 73 [16:35:44]state=2 [16:35:44]Stop feed [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:37:58]accept exits with 9 [16:37:58]New connection [16:37:58]New thread 3066842468 created [16:37:58]Thread 3066699108 joined [16:37:58]Waiting for new connection... [16:37:58] Sock 9.Parse request [16:37:58]Sock 9.Check first char [16:37:58]Sock 9.First char is OK [16:37:58]request: POST /json_proto HTTP/1.0 [16:37:58]Method: POST [16:37:58]URL: /json_proto [16:37:58]Method is POST - this is cgi request [16:37:58]url: /json_proto [16:37:58]query_string will be loaded in cgi processing [16:37:58]execute_cgi json_proto POST (null) [16:37:58]execute_cgi path=json_proto method=POST [16:37:58]POST find Content-Length [16:37:58]Host: 172.17.58.67:8080 [16:37:58]Content-Length: 622 [16:37:58]Content-Type: application/json [16:37:58] [16:37:58]POST finish read [16:37:58]Found Content-Length = 622 [16:37:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17468", "tax_sys" : 0, "items" : [ { "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:58]execute_script... [16:37:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17468", "tax_sys" : 0, "items" : [ { "code": "4870001150389", "name": "\u0421\u043E\u043A DaDa 0,95\u043B \u0412\u0438\u0448\u043D\u044F", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:58]POST & json_proto [16:37:58]process_json_proto [16:37:58]json parsed OK: [16:37:58]protocol is kg_v1.0 [16:37:58]action value=close_receipt [16:37:58]process_action close_receipt [16:37:58]cmd_close_receipt [16:37:58]MH_GetDate [16:37:58]Write to MH i2c: F0 00 00 5D 0B 57 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: F0 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: F0 09 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: F0 09 00 5D 0B 00 67 3A BA 66 94 51 63 64 CD [16:37:58]GetLastDocTimeStamp 1723479205 [16:37:58]current date 1723480679 [16:37:58]FM_GetShiftState [16:37:58]SAM_PROTO_GetShiftState [16:37:58]wFMCommunicate request_size=4 [16:37:58]MH_SAM_APDU [16:37:58]CAPDU: 80 13 01 00 [16:37:58]Write to MH i2c: E2 08 00 5E 0B 80 13 01 00 00 00 00 00 E6 [16:37:58]Write i2c OK [16:37:58]MH_I2C_Read... [16:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:58]Read from MH i2c: E2 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0E 00 [16:37:58]MH_I2C_Read... [16:37:58]Read from MH i2c: E2 0E 00 5E 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D3 [16:37:58]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:37:58]wFMCommunicate OK [16:37:58]SAM_PROTO_GetShiftState done [16:37:58]FM_GetShiftState done [16:37:58]opened in 1723423336 [16:37:58]opened+sec_in_day 1723509736 [16:37:58]quantity*price = 15000 [16:37:58]sum+1 = 15001 [16:37:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 ÐСП 1% : 1.33 ÐДС 12% : 15.93 Ðаличными: 150.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 42 12.08.2024 16:38 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70610 ФПД: 156057118433791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T163800&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70610&fm=156057118433791&tin=02508201610067®Number=0000000000090913&sum=15000 0 [16:37:59]StoreToDocumentArchive [16:37:59]shift 465 fd 70610 [16:37:59]save to /storage/0465/doc_00070610 [16:37:59]save last doc name /storage/0465/doc_00070610 to /storage/kkm_last_doc_name [16:37:59]save OK [16:37:59]Clear old archive folders... [16:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:37:59]tlvbuf is 0109D090 [16:37:59]SAM_PROTO_ClearQueue [16:37:59]wFMCommunicate request_size=4 [16:37:59]MH_SAM_APDU [16:37:59]CAPDU: 80 09 00 00 [16:37:59]Write to MH i2c: E2 08 00 6B 0B 80 09 00 00 00 00 00 00 E8 [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:59]Read from MH i2c: E2 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 03 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 03 00 6B 0B 00 90 00 EA [16:37:59]RAPDU: 90 00 [16:37:59]wFMCommunicate OK [16:37:59]SAM_PROTO_ClearQueue done [16:37:59]KKMCreateOFDPacket [16:37:59]OFDProtocolAddRootSTLVToBuf [16:37:59]FM_MakeSignedData [16:37:59]FM_MakeSignedData [16:37:59]SAM_PROTO_SignData [16:37:59]wFMCommunicate request_size=4 [16:37:59]MH_SAM_APDU [16:37:59]CAPDU: 80 0D 01 02 [16:37:59]Write to MH i2c: E2 08 00 6C 0B 80 0D 01 02 00 00 00 00 F0 [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:59]Read from MH i2c: E2 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 03 00 [16:37:59]MH_I2C_Read... [16:37:59]Read from MH i2c: E2 03 00 6C 0B 00 90 00 EB [16:37:59]RAPDU: 90 00 [16:37:59]wFMCommunicate OK [16:37:59]wFMCommunicate request_size=255 [16:37:59]MH_SAM_APDU [16:37:59]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 68 3A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:37:59]Write to MH i2c: E2 02 01 6D 0B 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 68 3A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 0A [16:37:59]Write i2c OK [16:37:59]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 6D 0B 00 90 00 EC [16:38:00]RAPDU: 90 00 [16:38:00]wFMCommunicate OK [16:38:00]wFMCommunicate request_size=30 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 0D 02 02 19 30 38 37 34 39 31 35 10 04 04 00 D2 13 01 00 35 04 06 00 8D EE E1 1B E1 FF [16:38:00]Write to MH i2c: E2 21 00 6E 0B 80 0D 02 02 19 00 30 38 37 34 39 31 35 10 04 04 00 D2 13 01 00 35 04 06 00 8D EE E1 1B E1 FF 00 00 2B [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [16:38:00]RAPDU: 90 00 [16:38:00]wFMCommunicate OK [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 0D 03 02 [16:38:00]Write to MH i2c: E2 08 00 6F 0B 80 0D 03 02 00 00 00 00 F5 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0B 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 0B 00 6F 0B 00 AF F5 75 1A B1 A0 05 BC 90 00 3B [16:38:00]RAPDU: AF F5 75 1A B1 A0 05 BC 90 00 [16:38:00]wFMCommunicate OK [16:38:00]SAM_PROTO_SignData done [16:38:00]FM_MakeSignedData done [16:38:00]CreateOFDProtocolMessage [16:38:00]wFMCommunicate request_size=4 [16:38:00]MH_SAM_APDU [16:38:00]CAPDU: 80 11 00 00 [16:38:00]Write to MH i2c: E2 08 00 70 0B 80 11 00 00 00 00 00 00 F5 [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:00]Read from MH i2c: E2 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 17 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: E2 17 00 70 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4A [16:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:38:00]wFMCommunicate OK [16:38:00]CreateOFDProtocolMessage done [16:38:00]OFDSenderStorePacket 70610 [16:38:00]StoreOFDPacket docnum=70610 [16:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 23 01 00 00 4D 92 1B 01 EA 43 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 68 3A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D2 13 01 00 35 04 06 00 8D EE E1 1B E1 FF AF F5 75 1A B1 A0 05 BC [16:38:00]CheckFolder [16:38:00]dirname=/storage/ofd_packets [16:38:00]CheckFolder done [16:38:00]ProducePacketName [16:38:00]name=ofd_packets/00070610 [16:38:00]NVStorageSaveData ofd_packets/00070610 [16:38:00]File name is /storage/ofd_packets/00070610 [16:38:00]Write 321 bytes [16:38:00]NVStorageSaveData done [16:38:00]OFDSenderStorePacket done [16:38:00]KKMCreateOFDPacket done [16:38:00]NVStorageSaveData kkm_last_timestamp [16:38:00]File name is /storage/kkm_last_timestamp [16:38:00]Write 4 bytes [16:38:00]NVStorageSaveData done [16:38:00]ExternCall_PrintAddStr [16:38:00]wPrintStart [16:38:00]Write to MH i2c: 01 00 00 71 0B 7C [16:38:00]Write i2c OK [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 07 00 [16:38:00]MH_I2C_Read... [16:38:00]Read from MH i2c: 01 07 00 71 0B 00 00 00 00 00 FF 0F 91 [16:38:00]RasterBufferAndPrint [16:38:00]line Счет N : (3)17468 [16:38:00]line ИÐÐ: 02508201610067 [16:38:00]line Контрольно-КаÑÑовый Чек [16:38:00]line ПРОДÐЖР[16:38:00]line Товар: 4870001150389 [16:38:00]line Сок DaDa 0,95л Ð’Ð¸ÑˆÐ½Ñ [16:38:00]line 1.000 * 150.00 [16:38:00]line = 150.00 [16:38:00]line ÐДС 12% ÐСП 1% [16:38:00]line > о реализуемом товаре [16:38:00]line ИТОГО: 150.00 [16:38:00]line ÐСП 1% : 1.33 [16:38:00]line ÐДС 12% : 15.93 [16:38:00]line Ðаличными: 150.00 [16:38:00]line Безнал.: 0.00 [16:38:00]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [16:38:00]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [16:38:00]line СÐО: Общий режим [16:38:00]line Чек 42 12.08.2024 16:38 [16:38:00]line Смена: 465 ФФД: 1.0 [16:38:00]line ЗÐМ: 0300000140 [16:38:00]line РÐМ: 0000000000090913 [16:38:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:38:00]line ФМ: 0000000000874915 [16:38:00]line ФД: 70610 [16:38:00]line ФПД: 156057118433791 [16:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T163800&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70610&fm=156057118433791&tin=02508201610067®Number=0000000000090913&sum=15000 [16:38:00]OFD Sender: Processing packet 70610 [packets to send 67, broken 66] [16:38:00]ProducePacketName [16:38:00]name=ofd_packets/00070610 [16:38:00]OFD Sender: To server: ‡•öpG, [16:38:00]CommunicateWithHost lk.salyk.kg:30040 [16:38:00]ConnectInit lk.salyk.kg [16:38:00]line 0 [16:38:00]written 0, free lines is 4095 [16:38:00]Connected sock=10 [16:38: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 39 31 35 23 01 00 00 4D 92 1B 01 EA 43 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 33 38 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 44 61 20 30 2C 39 35 D0 BB 20 D0 92 D0 B8 D1 88 D0 BD D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 68 3A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D2 13 01 00 35 04 06 00 8D EE E1 1B E1 FF AF F5 75 1A B1 A0 05 BC [16:38:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 0A FF 47 00 24 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 39 31 35 10 04 04 00 D2 13 01 00 F4 03 04 00 54 E1 B9 66 B6 04 01 00 00 85 5F FB 43 77 D3 C2 45 [16:38:01]CommunicateWithHost err = 0 [16:38:01]CheckOFDResponse [16:38:01]1017 (14) - 77093643461234 [16:38:01]1041 (16) - 0000000000874915 [16:38:01]1040 (4) - 70610 [16:38:01]1012 (4) - 12.08.2024 10:17 [16:38:01]1206 (1) - 0 [16:38:01]OFD Sender: Remove packet 70610 [16:38:01]ProducePacketName [16:38:01]name=ofd_packets/00070610 [16:38:01]NVStorageDeleteData [16:38:01]Write to MH i2c: 01 00 00 99 0B A4 [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 07 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: 01 07 00 99 0B 00 00 00 00 00 0E 0D C6 [16:38:01]RasterBufferAndPrint [16:38:01]line [16:38:01]line [16:38:01]line [16:38:01]line [16:38:01]line [16:38:01]written 0, free lines is 3348 [16:38:01]MH_Cut [16:38:01]Write to MH i2c: D1 01 00 A0 0B 01 7D [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: D1 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: D1 01 00 [16:38:01]MH_I2C_Read... [16:38:01]Read from MH i2c: D1 01 00 A0 0B 00 7C [16:38:01]Write to MH i2c: 01 00 00 A1 0B AC [16:38:01]Write i2c OK [16:38:01]MH_I2C_Read... [16:38:01]OFD Sender: No OFD packet to send [16:38:01]*** Cut start [16:38:01]*** Purtial cut [16:38:01]*** Stage 1: CUTSNS_PIN = 1 [16:38:02]Read from MH i2c: 01 [16:38:02]MH_I2C_Read... [16:38:02]*** Stop cut motor [16:38:02]*** Cut end [16:38:02]Read from MH i2c: 01 07 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: 01 07 00 A1 0B 00 00 00 00 00 FF 0F C1 [16:38:02]process_action close_receipt done [16:38:02]requested_data is exist [16:38:02]produce_requested_data [16:38:02]requested_item fm.sn is exist - process it [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 11 00 00 [16:38:02]Write to MH i2c: E2 08 00 A2 0B 80 11 00 00 00 00 00 00 27 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 17 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 17 00 A2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7C [16:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:38:02]wFMCommunicate OK [16:38:02]requested_item fd.num is exist - process it [16:38:02]SAM_PROTO_GetFieldsCounters [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 13 00 00 [16:38:02]Write to MH i2c: E2 08 00 A3 0B 80 13 00 00 00 00 00 00 2A [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 62 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 62 00 A3 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D2 13 01 00 0E 04 04 00 D1 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 80 [16: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D2 13 01 00 0E 04 04 00 D1 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 [16:38:02]wFMCommunicate OK [16:38:02]SAM_PROTO_GetFieldsCounters done [16:38:02]requested_item shift.num is exist - process it [16:38:02]requested_item shift.opened is exist - process it [16:38:02]req_shift_opened [16:38:02]FM_GetShiftState [16:38:02]SAM_PROTO_GetShiftState [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 13 01 00 [16:38:02]Write to MH i2c: E2 08 00 A4 0B 80 13 01 00 00 00 00 00 2C [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 0E 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 0E 00 A4 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 19 [16:38:02]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:38:02]wFMCommunicate OK [16:38:02]SAM_PROTO_GetShiftState done [16:38:02]FM_GetShiftState done [16:38:02]req_shift_opened done [16:38:02]requested_item shift.open_date is exist - process it [16:38:02]req_shift_open_date [16:38:02]req_shift_open_date done [16:38:02]produce_requested_data done [16:38:02]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70610,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:38:02]process_action_free close_receipt [16:38:02]json_value_free [16:38:02]json_value_free done [16:38:02]process_json_proto returns [16:38:02]Send response to host [16:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70610,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:38:02]free response buf [16:38:02]execute_script done [16:38:02]execute_script returns [16:38:02]free content buf [16:38:02]Sock 9.Close socket [16:38:02]Sock 9.Thread stoped [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]accept exits with 7 [16:39:01]New connection [16:39:01]New thread 3066699108 created [16:39:01]Thread 3066842468 joined [16:39:01]Waiting for new connection... [16:39:01] Sock 7.Parse request [16:39:01]Sock 7.Check first char [16:39:01]Sock 7.First char is OK [16:39:01]request: POST /json_proto HTTP/1.0 [16:39:01]Method: POST [16:39:01]URL: /json_proto [16:39:01]Method is POST - this is cgi request [16:39:01]url: /json_proto [16:39:01]query_string will be loaded in cgi processing [16:39:01]execute_cgi json_proto POST (null) [16:39:01]execute_cgi path=json_proto method=POST [16:39:01]POST find Content-Length [16:39:01]Host: 172.17.58.67:8080 [16:39:01]Content-Length: 805 [16:39:01]Content-Type: application/json [16:39:01] [16:39:01]POST finish read [16:39:01]Found Content-Length = 805 [16:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 19.490, "sum" : 1450.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1450.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:01]execute_script... [16:39: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)141062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 19.490, "sum" : 1450.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1450.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:01]POST & json_proto [16:39:01]process_json_proto [16:39:01]json parsed OK: [16:39:01]protocol is kg_v1.0 [16:39:01]action value=close_receipt [16:39:01]process_action close_receipt [16:39:01]cmd_close_receipt [16:39:01]MH_GetDate [16:39:01]Write to MH i2c: F0 00 00 A5 0B 9F [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: F0 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: F0 09 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: F0 09 00 A5 0B 00 A6 3A BA 66 94 51 63 64 54 [16:39:01]GetLastDocTimeStamp 1723480680 [16:39:01]current date 1723480742 [16:39:01]FM_GetShiftState [16:39:01]SAM_PROTO_GetShiftState [16:39:01]wFMCommunicate request_size=4 [16:39:01]MH_SAM_APDU [16:39:01]CAPDU: 80 13 01 00 [16:39:01]Write to MH i2c: E2 08 00 A6 0B 80 13 01 00 00 00 00 00 2E [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:01]Read from MH i2c: E2 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 0E 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 0E 00 A6 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 1B [16:39:01]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:39:01]wFMCommunicate OK [16:39:01]SAM_PROTO_GetShiftState done [16:39:01]FM_GetShiftState done [16:39:01]opened in 1723423336 [16:39:01]opened+sec_in_day 1723509736 [16:39:01]quantity*price = 145005 [16:39:01]sum+1 = 145007 [16:39:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1450.06 ÐСП 1% : 12.83 ÐДС 12% : 153.99 Ðаличными: 0.00 Безнал.: 1450.06 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 43 12.08.2024 16:39 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70611 ФПД: 160152930150633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T163902&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70611&fm=160152930150633&tin=02508201610067®Number=0000000000090913&sum=145006 [16:39:02]StoreToDocumentArchive [16:39:02]shift 465 fd 70611 [16:39:02]save to /storage/0465/doc_00070611 [16:39:02]save last doc name /storage/0465/doc_00070611 to /storage/kkm_last_doc_name [16:39:02]save OK [16:39:02]Clear old archive folders... [16:39:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:39:02]tlvbuf is 0109A520 [16:39:02]SAM_PROTO_ClearQueue [16:39:02]wFMCommunicate request_size=4 [16:39:02]MH_SAM_APDU [16:39:02]CAPDU: 80 09 00 00 [16:39:02]Write to MH i2c: E2 08 00 B3 0B 80 09 00 00 00 00 00 00 30 [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:02]Read from MH i2c: E2 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 03 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 03 00 B3 0B 00 90 00 32 [16:39:02]RAPDU: 90 00 [16:39:02]wFMCommunicate OK [16:39:02]SAM_PROTO_ClearQueue done [16:39:02]KKMCreateOFDPacket [16:39:02]OFDProtocolAddRootSTLVToBuf [16:39:02]FM_MakeSignedData [16:39:02]FM_MakeSignedData [16:39:02]SAM_PROTO_SignData [16:39:02]wFMCommunicate request_size=4 [16:39:02]MH_SAM_APDU [16:39:02]CAPDU: 80 0D 01 02 [16:39:02]Write to MH i2c: E2 08 00 B4 0B 80 0D 01 02 00 00 00 00 38 [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:02]Read from MH i2c: E2 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 03 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 03 00 B4 0B 00 90 00 33 [16:39:02]RAPDU: 90 00 [16:39:02]wFMCommunicate OK [16:39:02]wFMCommunicate request_size=255 [16:39:02]MH_SAM_APDU [16:39: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 22 4C 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6E 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A6 3A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D3 13 01 00 35 04 06 00 91 A8 82 82 [16:39:02]Write to MH i2c: E2 02 01 B5 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 22 4C 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6E 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A6 3A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D3 13 01 00 35 04 06 00 91 A8 82 82 00 00 AD [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 [16:39:02]MH_I2C_Read... [16:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:02]Read from MH i2c: E2 03 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 03 00 B5 0B 00 90 00 34 [16:39:02]RAPDU: 90 00 [16:39:02]wFMCommunicate OK [16:39:02]wFMCommunicate request_size=7 [16:39:02]MH_SAM_APDU [16:39:02]CAPDU: 80 0D 02 02 02 E8 E9 [16:39:02]Write to MH i2c: E2 0A 00 B6 0B 80 0D 02 02 02 00 E8 E9 00 00 10 [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:02]Read from MH i2c: E2 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 03 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 03 00 B6 0B 00 90 00 35 [16:39:02]RAPDU: 90 00 [16:39:02]wFMCommunicate OK [16:39:02]wFMCommunicate request_size=4 [16:39:02]MH_SAM_APDU [16:39:02]CAPDU: 80 0D 03 02 [16:39:02]Write to MH i2c: E2 08 00 B7 0B 80 0D 03 02 00 00 00 00 3D [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:02]Read from MH i2c: E2 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 0B 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 0B 00 B7 0B 00 78 76 A6 53 D8 19 CF 46 90 00 2B [16:39:02]RAPDU: 78 76 A6 53 D8 19 CF 46 90 00 [16:39:02]wFMCommunicate OK [16:39:02]SAM_PROTO_SignData done [16:39:02]FM_MakeSignedData done [16:39:02]CreateOFDProtocolMessage [16:39:02]wFMCommunicate request_size=4 [16:39:02]MH_SAM_APDU [16:39:02]CAPDU: 80 11 00 00 [16:39:02]Write to MH i2c: E2 08 00 B8 0B 80 11 00 00 00 00 00 00 3D [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:02]Read from MH i2c: E2 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 17 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: E2 17 00 B8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 92 [16:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:39:02]wFMCommunicate OK [16:39:02]CreateOFDProtocolMessage done [16:39:02]OFDSenderStorePacket 70611 [16:39:02]StoreOFDPacket docnum=70611 [16:39:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 E1 B2 04 01 5B 5B 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 22 4C 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6E 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A6 3A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D3 13 01 00 35 04 06 00 91 A8 82 82 E8 E9 78 76 A6 53 D8 19 CF 46 [16:39:02]CheckFolder [16:39:02]dirname=/storage/ofd_packets [16:39:02]CheckFolder done [16:39:02]ProducePacketName [16:39:02]name=ofd_packets/00070611 [16:39:02]NVStorageSaveData ofd_packets/00070611 [16:39:02]File name is /storage/ofd_packets/00070611 [16:39:02]Write 298 bytes [16:39:02]NVStorageSaveData done [16:39:02]OFDSenderStorePacket done [16:39:02]KKMCreateOFDPacket done [16:39:02]NVStorageSaveData kkm_last_timestamp [16:39:02]File name is /storage/kkm_last_timestamp [16:39:02]Write 4 bytes [16:39:02]NVStorageSaveData done [16:39:02]ExternCall_PrintAddStr [16:39:02]wPrintStart [16:39:02]Write to MH i2c: 01 00 00 B9 0B C4 [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: 01 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: 01 07 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: 01 07 00 B9 0B 00 00 00 00 00 FF 0F D9 [16:39:02]RasterBufferAndPrint [16:39:02]line Счет N : (1)141062 [16:39:02]line ИÐÐ: 02508201610067 [16:39:02]line Контрольно-КаÑÑовый Чек [16:39:02]line ПРОДÐЖР[16:39:02]line ТРК (МРК, ГÐК) : 14 [16:39:02]line Товар: 2710194210 [16:39:02]line ДТ-К-5 [16:39:02]line 19.490 * 74.40 [16:39:02]line = 1450.06 [16:39:02]line ÐДС 12% ÐСП 1% [16:39:02]line > о реализуемом товаре [16:39:02]line ИТОГО: 1450.06 [16:39:02]line ÐСП 1% : 12.83 [16:39:02]line ÐДС 12% : 153.99 [16:39:02]line Ðаличными: 0.00 [16:39:02]line Безнал.: 1450.06 [16:39:02]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [16:39:02]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [16:39:02]line СÐО: Общий режим [16:39:02]line Чек 43 12.08.2024 16:39 [16:39:03]line Смена: 465 ФФД: 1.0 [16:39:03]line ЗÐМ: 0300000140 [16:39:03]line РÐМ: 0000000000090913 [16:39:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:39:03]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [16:39:03]line ФМ: 0000000000874915 [16:39:03]line ФД: 70611 [16:39:03]line ФПД: 160152930150633 [16:39:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T163902&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70611&fm=160152930150633&tin=02508201610067®Number=0000000000090913&sum=145006 [16:39:03]OFD Sender: Processing packet 70611 [packets to send 67, broken 66] [16:39:03]ProducePacketName [16:39:03]name=ofd_packets/00070611 [16:39:03]OFD Sender: To server: ‡•öpG, [16:39:03]CommunicateWithHost lk.salyk.kg:30040 [16:39:03]ConnectInit lk.salyk.kg [16:39:03]written 0, free lines is 4095 [16:39:03]Connected sock=10 [16:39: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 39 31 35 0C 01 00 00 E1 B2 04 01 5B 5B 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 22 4C 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 6E 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A6 3A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D3 13 01 00 35 04 06 00 91 A8 82 82 E8 E9 78 76 A6 53 D8 19 CF 46 [16:39:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 9D 6E 47 00 C0 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 39 31 35 10 04 04 00 D3 13 01 00 F4 03 04 00 93 E1 B9 66 B6 04 01 00 00 3B E6 91 D4 E5 AB E5 84 [16:39:03]CommunicateWithHost err = 0 [16:39:03]CheckOFDResponse [16:39:03]1017 (14) - 77093643461234 [16:39:03]1041 (16) - 0000000000874915 [16:39:03]1040 (4) - 70611 [16:39:03]1012 (4) - 12.08.2024 10:18 [16:39:03]1206 (1) - 0 [16:39:03]OFD Sender: Remove packet 70611 [16:39:03]ProducePacketName [16:39:03]name=ofd_packets/00070611 [16:39:03]NVStorageDeleteData [16:39:03]Write to MH i2c: 01 00 00 E3 0B EE [16:39:03]Write i2c OK [16:39:03]MH_I2C_Read... [16:39:03]Read from MH i2c: 01 [16:39:03]MH_I2C_Read... [16:39:03]Read from MH i2c: 01 07 00 [16:39:03]MH_I2C_Read... [16:39:03]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 F5 0C F6 [16:39:03]RasterBufferAndPrint [16:39:03]line [16:39:03]line [16:39:03]line [16:39:03]line [16:39:03]line [16:39:03]written 0, free lines is 3323 [16:39:03]MH_Cut [16:39:03]Write to MH i2c: D1 01 00 EA 0B 01 C7 [16:39:03]Write i2c OK [16:39:03]MH_I2C_Read... [16:39:03]Read from MH i2c: D1 [16:39:03]MH_I2C_Read... [16:39:03]Read from MH i2c: D1 01 00 [16:39:03]MH_I2C_Read... [16:39:03]Read from MH i2c: D1 01 00 EA 0B 00 C6 [16:39:03]Write to MH i2c: 01 00 00 EB 0B F6 [16:39:03]Write i2c OK [16:39:03]MH_I2C_Read... [16:39:04]OFD Sender: No OFD packet to send [16:39:04]*** Cut start [16:39:04]*** Purtial cut [16:39:04]*** CUTSNS_PIN = 0 [16:39:04]*** Stage 1: CUTSNS_PIN = 1 [16:39:06]Read from MH i2c: 01 [16:39:06]MH_I2C_Read... [16:39:06]*** Stop cut motor [16:39:06]*** Cut end [16:39:06]Read from MH i2c: 01 07 00 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: 01 07 00 EB 0B 00 00 00 00 00 FF 0F 0B [16:39:06]process_action close_receipt done [16:39:06]requested_data is exist [16:39:06]produce_requested_data [16:39:06]requested_item fm.sn is exist - process it [16:39:06]wFMCommunicate request_size=4 [16:39:06]MH_SAM_APDU [16:39:06]CAPDU: 80 11 00 00 [16:39:06]Write to MH i2c: E2 08 00 EC 0B 80 11 00 00 00 00 00 00 71 [16:39:06]Write i2c OK [16:39:06]MH_I2C_Read... [16:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:06]Read from MH i2c: E2 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: E2 17 00 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: E2 17 00 EC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C6 [16:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:39:06]wFMCommunicate OK [16:39:06]requested_item fd.num is exist - process it [16:39:06]SAM_PROTO_GetFieldsCounters [16:39:06]wFMCommunicate request_size=4 [16:39:06]MH_SAM_APDU [16:39:06]CAPDU: 80 13 00 00 [16:39:06]Write to MH i2c: E2 08 00 ED 0B 80 13 00 00 00 00 00 00 74 [16:39:06]Write i2c OK [16:39:06]MH_I2C_Read... [16:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:06]Read from MH i2c: E2 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: E2 62 00 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: E2 62 00 ED 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D3 13 01 00 0E 04 04 00 D1 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 CE [16:39: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D3 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:06]wFMCommunicate OK [16:39:06]SAM_PROTO_GetFieldsCounters done [16:39:06]requested_item shift.num is exist - process it [16:39:06]requested_item shift.opened is exist - process it [16:39:06]req_shift_opened [16:39:06]FM_GetShiftState [16:39:06]SAM_PROTO_GetShiftState [16:39:06]wFMCommunicate request_size=4 [16:39:06]MH_SAM_APDU [16:39:06]CAPDU: 80 13 01 00 [16:39:06]Write to MH i2c: E2 08 00 EE 0B 80 13 01 00 00 00 00 00 76 [16:39:06]Write i2c OK [16:39:06]MH_I2C_Read... [16:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:06]Read from MH i2c: E2 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: E2 0E 00 [16:39:06]MH_I2C_Read... [16:39:06]Read from MH i2c: E2 0E 00 EE 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 63 [16:39:06]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:39:06]wFMCommunicate OK [16:39:06]SAM_PROTO_GetShiftState done [16:39:06]FM_GetShiftState done [16:39:06]req_shift_opened done [16:39:06]requested_item shift.open_date is exist - process it [16:39:06]req_shift_open_date [16:39:06]req_shift_open_date done [16:39:06]produce_requested_data done [16:39:06]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70611,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:39:06]process_action_free close_receipt [16:39:06]json_value_free [16:39:06]json_value_free done [16:39:06]process_json_proto returns [16:39:06]Send response to host [16:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70611,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:39:06]free response buf [16:39:06]execute_script done [16:39:06]execute_script returns [16:39:06]free content buf [16:39:06]Sock 7.Close socket [16:39:06]Sock 7.Thread stoped [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40: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:48]int [16:43:48]Write to MH i2c: 01 00 00 EF 0B FA [16:43:48]*** FLAG_PRN_KEY set [16:43:48]Write i2c OK [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 07 00 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 07 00 EF 0B 00 08 00 00 00 FF 0F 17 [16:43:48]state=0 [16:43:48]Key pressed [16:43:48]Feed [16:43:48]Write to MH i2c: D8 00 00 F0 0B D2 [16:43:48]Write i2c OK [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: D8 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: D8 01 00 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: D8 01 00 F0 0B 00 D3 [16:43:48]int [16:43:48]Write to MH i2c: 01 00 00 F1 0B FC [16:43:48]Write i2c OK [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 07 00 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 07 00 F1 0B 00 48 00 00 00 3C 00 87 [16:43:48]state=2 [16:43:48]Key pressed [16:43:48]int [16:43:48]Write to MH i2c: 01 00 00 F2 0B FD [16:43:48]*** FLAG_PRN_KEY reset [16:43:48]Write i2c OK [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 07 00 [16:43:48]MH_I2C_Read... [16:43:48]Read from MH i2c: 01 07 00 F2 0B 00 00 00 00 00 F6 0F 09 [16:43:48]state=2 [16:43:48]Stop feed [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:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:33]accept exits with 9 [16:47:33]New connection [16:47:33]New thread 3066842468 created [16:47:33]Thread 3066699108 joined [16:47:33]Waiting for new connection... [16:47:33] Sock 9.Parse request [16:47:33]Sock 9.Check first char [16:47:33]Sock 9.First char is OK [16:47:33]request: POST /json_proto HTTP/1.0 [16:47:33]Method: POST [16:47:33]URL: /json_proto [16:47:33]Method is POST - this is cgi request [16:47:33]url: /json_proto [16:47:33]query_string will be loaded in cgi processing [16:47:33]execute_cgi json_proto POST (null) [16:47:33]execute_cgi path=json_proto method=POST [16:47:33]POST find Content-Length [16:47:33]Host: 172.17.58.67:8080 [16:47:33]Content-Length: 808 [16:47:33]Content-Type: application/json [16:47:33] [16:47:33]POST finish read [16:47:33]Found Content-Length = 808 [16:47:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:33]execute_script... [16:47:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:33]POST & json_proto [16:47:33]process_json_proto [16:47:33]json parsed OK: [16:47:33]protocol is kg_v1.0 [16:47:33]action value=close_receipt [16:47:33]process_action close_receipt [16:47:33]cmd_close_receipt [16:47:33]MH_GetDate [16:47:33]Write to MH i2c: F0 00 00 F3 0B ED [16:47:33]Write i2c OK [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: F0 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: F0 09 00 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: F0 09 00 F3 0B 00 A6 3C BA 66 94 51 63 64 A4 [16:47:33]GetLastDocTimeStamp 1723480742 [16:47:33]current date 1723481254 [16:47:33]FM_GetShiftState [16:47:33]SAM_PROTO_GetShiftState [16:47:33]wFMCommunicate request_size=4 [16:47:33]MH_SAM_APDU [16:47:33]CAPDU: 80 13 01 00 [16:47:33]Write to MH i2c: E2 08 00 F4 0B 80 13 01 00 00 00 00 00 7C [16:47:33]Write i2c OK [16:47:33]MH_I2C_Read... [16:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:33]Read from MH i2c: E2 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: E2 0E 00 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: E2 0E 00 F4 0B 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 69 [16:47:33]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:47:33]wFMCommunicate OK [16:47:33]SAM_PROTO_GetShiftState done [16:47:33]FM_GetShiftState done [16:47:33]opened in 1723423336 [16:47:33]opened+sec_in_day 1723509736 [16:47:33]quantity*price = 100036 [16:47:33]sum+1 = 100037 [16:47:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 44 12.08.2024 16:47 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70612 ФПД: 159222795775539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T164734&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70612&fm=159222795775539&tin=02508201610067®Number=0000000000090913&sum=100036 [16:47:34]StoreToDocumentArchive [16:47:34]shift 465 fd 70612 [16:47:34]save to /storage/0465/doc_00070612 [16:47:34]save last doc name /storage/0465/doc_00070612 to /storage/kkm_last_doc_name [16:47:34]save OK [16:47:34]Clear old archive folders... [16:47:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:34]tlvbuf is B6EA6910 [16:47:34]SAM_PROTO_ClearQueue [16:47:34]wFMCommunicate request_size=4 [16:47:34]MH_SAM_APDU [16:47:34]CAPDU: 80 09 00 00 [16:47:34]Write to MH i2c: E2 08 00 01 0C 80 09 00 00 00 00 00 00 7F [16:47:34]Write i2c OK [16:47:34]MH_I2C_Read... [16:47:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:34]Read from MH i2c: E2 [16:47:34]MH_I2C_Read... [16:47:34]Read from MH i2c: E2 03 00 [16:47:34]MH_I2C_Read... [16:47:34]Read from MH i2c: E2 03 00 01 0C 00 90 00 81 [16:47:34]RAPDU: 90 00 [16:47:34]wFMCommunicate OK [16:47:34]SAM_PROTO_ClearQueue done [16:47:34]KKMCreateOFDPacket [16:47:34]OFDProtocolAddRootSTLVToBuf [16:47:34]FM_MakeSignedData [16:47:34]FM_MakeSignedData [16:47:34]SAM_PROTO_SignData [16:47:34]wFMCommunicate request_size=4 [16:47:34]MH_SAM_APDU [16:47:34]CAPDU: 80 0D 01 02 [16:47:34]Write to MH i2c: E2 08 00 02 0C 80 0D 01 02 00 00 00 00 87 [16:47:34]Write i2c OK [16:47:34]MH_I2C_Read... [16:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:34]Read from MH i2c: E2 [16:47:34]MH_I2C_Read... [16:47:34]Read from MH i2c: E2 03 00 [16:47:34]MH_I2C_Read... [16:47:34]Read from MH i2c: E2 03 00 02 0C 00 90 00 82 [16:47:34]RAPDU: 90 00 [16:47:34]wFMCommunicate OK [16:47:34]wFMCommunicate request_size=255 [16:47:34]MH_SAM_APDU [16:47:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A6 3C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D4 13 01 00 35 04 06 00 90 [16:47:34]Write to MH i2c: E2 02 01 03 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A6 3C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D4 13 01 00 35 04 06 00 90 00 00 67 [16:47:34]Write i2c OK [16:47:34]MH_I2C_Read... [16:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:34]Read from MH i2c: E2 [16:47:34]MH_I2C_Read... [16:47:34]Read from MH i2c: E2 03 00 [16:47:34]MH_I2C_Read... [16:47:34]Read from MH i2c: E2 03 00 03 0C 00 90 00 83 [16:47:34]RAPDU: 90 00 [16:47:34]wFMCommunicate OK [16:47:34]wFMCommunicate request_size=10 [16:47:34]MH_SAM_APDU [16:47:34]CAPDU: 80 0D 02 02 05 CF F2 2E AE 33 [16:47:34]Write to MH i2c: E2 0D 00 04 0C 80 0D 02 02 05 00 CF F2 2E AE 33 00 00 64 [16:47:34]Write i2c OK [16:47:34]MH_I2C_Read... [16:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:35]Read from MH i2c: E2 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 03 00 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 03 00 04 0C 00 90 00 84 [16:47:35]RAPDU: 90 00 [16:47:35]wFMCommunicate OK [16:47:35]wFMCommunicate request_size=4 [16:47:35]MH_SAM_APDU [16:47:35]CAPDU: 80 0D 03 02 [16:47:35]Write to MH i2c: E2 08 00 05 0C 80 0D 03 02 00 00 00 00 8C [16:47:35]Write i2c OK [16:47:35]MH_I2C_Read... [16:47:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:35]Read from MH i2c: E2 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 0B 00 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 0B 00 05 0C 00 95 D8 9B 4A A2 80 AC FB 90 00 A8 [16:47:35]RAPDU: 95 D8 9B 4A A2 80 AC FB 90 00 [16:47:35]wFMCommunicate OK [16:47:35]SAM_PROTO_SignData done [16:47:35]FM_MakeSignedData done [16:47:35]CreateOFDProtocolMessage [16:47:35]wFMCommunicate request_size=4 [16:47:35]MH_SAM_APDU [16:47:35]CAPDU: 80 11 00 00 [16:47:35]Write to MH i2c: E2 08 00 06 0C 80 11 00 00 00 00 00 00 8C [16:47:35]Write i2c OK [16:47:35]MH_I2C_Read... [16:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:35]Read from MH i2c: E2 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 17 00 [16:47:35]MH_I2C_Read... [16:47:35]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 39 31 35 90 00 E1 [16:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:47:35]wFMCommunicate OK [16:47:35]CreateOFDProtocolMessage done [16:47:35]OFDSenderStorePacket 70612 [16:47:35]StoreOFDPacket docnum=70612 [16:47:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 28 1B 07 01 2E 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A6 3C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D4 13 01 00 35 04 06 00 90 CF F2 2E AE 33 95 D8 9B 4A A2 80 AC FB [16:47:35]CheckFolder [16:47:35]dirname=/storage/ofd_packets [16:47:35]CheckFolder done [16:47:35]ProducePacketName [16:47:35]name=ofd_packets/00070612 [16:47:35]NVStorageSaveData ofd_packets/00070612 [16:47:35]File name is /storage/ofd_packets/00070612 [16:47:35]Write 301 bytes [16:47:35]NVStorageSaveData done [16:47:35]OFDSenderStorePacket done [16:47:35]KKMCreateOFDPacket done [16:47:35]NVStorageSaveData kkm_last_timestamp [16:47:35]File name is /storage/kkm_last_timestamp [16:47:35]Write 4 bytes [16:47:35]NVStorageSaveData done [16:47:35]ExternCall_PrintAddStr [16:47:35]wPrintStart [16:47:35]Write to MH i2c: 01 00 00 07 0C 13 [16:47:35]Write i2c OK [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: 01 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: 01 07 00 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: 01 07 00 07 0C 00 00 00 00 00 FF 0F 28 [16:47:35]RasterBufferAndPrint [16:47:35]line Счет N : (1)141063 [16:47:35]line ИÐÐ: 02508201610067 [16:47:35]line Контрольно-КаÑÑовый Чек [16:47:35]line ПРОДÐЖР[16:47:35]line ТРК (МРК, ГÐК) : 41 [16:47:35]line Товар: 2710124130 [16:47:35]line Ðи-92-К-5 [16:47:35]line 15.180 * 65.90 [16:47:35]line = 1000.36 [16:47:35]line ÐДС 12% ÐСП 1% [16:47:35]line > о реализуемом товаре [16:47:35]line ИТОГО: 1000.36 [16:47:35]line ÐСП 1% : 8.85 [16:47:35]line ÐДС 12% : 106.23 [16:47:35]line Ðаличными: 0.00 [16:47:35]line Безнал.: 1000.36 [16:47:35]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [16:47:35]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [16:47:35]line СÐО: Общий режим [16:47:35]line Чек 44 12.08.2024 16:47 [16:47:35]line Смена: 465 ФФД: 1.0 [16:47:35]line ЗÐМ: 0300000140 [16:47:35]line РÐМ: 0000000000090913 [16:47:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:47:35]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [16:47:35]line ФМ: 0000000000874915 [16:47:35]line ФД: 70612 [16:47:35]line ФПД: 159222795775539 [16:47:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T164734&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70612&fm=159222795775539&tin=02508201610067®Number=0000000000090913&sum=100036 [16:47:35]OFD Sender: Processing packet 70612 [packets to send 67, broken 66] [16:47:35]ProducePacketName [16:47:35]name=ofd_packets/00070612 [16:47:35]OFD Sender: To server: ‡•öpG, [16:47:35]CommunicateWithHost lk.salyk.kg:30040 [16:47:35]ConnectInit lk.salyk.kg [16:47:35]written 0, free lines is 4095 [16:47:35]Connected sock=10 [16:47: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 39 31 35 0F 01 00 00 28 1B 07 01 2E 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 A6 3C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D4 13 01 00 35 04 06 00 90 CF F2 2E AE 33 95 D8 9B 4A A2 80 AC FB [16:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 CB 85 47 00 56 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D4 13 01 00 F4 03 04 00 93 E3 B9 66 B6 04 01 00 00 49 1B 89 2D 3D 85 2E CF [16:47:35]CommunicateWithHost err = 0 [16:47:35]CheckOFDResponse [16:47:35]1017 (14) - 77093643461234 [16:47:35]1041 (16) - 0000000000874915 [16:47:35]1040 (4) - 70612 [16:47:35]1012 (4) - 12.08.2024 10:27 [16:47:35]1206 (1) - 0 [16:47:35]OFD Sender: Remove packet 70612 [16:47:35]ProducePacketName [16:47:35]name=ofd_packets/00070612 [16:47:35]NVStorageDeleteData [16:47:35]Write to MH i2c: 01 00 00 31 0C 3D [16:47:35]Write i2c OK [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: 01 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: 01 07 00 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: 01 07 00 31 0C 00 00 00 00 00 FB 0C 4B [16:47:35]RasterBufferAndPrint [16:47:35]line [16:47:35]line [16:47:35]line [16:47:35]line [16:47:35]line [16:47:35]written 0, free lines is 3330 [16:47:35]MH_Cut [16:47:35]Write to MH i2c: D1 01 00 38 0C 01 16 [16:47:35]Write i2c OK [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: D1 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: D1 01 00 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: D1 01 00 38 0C 00 15 [16:47:35]Write to MH i2c: 01 00 00 39 0C 45 [16:47:35]Write i2c OK [16:47:35]MH_I2C_Read... [16:47:36]OFD Sender: No OFD packet to send [16:47:36]*** Cut start [16:47:36]*** Purtial cut [16:47:36]*** Stage 1: CUTSNS_PIN = 1 [16:47:36]Read from MH i2c: 01 [16:47:36]MH_I2C_Read... [16:47:36]*** Stop cut motor [16:47:36]*** Cut end [16:47:36]Read from MH i2c: 01 07 00 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: 01 07 00 39 0C 00 00 00 00 00 FF 0F 5A [16:47:36]process_action close_receipt done [16:47:36]requested_data is exist [16:47:36]produce_requested_data [16:47:36]requested_item fm.sn is exist - process it [16:47:36]wFMCommunicate request_size=4 [16:47:36]MH_SAM_APDU [16:47:36]CAPDU: 80 11 00 00 [16:47:36]Write to MH i2c: E2 08 00 3A 0C 80 11 00 00 00 00 00 00 C0 [16:47:36]Write i2c OK [16:47:36]MH_I2C_Read... [16:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:36]Read from MH i2c: E2 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 17 00 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 17 00 3A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 15 [16:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:47:36]wFMCommunicate OK [16:47:36]requested_item fd.num is exist - process it [16:47:36]SAM_PROTO_GetFieldsCounters [16:47:36]wFMCommunicate request_size=4 [16:47:36]MH_SAM_APDU [16:47:36]CAPDU: 80 13 00 00 [16:47:36]Write to MH i2c: E2 08 00 3B 0C 80 13 00 00 00 00 00 00 C3 [16:47:36]Write i2c OK [16:47:36]MH_I2C_Read... [16:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:37]Read from MH i2c: E2 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 62 00 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 62 00 3B 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D4 13 01 00 0E 04 04 00 D1 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 21 [16:47:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D4 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:37]wFMCommunicate OK [16:47:37]SAM_PROTO_GetFieldsCounters done [16:47:37]requested_item shift.num is exist - process it [16:47:37]requested_item shift.opened is exist - process it [16:47:37]req_shift_opened [16:47:37]FM_GetShiftState [16:47:37]SAM_PROTO_GetShiftState [16:47:37]wFMCommunicate request_size=4 [16:47:37]MH_SAM_APDU [16:47:37]CAPDU: 80 13 01 00 [16:47:37]Write to MH i2c: E2 08 00 3C 0C 80 13 01 00 00 00 00 00 C5 [16:47:37]Write i2c OK [16:47:37]MH_I2C_Read... [16:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:37]Read from MH i2c: E2 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 0E 00 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 0E 00 3C 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 B2 [16:47:37]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:47:37]wFMCommunicate OK [16:47:37]SAM_PROTO_GetShiftState done [16:47:37]FM_GetShiftState done [16:47:37]req_shift_opened done [16:47:37]requested_item shift.open_date is exist - process it [16:47:37]req_shift_open_date [16:47:37]req_shift_open_date done [16:47:37]produce_requested_data done [16:47:37]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70612,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:47:37]process_action_free close_receipt [16:47:37]json_value_free [16:47:37]json_value_free done [16:47:37]process_json_proto returns [16:47:37]Send response to host [16:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70612,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:47:37]free response buf [16:47:37]execute_script done [16:47:37]execute_script returns [16:47:37]free content buf [16:47:37]Sock 9.Close socket [16:47:37]Sock 9.Thread stoped [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:39]int [16:54:39]Write to MH i2c: 01 00 00 3D 0C 49 [16:54:39]*** FLAG_PRN_KEY set [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 07 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 07 00 3D 0C 00 08 00 00 00 FF 0F 66 [16:54:39]state=0 [16:54:39]Key pressed [16:54:39]Feed [16:54:39]Write to MH i2c: D8 00 00 3E 0C 21 [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: D8 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: D8 01 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: D8 01 00 3E 0C 00 22 [16:54:39]int [16:54:39]Write to MH i2c: 01 00 00 3F 0C 4B [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 07 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 07 00 3F 0C 00 48 00 00 00 3C 00 D6 [16:54:39]state=2 [16:54:39]Key pressed [16:54:39]int [16:54:39]Write to MH i2c: 01 00 00 40 0C 4C [16:54:39]*** FLAG_PRN_KEY reset [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 07 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 07 00 40 0C 00 00 00 00 00 F6 0F 58 [16:54:39]state=2 [16:54:39]Stop feed [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:30]accept exits with 7 [16:55:30]New connection [16:55:30]New thread 3066699108 created [16:55:30]Thread 3066842468 joined [16:55:30]Waiting for new connection... [16:55:30] Sock 7.Parse request [16:55:30]Sock 7.Check first char [16:55:30]Sock 7.First char is OK [16:55:30]request: POST /json_proto HTTP/1.0 [16:55:30]Method: POST [16:55:30]URL: /json_proto [16:55:30]Method is POST - this is cgi request [16:55:30]url: /json_proto [16:55:30]query_string will be loaded in cgi processing [16:55:30]execute_cgi json_proto POST (null) [16:55:30]execute_cgi path=json_proto method=POST [16:55:30]POST find Content-Length [16:55:30]Host: 172.17.58.67:8080 [16:55:30]Content-Length: 1189 [16:55:30]Content-Type: application/json [16:55:30] [16:55:30]POST finish read [16:55:30]Found Content-Length = 1189 [16:55: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141061\u000A12.08.2024 16:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 34\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 825.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 61380.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\u000A53038\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:30]execute_script... [16:55: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141061\u000A12.08.2024 16:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 34\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 825.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 61380.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\u000A53038\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:30]POST & json_proto [16:55:30]process_json_proto [16:55:30]json parsed OK: [16:55:30]protocol is kg_v1.0 [16:55:30]action value=print_text [16:55:30]process_action print_text [16:55:30]cmd_print_text [16:55:30]ExternCall_PrintAddStr [16:55:30]wPrintStart [16:55:30]Write to MH i2c: 01 00 00 41 0C 4D [16:55:30]Write i2c OK [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: 01 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: 01 07 00 [16:55:30]MH_I2C_Read... [16:55:30]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 FF 0F 62 [16:55:30]RasterBufferAndPrint [16:55:30]line *****ТОВÐРÐЫЙ ЧЕК***** [16:55:30]line ÐЗС 39 [16:55:30]line Партнер нефть [16:55:30]line 02508201610067 [16:55:30]line КаÑÑир : Мирбек к Ð. [16:55:30]line Счет N : (1)141061 [16:55:30]line 12.08.2024 16:14 [16:55:30]line ПРОДÐЖР[16:55:30]line ТРК (МРК, ГÐК): 34 [16:55:30]line Вид ГСМ : 2710194210 [16:55:30]line ДТ-К-5 [16:55:30]line 825.000 x 74.40 [16:55:30]line ИТОГ: 61380.00 [16:55:30]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [16:55:30]line 53038 [16:55:30]line ______________________ [16:55:30]line (подпиÑÑŒ) [16:55:30]written 0, free lines is 4095 [16:55:31]Write to MH i2c: 01 00 00 55 0C 61 [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 07 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: 01 07 00 55 0C 00 00 00 00 00 10 0E 86 [16:55:31]RasterBufferAndPrint [16:55:31]line [16:55:31]line [16:55:31]line [16:55:31]line [16:55:31]line [16:55:31]written 0, free lines is 3602 [16:55:31]MH_Cut [16:55:31]Write to MH i2c: D1 01 00 5C 0C 01 3A [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: D1 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: D1 01 00 [16:55:31]MH_I2C_Read... [16:55:31]Read from MH i2c: D1 01 00 5C 0C 00 39 [16:55:31]Write to MH i2c: 01 00 00 5D 0C 69 [16:55:31]Write i2c OK [16:55:31]MH_I2C_Read... [16:55:31]*** Cut start [16:55:31]*** Purtial cut [16:55:31]*** CUTSNS_PIN = 0 [16:55:31]OFD Sender: No OFD packet to send [16:55:31]*** Stage 1: CUTSNS_PIN = 1 [16:55:33]Read from MH i2c: 01 [16:55:33]MH_I2C_Read... [16:55:33]*** Stop cut motor [16:55:33]*** Cut end [16:55:33]Read from MH i2c: 01 07 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: 01 07 00 5D 0C 00 00 00 00 00 FF 0F 7E [16:55:33]process_action print_text done [16:55:33]requested_data is exist [16:55:33]produce_requested_data [16:55:33]requested_item fm.sn is exist - process it [16:55:33]wFMCommunicate request_size=4 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 11 00 00 [16:55:33]Write to MH i2c: E2 08 00 5E 0C 80 11 00 00 00 00 00 00 E4 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 17 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 17 00 5E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 39 [16:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:55:33]wFMCommunicate OK [16:55:33]requested_item fd.num is exist - process it [16:55:33]SAM_PROTO_GetFieldsCounters [16:55:33]wFMCommunicate request_size=4 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 13 00 00 [16:55:33]Write to MH i2c: E2 08 00 5F 0C 80 13 00 00 00 00 00 00 E7 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 62 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 62 00 5F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D4 13 01 00 0E 04 04 00 D1 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 45 [16:55:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D4 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:33]wFMCommunicate OK [16:55:33]SAM_PROTO_GetFieldsCounters done [16:55:33]requested_item shift.num is exist - process it [16:55:33]requested_item shift.opened is exist - process it [16:55:33]req_shift_opened [16:55:33]FM_GetShiftState [16:55:33]SAM_PROTO_GetShiftState [16:55:33]wFMCommunicate request_size=4 [16:55:33]MH_SAM_APDU [16:55:33]CAPDU: 80 13 01 00 [16:55:33]Write to MH i2c: E2 08 00 60 0C 80 13 01 00 00 00 00 00 E9 [16:55:33]Write i2c OK [16:55:33]MH_I2C_Read... [16:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:33]Read from MH i2c: E2 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 0E 00 [16:55:33]MH_I2C_Read... [16:55:33]Read from MH i2c: E2 0E 00 60 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D6 [16:55:33]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:55:33]wFMCommunicate OK [16:55:33]SAM_PROTO_GetShiftState done [16:55:33]FM_GetShiftState done [16:55:33]req_shift_opened done [16:55:33]requested_item shift.open_date is exist - process it [16:55:33]req_shift_open_date [16:55:33]req_shift_open_date done [16:55:33]produce_requested_data done [16:55:33]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70612,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:55:33]process_action_free print_text [16:55:33]json_value_free [16:55:33]json_value_free done [16:55:33]process_json_proto returns [16:55:33]Send response to host [16:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70612,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:55:33]free response buf [16:55:33]execute_script done [16:55:33]execute_script returns [16:55:33]free content buf [16:55:33]Sock 7.Close socket [16:55:33]Sock 7.Thread stoped [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:42]int [16:55:42]Write to MH i2c: 01 00 00 61 0C 6D [16:55:42]*** FLAG_PRN_KEY set [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 61 0C 00 08 00 00 00 FF 0F 8A [16:55:42]state=0 [16:55:42]Key pressed [16:55:42]Feed [16:55:42]Write to MH i2c: D8 00 00 62 0C 45 [16:55:42]Write i2c OK [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: D8 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: D8 01 00 [16:55:42]MH_I2C_Read... [16:55:42]Read from MH i2c: D8 01 00 62 0C 00 46 [16:55:42]int [16:55:42]Write to MH i2c: 01 00 00 63 0C 6F [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 63 0C 00 48 00 00 00 3C 00 FA [16:55:42]state=2 [16:55:42]Key pressed [16:55:42]int [16:55:42]Write to MH i2c: 01 00 00 64 0C 70 [16:55:42]*** FLAG_PRN_KEY reset [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 64 0C 00 00 00 00 00 F5 0F 7B [16:55:42]state=2 [16:55:42]Stop feed [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:34]accept exits with 9 [16:57:34]New connection [16:57:34]New thread 3066842468 created [16:57:34]Thread 3066699108 joined [16:57:34]Waiting for new connection... [16:57:34] Sock 9.Parse request [16:57:34]Sock 9.Check first char [16:57:34]Sock 9.First char is OK [16:57:34]request: POST /json_proto HTTP/1.0 [16:57:34]Method: POST [16:57:34]URL: /json_proto [16:57:34]Method is POST - this is cgi request [16:57:34]url: /json_proto [16:57:34]query_string will be loaded in cgi processing [16:57:34]execute_cgi json_proto POST (null) [16:57:34]execute_cgi path=json_proto method=POST [16:57:34]POST find Content-Length [16:57:34]Host: 172.17.58.67:8080 [16:57:34]Content-Length: 808 [16:57:34]Content-Type: application/json [16:57:34] [16:57:34]POST finish read [16:57:34]Found Content-Length = 808 [16:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:34]execute_script... [16:57:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2000.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:34]POST & json_proto [16:57:34]process_json_proto [16:57:34]json parsed OK: [16:57:34]protocol is kg_v1.0 [16:57:34]action value=close_receipt [16:57:34]process_action close_receipt [16:57:34]cmd_close_receipt [16:57:34]MH_GetDate [16:57:34]Write to MH i2c: F0 00 00 65 0C 60 [16:57:34]Write i2c OK [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: F0 [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: F0 09 00 [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: F0 09 00 65 0C 00 FF 3E BA 66 94 51 63 64 72 [16:57:34]GetLastDocTimeStamp 1723481254 [16:57:34]current date 1723481855 [16:57:34]FM_GetShiftState [16:57:34]SAM_PROTO_GetShiftState [16:57:34]wFMCommunicate request_size=4 [16:57:34]MH_SAM_APDU [16:57:34]CAPDU: 80 13 01 00 [16:57:34]Write to MH i2c: E2 08 00 66 0C 80 13 01 00 00 00 00 00 EF [16:57:34]Write i2c OK [16:57:34]MH_I2C_Read... [16:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:34]Read from MH i2c: E2 [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: E2 0E 00 [16:57:34]MH_I2C_Read... [16:57:34]Read from MH i2c: E2 0E 00 66 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 DC [16:57:34]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:57:34]wFMCommunicate OK [16:57:34]SAM_PROTO_GetShiftState done [16:57:34]FM_GetShiftState done [16:57:34]opened in 1723423336 [16:57:34]opened+sec_in_day 1723509736 [16:57:34]quantity*price = 200006 [16:57:34]sum+1 = 200008 [16:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.07 ÐСП 1% : 17.70 ÐДС 12% : 212.40 Ðаличными: 0.00 Безнал.: 2000.07 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 45 12.08.2024 16:57 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70613 ФПД: 181307283171908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T165735&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70613&fm=181307283171908&tin=02508201610067®Number=0000000000090913&sum=200007 [16:57:35]StoreToDocumentArchive [16:57:35]shift 465 fd 70613 [16:57:35]save to /storage/0465/doc_00070613 [16:57:35]save last doc name /storage/0465/doc_00070613 to /storage/kkm_last_doc_name [16:57:35]save OK [16:57:35]Clear old archive folders... [16:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:35]tlvbuf is 010D5A40 [16:57:35]SAM_PROTO_ClearQueue [16:57:35]wFMCommunicate request_size=4 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 09 00 00 [16:57:35]Write to MH i2c: E2 08 00 73 0C 80 09 00 00 00 00 00 00 F1 [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:35]Read from MH i2c: E2 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [16:57:35]RAPDU: 90 00 [16:57:35]wFMCommunicate OK [16:57:35]SAM_PROTO_ClearQueue done [16:57:35]KKMCreateOFDPacket [16:57:35]OFDProtocolAddRootSTLVToBuf [16:57:35]FM_MakeSignedData [16:57:35]FM_MakeSignedData [16:57:35]SAM_PROTO_SignData [16:57:35]wFMCommunicate request_size=4 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 0D 01 02 [16:57:35]Write to MH i2c: E2 08 00 74 0C 80 0D 01 02 00 00 00 00 F9 [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:35]Read from MH i2c: E2 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [16:57:35]RAPDU: 90 00 [16:57:35]wFMCommunicate OK [16:57:35]wFMCommunicate request_size=255 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 FF 3E BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D5 13 01 00 35 04 06 00 A4 [16:57:35]Write to MH i2c: E2 02 01 75 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 FF 3E BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D5 13 01 00 35 04 06 00 A4 00 00 05 [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:35]Read from MH i2c: E2 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [16:57:35]RAPDU: 90 00 [16:57:35]wFMCommunicate OK [16:57:35]wFMCommunicate request_size=10 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 0D 02 02 05 E5 E4 35 6A 44 [16:57:35]Write to MH i2c: E2 0D 00 76 0C 80 0D 02 02 05 00 E5 E4 35 6A 44 00 00 B2 [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:35]Read from MH i2c: E2 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [16:57:35]RAPDU: 90 00 [16:57:35]wFMCommunicate OK [16:57:35]wFMCommunicate request_size=4 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 0D 03 02 [16:57:35]Write to MH i2c: E2 08 00 77 0C 80 0D 03 02 00 00 00 00 FE [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:35]Read from MH i2c: E2 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 0B 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 0B 00 77 0C 00 40 67 1A E0 CE 40 16 12 90 00 D6 [16:57:35]RAPDU: 40 67 1A E0 CE 40 16 12 90 00 [16:57:35]wFMCommunicate OK [16:57:35]SAM_PROTO_SignData done [16:57:35]FM_MakeSignedData done [16:57:35]CreateOFDProtocolMessage [16:57:35]wFMCommunicate request_size=4 [16:57:35]MH_SAM_APDU [16:57:35]CAPDU: 80 11 00 00 [16:57:35]Write to MH i2c: E2 08 00 78 0C 80 11 00 00 00 00 00 00 FE [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:35]Read from MH i2c: E2 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 17 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: E2 17 00 78 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 53 [16:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:57:35]wFMCommunicate OK [16:57:35]CreateOFDProtocolMessage done [16:57:35]OFDSenderStorePacket 70613 [16:57:35]StoreOFDPacket docnum=70613 [16:57:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 93 AF 07 01 DA 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 FF 3E BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D5 13 01 00 35 04 06 00 A4 E5 E4 35 6A 44 40 67 1A E0 CE 40 16 12 [16:57:35]CheckFolder [16:57:35]dirname=/storage/ofd_packets [16:57:35]CheckFolder done [16:57:35]ProducePacketName [16:57:35]name=ofd_packets/00070613 [16:57:35]NVStorageSaveData ofd_packets/00070613 [16:57:35]File name is /storage/ofd_packets/00070613 [16:57:35]Write 301 bytes [16:57:35]NVStorageSaveData done [16:57:35]OFDSenderStorePacket done [16:57:35]KKMCreateOFDPacket done [16:57:35]NVStorageSaveData kkm_last_timestamp [16:57:35]File name is /storage/kkm_last_timestamp [16:57:35]Write 4 bytes [16:57:35]NVStorageSaveData done [16:57:35]ExternCall_PrintAddStr [16:57:35]wPrintStart [16:57:35]Write to MH i2c: 01 00 00 79 0C 85 [16:57:35]Write i2c OK [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: 01 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: 01 07 00 [16:57:35]MH_I2C_Read... [16:57:35]Read from MH i2c: 01 07 00 79 0C 00 00 00 00 00 FF 0F 9A [16:57:35]RasterBufferAndPrint [16:57:35]line Счет N : (1)141064 [16:57:35]line ИÐÐ: 02508201610067 [16:57:35]line Контрольно-КаÑÑовый Чек [16:57:35]line ПРОДÐЖР[16:57:35]line ТРК (МРК, ГÐК) : 41 [16:57:35]line Товар: 2710124130 [16:57:35]line Ðи-92-К-5 [16:57:35]line 30.350 * 65.90 [16:57:35]line = 2000.07 [16:57:35]line ÐДС 12% ÐСП 1% [16:57:35]line > о реализуемом товаре [16:57:35]line ИТОГО: 2000.07 [16:57:35]line ÐСП 1% : 17.70 [16:57:35]line ÐДС 12% : 212.40 [16:57:35]line Ðаличными: 0.00 [16:57:35]line Безнал.: 2000.07 [16:57:35]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [16:57:35]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [16:57:35]line СÐО: Общий режим [16:57:35]line Чек 45 12.08.2024 16:57 [16:57:35]line Смена: 465 ФФД: 1.0 [16:57:35]line ЗÐМ: 0300000140 [16:57:35]line РÐМ: 0000000000090913 [16:57:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:57:35]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [16:57:35]line ФМ: 0000000000874915 [16:57:35]line ФД: 70613 [16:57:35]line ФПД: 181307283171908 [16:57:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T165735&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70613&fm=181307283171908&tin=02508201610067®Number=0000000000090913&sum=200007 [16:57:36]written 0, free lines is 4095 [16:57:36]OFD Sender: Processing packet 70613 [packets to send 67, broken 66] [16:57:36]ProducePacketName [16:57:36]name=ofd_packets/00070613 [16:57:36]OFD Sender: To server: ‡•öpG, [16:57:36]CommunicateWithHost lk.salyk.kg:30040 [16:57:36]ConnectInit lk.salyk.kg [16:57:36]Connected sock=10 [16:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 93 AF 07 01 DA 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 47 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 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 47 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 FF 3E BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D5 13 01 00 35 04 06 00 A4 E5 E4 35 6A 44 40 67 1A E0 CE 40 16 12 [16:57:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 DD 50 47 00 04 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D5 13 01 00 F4 03 04 00 EC E5 B9 66 B6 04 01 00 00 10 9A 7A 3F 38 58 2A 12 [16:57:36]CommunicateWithHost err = 0 [16:57:36]CheckOFDResponse [16:57:36]1017 (14) - 77093643461234 [16:57:36]1041 (16) - 0000000000874915 [16:57:36]1040 (4) - 70613 [16:57:36]1012 (4) - 12.08.2024 10:37 [16:57:36]1206 (1) - 0 [16:57:36]OFD Sender: Remove packet 70613 [16:57:36]ProducePacketName [16:57:36]name=ofd_packets/00070613 [16:57:36]NVStorageDeleteData [16:57:36]Write to MH i2c: 01 00 00 A3 0C AF [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 07 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: 01 07 00 A3 0C 00 00 00 00 00 F7 0C B9 [16:57:36]RasterBufferAndPrint [16:57:36]line [16:57:36]line [16:57:36]line [16:57:36]line [16:57:36]line [16:57:36]written 0, free lines is 3326 [16:57:36]MH_Cut [16:57:36]Write to MH i2c: D1 01 00 AA 0C 01 88 [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: D1 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: D1 01 00 [16:57:36]MH_I2C_Read... [16:57:36]Read from MH i2c: D1 01 00 AA 0C 00 87 [16:57:36]Write to MH i2c: 01 00 00 AB 0C B7 [16:57:36]Write i2c OK [16:57:36]MH_I2C_Read... [16:57:36]OFD Sender: No OFD packet to send [16:57:37]*** Cut start [16:57:37]*** Purtial cut [16:57:37]*** Stage 1: CUTSNS_PIN = 1 [16:57:37]Read from MH i2c: 01 [16:57:37]MH_I2C_Read... [16:57:37]*** Stop cut motor [16:57:37]*** Cut end [16:57:37]Read from MH i2c: 01 07 00 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: 01 07 00 AB 0C 00 00 00 00 00 FF 0F CC [16:57:37]process_action close_receipt done [16:57:37]requested_data is exist [16:57:37]produce_requested_data [16:57:37]requested_item fm.sn is exist - process it [16:57:37]wFMCommunicate request_size=4 [16:57:37]MH_SAM_APDU [16:57:37]CAPDU: 80 11 00 00 [16:57:37]Write to MH i2c: E2 08 00 AC 0C 80 11 00 00 00 00 00 00 32 [16:57:37]Write i2c OK [16:57:37]MH_I2C_Read... [16:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:37]Read from MH i2c: E2 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: E2 17 00 [16:57:37]MH_I2C_Read... [16:57:37]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 39 31 35 90 00 87 [16:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [16:57:37]wFMCommunicate OK [16:57:37]requested_item fd.num is exist - process it [16:57:37]SAM_PROTO_GetFieldsCounters [16:57:37]wFMCommunicate request_size=4 [16:57:37]MH_SAM_APDU [16:57:37]CAPDU: 80 13 00 00 [16:57:37]Write to MH i2c: E2 08 00 AD 0C 80 13 00 00 00 00 00 00 35 [16:57:37]Write i2c OK [16:57:37]MH_I2C_Read... [16:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:37]Read from MH i2c: E2 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: E2 62 00 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: E2 62 00 AD 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D5 13 01 00 0E 04 04 00 D1 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 97 [16:57:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D5 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:37]wFMCommunicate OK [16:57:37]SAM_PROTO_GetFieldsCounters done [16:57:37]requested_item shift.num is exist - process it [16:57:37]requested_item shift.opened is exist - process it [16:57:37]req_shift_opened [16:57:37]FM_GetShiftState [16:57:37]SAM_PROTO_GetShiftState [16:57:37]wFMCommunicate request_size=4 [16:57:37]MH_SAM_APDU [16:57:37]CAPDU: 80 13 01 00 [16:57:37]Write to MH i2c: E2 08 00 AE 0C 80 13 01 00 00 00 00 00 37 [16:57:37]Write i2c OK [16:57:37]MH_I2C_Read... [16:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:37]Read from MH i2c: E2 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: E2 0E 00 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: E2 0E 00 AE 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 24 [16:57:37]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [16:57:37]wFMCommunicate OK [16:57:37]SAM_PROTO_GetShiftState done [16:57:37]FM_GetShiftState done [16:57:37]req_shift_opened done [16:57:37]requested_item shift.open_date is exist - process it [16:57:37]req_shift_open_date [16:57:37]req_shift_open_date done [16:57:37]produce_requested_data done [16:57:37]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70613,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [16:57:37]process_action_free close_receipt [16:57:37]json_value_free [16:57:37]json_value_free done [16:57:37]process_json_proto returns [16:57:37]Send response to host [16:57:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70613,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [16:57:37]free response buf [16:57:37]execute_script done [16:57:37]execute_script returns [16:57:37]free content buf [16:57:37]Sock 9.Close socket [16:57:37]Sock 9.Thread stoped [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]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:02]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:56]int [17:22:56]Write to MH i2c: 01 00 00 AF 0C BB [17:22:56]*** FLAG_PRN_KEY set [17:22:56]Write i2c OK [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: 01 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: 01 07 00 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: 01 07 00 AF 0C 00 08 00 00 00 FF 0F D8 [17:22:56]state=0 [17:22:56]Key pressed [17:22:56]Feed [17:22:56]Write to MH i2c: D8 00 00 B0 0C 93 [17:22:56]Write i2c OK [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: D8 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: D8 01 00 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: D8 01 00 B0 0C 00 94 [17:22:56]int [17:22:56]Write to MH i2c: 01 00 00 B1 0C BD [17:22:56]Write i2c OK [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: 01 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: 01 07 00 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: 01 07 00 B1 0C 00 48 00 00 00 3C 00 48 [17:22:56]state=2 [17:22:56]Key pressed [17:22:56]int [17:22:56]Write to MH i2c: 01 00 00 B2 0C BE [17:22:56]*** FLAG_PRN_KEY reset [17:22:56]Write i2c OK [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: 01 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: 01 07 00 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 F6 0F CA [17:22:56]state=2 [17:22:56]Stop feed [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:40]accept exits with 7 [17:23:40]New connection [17:23:40]New thread 3066699108 created [17:23:40]Thread 3066842468 joined [17:23:40]Waiting for new connection... [17:23:40] Sock 7.Parse request [17:23:40]Sock 7.Check first char [17:23:40]Sock 7.First char is OK [17:23:40]request: POST /json_proto HTTP/1.0 [17:23:40]Method: POST [17:23:40]URL: /json_proto [17:23:40]Method is POST - this is cgi request [17:23:40]url: /json_proto [17:23:40]query_string will be loaded in cgi processing [17:23:40]execute_cgi json_proto POST (null) [17:23:40]execute_cgi path=json_proto method=POST [17:23:40]POST find Content-Length [17:23:40]Host: 172.17.58.67:8080 [17:23:40]Content-Length: 802 [17:23:40]Content-Type: application/json [17:23:40] [17:23:40]POST finish read [17:23:40]Found Content-Length = 802 [17:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:40]execute_script... [17:23: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)141065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:40]POST & json_proto [17:23:40]process_json_proto [17:23:40]json parsed OK: [17:23:40]protocol is kg_v1.0 [17:23:40]action value=close_receipt [17:23:40]process_action close_receipt [17:23:40]cmd_close_receipt [17:23:40]MH_GetDate [17:23:40]Write to MH i2c: F0 00 00 B3 0C AE [17:23:40]Write i2c OK [17:23:40]MH_I2C_Read... [17:23:40]Read from MH i2c: F0 [17:23:40]MH_I2C_Read... [17:23:40]Read from MH i2c: F0 09 00 [17:23:40]MH_I2C_Read... [17:23:40]Read from MH i2c: F0 09 00 B3 0C 00 1E 45 BA 66 94 51 63 64 E6 [17:23:40]GetLastDocTimeStamp 1723481855 [17:23:40]current date 1723483422 [17:23:40]FM_GetShiftState [17:23:40]SAM_PROTO_GetShiftState [17:23:40]wFMCommunicate request_size=4 [17:23:40]MH_SAM_APDU [17:23:40]CAPDU: 80 13 01 00 [17:23:40]Write to MH i2c: E2 08 00 B4 0C 80 13 01 00 00 00 00 00 3D [17:23:40]Write i2c OK [17:23:40]MH_I2C_Read... [17:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:40]Read from MH i2c: E2 [17:23:40]MH_I2C_Read... [17:23:40]Read from MH i2c: E2 0E 00 [17:23:40]MH_I2C_Read... [17:23:40]Read from MH i2c: E2 0E 00 B4 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 2A [17:23:40]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:23:40]wFMCommunicate OK [17:23:40]SAM_PROTO_GetShiftState done [17:23:40]FM_GetShiftState done [17:23:40]opened in 1723423336 [17:23:40]opened+sec_in_day 1723509736 [17:23:40]quantity*price = 50071 [17:23:40]sum+1 = 50072 [17:23:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.71 ÐСП 1% : 4.43 ÐДС 12% : 53.17 Ðаличными: 0.00 Безнал.: 500.71 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 46 12.08.2024 17:23 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70614 ФПД: 97034874135518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T172342&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70614&fm=97034874135518&tin=02508201610067®Number=0000000000090913&sum=50071 [17:23:42]StoreToDocumentArchive [17:23:42]shift 465 fd 70614 [17:23:42]save to /storage/0465/doc_00070614 [17:23:42]save last doc name /storage/0465/doc_00070614 to /storage/kkm_last_doc_name [17:23:42]save OK [17:23:42]Clear old archive folders... [17:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:23:42]tlvbuf is 0109A5A0 [17:23:42]SAM_PROTO_ClearQueue [17:23:42]wFMCommunicate request_size=4 [17:23:42]MH_SAM_APDU [17:23:42]CAPDU: 80 09 00 00 [17:23:42]Write to MH i2c: E2 08 00 C1 0C 80 09 00 00 00 00 00 00 3F [17:23:42]Write i2c OK [17:23:42]MH_I2C_Read... [17:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:42]Read from MH i2c: E2 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 03 00 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 03 00 C1 0C 00 90 00 41 [17:23:42]RAPDU: 90 00 [17:23:42]wFMCommunicate OK [17:23:42]SAM_PROTO_ClearQueue done [17:23:42]KKMCreateOFDPacket [17:23:42]OFDProtocolAddRootSTLVToBuf [17:23:42]FM_MakeSignedData [17:23:42]FM_MakeSignedData [17:23:42]SAM_PROTO_SignData [17:23:42]wFMCommunicate request_size=4 [17:23:42]MH_SAM_APDU [17:23:42]CAPDU: 80 0D 01 02 [17:23:42]Write to MH i2c: E2 08 00 C2 0C 80 0D 01 02 00 00 00 00 47 [17:23:42]Write i2c OK [17:23:42]MH_I2C_Read... [17:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:42]Read from MH i2c: E2 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 03 00 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 03 00 C2 0C 00 90 00 42 [17:23:42]RAPDU: 90 00 [17:23:42]wFMCommunicate OK [17:23:42]wFMCommunicate request_size=255 [17:23:42]MH_SAM_APDU [17:23: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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1E 45 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D6 13 01 00 35 04 06 00 58 40 B1 34 [17:23:42]Write to MH i2c: E2 02 01 C3 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1E 45 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D6 13 01 00 35 04 06 00 58 40 B1 34 00 00 C1 [17:23:42]Write i2c OK [17:23:42]MH_I2C_Read... [17:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:42]Read from MH i2c: E2 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 03 00 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [17:23:42]RAPDU: 90 00 [17:23:42]wFMCommunicate OK [17:23:42]wFMCommunicate request_size=7 [17:23:42]MH_SAM_APDU [17:23:42]CAPDU: 80 0D 02 02 02 23 DE [17:23:42]Write to MH i2c: E2 0A 00 C4 0C 80 0D 02 02 02 00 23 DE 00 00 4F [17:23:42]Write i2c OK [17:23:42]MH_I2C_Read... [17:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:42]Read from MH i2c: E2 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 03 00 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [17:23:42]RAPDU: 90 00 [17:23:42]wFMCommunicate OK [17:23:42]wFMCommunicate request_size=4 [17:23:42]MH_SAM_APDU [17:23:42]CAPDU: 80 0D 03 02 [17:23:42]Write to MH i2c: E2 08 00 C5 0C 80 0D 03 02 00 00 00 00 4C [17:23:42]Write i2c OK [17:23:42]MH_I2C_Read... [17:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:42]Read from MH i2c: E2 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 0B 00 [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: E2 0B 00 C5 0C 00 31 F3 F4 20 D0 0B 64 B5 90 00 79 [17:23:42]RAPDU: 31 F3 F4 20 D0 0B 64 B5 90 00 [17:23:42]wFMCommunicate OK [17:23:42]SAM_PROTO_SignData done [17:23:42]FM_MakeSignedData done [17:23:42]CreateOFDProtocolMessage [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 C6 0C 80 11 00 00 00 00 00 00 4C [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 C6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 A1 [17:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:23:42]wFMCommunicate OK [17:23:42]CreateOFDProtocolMessage done [17:23:42]OFDSenderStorePacket 70614 [17:23:42]StoreOFDPacket docnum=70614 [17:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 02 0E 04 01 A3 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1E 45 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D6 13 01 00 35 04 06 00 58 40 B1 34 23 DE 31 F3 F4 20 D0 0B 64 B5 [17:23:42]CheckFolder [17:23:42]dirname=/storage/ofd_packets [17:23:42]CheckFolder done [17:23:42]ProducePacketName [17:23:42]name=ofd_packets/00070614 [17:23:42]NVStorageSaveData ofd_packets/00070614 [17:23:42]File name is /storage/ofd_packets/00070614 [17:23:42]Write 298 bytes [17:23:42]NVStorageSaveData done [17:23:42]OFDSenderStorePacket done [17:23:42]KKMCreateOFDPacket done [17:23:42]NVStorageSaveData kkm_last_timestamp [17:23:42]File name is /storage/kkm_last_timestamp [17:23:42]Write 4 bytes [17:23:42]NVStorageSaveData done [17:23:42]ExternCall_PrintAddStr [17:23:42]wPrintStart [17:23:42]Write to MH i2c: 01 00 00 C7 0C D3 [17:23:42]Write i2c OK [17:23:42]MH_I2C_Read... [17:23:42]Read from MH i2c: 01 [17:23:42]MH_I2C_Read... [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 C7 0C 00 00 00 00 00 FF 0F E8 [17:23:42]RasterBufferAndPrint [17:23:42]line Счет N : (1)141065 [17:23:42]line ИÐÐ: 02508201610067 [17:23:42]line Контрольно-КаÑÑовый Чек [17:23:42]line ПРОДÐЖР[17:23:42]line ТРК (МРК, ГÐК) : 24 [17:23:42]line Товар: 2710194210 [17:23:42]line ДТ-К-5 [17:23:42]line 6.730 * 74.40 [17:23:42]line = 500.71 [17:23:42]line ÐДС 12% ÐСП 1% [17:23:42]line > о реализуемом товаре [17:23:42]line ИТОГО: 500.71 [17:23:42]line ÐСП 1% : 4.43 [17:23:42]line ÐДС 12% : 53.17 [17:23:42]line Ðаличными: 0.00 [17:23:42]line Безнал.: 500.71 [17:23:42]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:23:42]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:23:42]line СÐО: Общий режим [17:23:42]line Чек 46 12.08.2024 17:23 [17:23:42]line Смена: 465 ФФД: 1.0 [17:23:42]line ЗÐМ: 0300000140 [17:23:42]line РÐМ: 0000000000090913 [17:23:42]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:23:42]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:23:42]line ФМ: 0000000000874915 [17:23:42]line ФД: 70614 [17:23:42]line ФПД: 97034874135518 [17:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T172342&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70614&fm=97034874135518&tin=02508201610067®Number=0000000000090913&sum=50071 [17:23:42]OFD Sender: Processing packet 70614 [packets to send 67, broken 66] [17:23:42]ProducePacketName [17:23:42]name=ofd_packets/00070614 [17:23:42]OFD Sender: To server: ‡•öpG, [17:23:42]CommunicateWithHost lk.salyk.kg:30040 [17:23:42]ConnectInit lk.salyk.kg [17:23:42]written 0, free lines is 4095 [17:23:42]Connected sock=10 [17:23: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 39 31 35 0C 01 00 00 02 0E 04 01 A3 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 1E 45 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D6 13 01 00 35 04 06 00 58 40 B1 34 23 DE 31 F3 F4 20 D0 0B 64 B5 [17:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 3C 1E 47 00 FC 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 39 31 35 10 04 04 00 D6 13 01 00 F4 03 04 00 0A EC B9 66 B6 04 01 00 00 7B 9A 73 31 9C 78 0C E6 [17:23:43]CommunicateWithHost err = 0 [17:23:43]CheckOFDResponse [17:23:43]1017 (14) - 77093643461234 [17:23:43]1041 (16) - 0000000000874915 [17:23:43]1040 (4) - 70614 [17:23:43]1012 (4) - 12.08.2024 11:03 [17:23:43]1206 (1) - 0 [17:23:43]OFD Sender: Remove packet 70614 [17:23:43]ProducePacketName [17:23:43]name=ofd_packets/00070614 [17:23:43]NVStorageDeleteData [17:23:43]Write to MH i2c: 01 00 00 F1 0C FD [17:23:43]Write i2c OK [17:23:43]MH_I2C_Read... [17:23:43]Read from MH i2c: 01 [17:23:43]MH_I2C_Read... [17:23:43]Read from MH i2c: 01 07 00 [17:23:43]MH_I2C_Read... [17:23:43]Read from MH i2c: 01 07 00 F1 0C 00 00 00 00 00 EE 0C FE [17:23:43]RasterBufferAndPrint [17:23:43]line [17:23:43]line [17:23:43]line [17:23:43]line [17:23:43]line [17:23:43]written 0, free lines is 3316 [17:23:43]MH_Cut [17:23:43]Write to MH i2c: D1 01 00 F8 0C 01 D6 [17:23:43]Write i2c OK [17:23:43]MH_I2C_Read... [17:23:43]Read from MH i2c: D1 [17:23:43]MH_I2C_Read... [17:23:43]Read from MH i2c: D1 01 00 [17:23:43]MH_I2C_Read... [17:23:43]Read from MH i2c: D1 01 00 F8 0C 00 D5 [17:23:43]Write to MH i2c: 01 00 00 F9 0C 05 [17:23:43]Write i2c OK [17:23:43]MH_I2C_Read... [17:23:43]OFD Sender: No OFD packet to send [17:23:43]*** Cut start [17:23:43]*** Purtial cut [17:23:43]*** CUTSNS_PIN = 0 [17:23:44]*** Stage 1: CUTSNS_PIN = 1 [17:23:46]Read from MH i2c: 01 [17:23:46]MH_I2C_Read... [17:23:46]*** Stop cut motor [17:23:46]*** Cut end [17:23:46]Read from MH i2c: 01 07 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: 01 07 00 F9 0C 00 00 00 00 00 FF 0F 1A [17:23:46]process_action close_receipt done [17:23:46]requested_data is exist [17:23:46]produce_requested_data [17:23:46]requested_item fm.sn is exist - process it [17:23:46]wFMCommunicate request_size=4 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 11 00 00 [17:23:46]Write to MH i2c: E2 08 00 FA 0C 80 11 00 00 00 00 00 00 80 [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 17 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 17 00 FA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D5 [17:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:23:46]wFMCommunicate OK [17:23:46]requested_item fd.num is exist - process it [17:23:46]SAM_PROTO_GetFieldsCounters [17:23:46]wFMCommunicate request_size=4 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 13 00 00 [17:23:46]Write to MH i2c: E2 08 00 FB 0C 80 13 00 00 00 00 00 00 83 [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 62 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 62 00 FB 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D6 13 01 00 0E 04 04 00 D1 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 E9 [17:23: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D6 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:46]wFMCommunicate OK [17:23:46]SAM_PROTO_GetFieldsCounters done [17:23:46]requested_item shift.num is exist - process it [17:23:46]requested_item shift.opened is exist - process it [17:23:46]req_shift_opened [17:23:46]FM_GetShiftState [17:23:46]SAM_PROTO_GetShiftState [17:23:46]wFMCommunicate request_size=4 [17:23:46]MH_SAM_APDU [17:23:46]CAPDU: 80 13 01 00 [17:23:46]Write to MH i2c: E2 08 00 FC 0C 80 13 01 00 00 00 00 00 85 [17:23:46]Write i2c OK [17:23:46]MH_I2C_Read... [17:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:46]Read from MH i2c: E2 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 0E 00 [17:23:46]MH_I2C_Read... [17:23:46]Read from MH i2c: E2 0E 00 FC 0C 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 72 [17:23:46]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:23:46]wFMCommunicate OK [17:23:46]SAM_PROTO_GetShiftState done [17:23:46]FM_GetShiftState done [17:23:46]req_shift_opened done [17:23:46]requested_item shift.open_date is exist - process it [17:23:46]req_shift_open_date [17:23:46]req_shift_open_date done [17:23:46]produce_requested_data done [17:23:46]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70614,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [17:23:46]process_action_free close_receipt [17:23:46]json_value_free [17:23:46]json_value_free done [17:23:46]process_json_proto returns [17:23:46]Send response to host [17:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70614,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [17:23:46]free response buf [17:23:46]execute_script done [17:23:46]execute_script returns [17:23:46]free content buf [17:23:46]Sock 7.Close socket [17:23:46]Sock 7.Thread stoped [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:19]int [17:32:19]Write to MH i2c: 01 00 00 FD 0C 09 [17:32:19]*** FLAG_PRN_KEY set [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 FD 0C 00 08 00 00 00 FF 0F 26 [17:32:19]state=0 [17:32:19]Key pressed [17:32:19]Feed [17:32:19]Write to MH i2c: D8 00 00 FE 0C E1 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: D8 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: D8 01 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: D8 01 00 FE 0C 00 E2 [17:32:19]int [17:32:19]Write to MH i2c: 01 00 00 FF 0C 0B [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 FF 0C 00 48 00 00 00 3C 00 96 [17:32:19]state=2 [17:32:19]Key pressed [17:32:19]int [17:32:19]Write to MH i2c: 01 00 00 00 0D 0D [17:32:19]*** FLAG_PRN_KEY reset [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 00 0D 00 00 00 00 00 F6 0F 19 [17:32:19]state=2 [17:32:19]Stop feed [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]accept exits with 9 [17:36:04]New connection [17:36:04]New thread 3066842468 created [17:36:04]Thread 3066699108 joined [17:36:04]Waiting for new connection... [17:36:04] Sock 9.Parse request [17:36:04]Sock 9.Check first char [17:36:04]Sock 9.First char is OK [17:36:04]request: POST /json_proto HTTP/1.0 [17:36:04]Method: POST [17:36:04]URL: /json_proto [17:36:04]Method is POST - this is cgi request [17:36:04]url: /json_proto [17:36:04]query_string will be loaded in cgi processing [17:36:04]execute_cgi json_proto POST (null) [17:36:04]execute_cgi path=json_proto method=POST [17:36:04]POST find Content-Length [17:36:04]Host: 172.17.58.67:8080 [17:36:04]Content-Length: 1190 [17:36:04]Content-Type: application/json [17:36:04] [17:36:04]POST finish read [17:36:04]Found Content-Length = 1190 [17:36: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141066\u000A12.08.2024 16:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 45.520 x 65.90\u000A\u0418\u0422\u041E\u0413: 2999.77\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\u000A53040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:04]execute_script... [17:36: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141066\u000A12.08.2024 16:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 45.520 x 65.90\u000A\u0418\u0422\u041E\u0413: 2999.77\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\u000A53040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:04]POST & json_proto [17:36:04]process_json_proto [17:36:04]json parsed OK: [17:36:04]protocol is kg_v1.0 [17:36:04]action value=print_text [17:36:04]process_action print_text [17:36:04]cmd_print_text [17:36:04]ExternCall_PrintAddStr [17:36:04]wPrintStart [17:36:04]Write to MH i2c: 01 00 00 01 0D 0E [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 07 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 07 00 01 0D 00 00 00 00 00 FF 0F 23 [17:36:04]RasterBufferAndPrint [17:36:04]line *****ТОВÐРÐЫЙ ЧЕК***** [17:36:04]line ÐЗС 39 [17:36:04]line Партнер нефть [17:36:04]line 02508201610067 [17:36:04]line КаÑÑир : Мирбек к Ð. [17:36:04]line Счет N : (1)141066 [17:36:04]line 12.08.2024 16:55 [17:36:04]line ПРОДÐЖР[17:36:04]line ТРК (МРК, ГÐК): 31 [17:36:04]line Вид ГСМ : 2710124130 [17:36:04]line Ðи-92-К-5 [17:36:04]line 45.520 x 65.90 [17:36:04]line ИТОГ: 2999.77 [17:36:04]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [17:36:04]line 53040 [17:36:04]line ______________________ [17:36:04]line (подпиÑÑŒ) [17:36:04]written 0, free lines is 4095 [17:36:04]Write to MH i2c: 01 00 00 15 0D 22 [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 07 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 12 0E 49 [17:36:04]RasterBufferAndPrint [17:36:04]line [17:36:04]line [17:36:04]line [17:36:04]line [17:36:04]line [17:36:04]written 0, free lines is 3603 [17:36:04]MH_Cut [17:36:04]Write to MH i2c: D1 01 00 1C 0D 01 FB [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: D1 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: D1 01 00 [17:36:04]MH_I2C_Read... [17:36:04]Read from MH i2c: D1 01 00 1C 0D 00 FA [17:36:04]Write to MH i2c: 01 00 00 1D 0D 2A [17:36:04]Write i2c OK [17:36:04]MH_I2C_Read... [17:36:04]OFD Sender: No OFD packet to send [17:36:04]*** Cut start [17:36:04]*** Purtial cut [17:36:04]*** Stage 1: CUTSNS_PIN = 1 [17:36:05]Read from MH i2c: 01 [17:36:05]MH_I2C_Read... [17:36:05]*** Stop cut motor [17:36:05]*** Cut end [17:36:05]Read from MH i2c: 01 07 00 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: 01 07 00 1D 0D 00 00 00 00 00 FF 0F 3F [17:36:05]process_action print_text done [17:36:05]requested_data is exist [17:36:05]produce_requested_data [17:36:05]requested_item fm.sn is exist - process it [17:36:05]wFMCommunicate request_size=4 [17:36:05]MH_SAM_APDU [17:36:05]CAPDU: 80 11 00 00 [17:36:05]Write to MH i2c: E2 08 00 1E 0D 80 11 00 00 00 00 00 00 A5 [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:05]Read from MH i2c: E2 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 17 00 [17:36:05]MH_I2C_Read... [17:36:05]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 39 31 35 90 00 FA [17:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:36:05]wFMCommunicate OK [17:36:05]requested_item fd.num is exist - process it [17:36:05]SAM_PROTO_GetFieldsCounters [17:36:05]wFMCommunicate request_size=4 [17:36:05]MH_SAM_APDU [17:36:05]CAPDU: 80 13 00 00 [17:36:05]Write to MH i2c: E2 08 00 1F 0D 80 13 00 00 00 00 00 00 A8 [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:05]Read from MH i2c: E2 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 62 00 [17:36:05]MH_I2C_Read... [17:36:05]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D6 13 01 00 0E 04 04 00 D1 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 0E [17:36: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D6 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:05]wFMCommunicate OK [17:36:05]SAM_PROTO_GetFieldsCounters done [17:36:05]requested_item shift.num is exist - process it [17:36:05]requested_item shift.opened is exist - process it [17:36:05]req_shift_opened [17:36:05]FM_GetShiftState [17:36:05]SAM_PROTO_GetShiftState [17:36:05]wFMCommunicate request_size=4 [17:36:05]MH_SAM_APDU [17:36:05]CAPDU: 80 13 01 00 [17:36:05]Write to MH i2c: E2 08 00 20 0D 80 13 01 00 00 00 00 00 AA [17:36:05]Write i2c OK [17:36:05]MH_I2C_Read... [17:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:05]Read from MH i2c: E2 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 0E 00 [17:36:05]MH_I2C_Read... [17:36:05]Read from MH i2c: E2 0E 00 20 0D 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 97 [17:36:05]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:36:05]wFMCommunicate OK [17:36:05]SAM_PROTO_GetShiftState done [17:36:05]FM_GetShiftState done [17:36:05]req_shift_opened done [17:36:05]requested_item shift.open_date is exist - process it [17:36:05]req_shift_open_date [17:36:05]req_shift_open_date done [17:36:05]produce_requested_data done [17:36:05]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70614,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [17:36:05]process_action_free print_text [17:36:05]json_value_free [17:36:05]json_value_free done [17:36:05]process_json_proto returns [17:36:05]Send response to host [17:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70614,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [17:36:05]free response buf [17:36:05]execute_script done [17:36:05]execute_script returns [17:36:05]free content buf [17:36:05]Sock 9.Close socket [17:36:05]Sock 9.Thread stoped [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:29]accept exits with 7 [17:38:29]New connection [17:38:29]New thread 3066699108 created [17:38:29]Thread 3066842468 joined [17:38:29]Waiting for new connection... [17:38:29] Sock 7.Parse request [17:38:29]Sock 7.Check first char [17:38:29]Sock 7.First char is OK [17:38:29]request: POST /json_proto HTTP/1.0 [17:38:29]Method: POST [17:38:29]URL: /json_proto [17:38:29]Method is POST - this is cgi request [17:38:29]url: /json_proto [17:38:29]query_string will be loaded in cgi processing [17:38:29]execute_cgi json_proto POST (null) [17:38:29]execute_cgi path=json_proto method=POST [17:38:29]POST find Content-Length [17:38:29]Host: 172.17.58.67:8080 [17:38:29]Content-Length: 806 [17:38:29]Content-Type: application/json [17:38:29] [17:38:29]POST finish read [17:38:29]Found Content-Length = 806 [17:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.630, "sum" : 700.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" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:29]execute_script... [17:38: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)141067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 10.630, "sum" : 700.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" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:29]POST & json_proto [17:38:29]process_json_proto [17:38:29]json parsed OK: [17:38:29]protocol is kg_v1.0 [17:38:29]action value=close_receipt [17:38:29]process_action close_receipt [17:38:29]cmd_close_receipt [17:38:29]MH_GetDate [17:38:29]Write to MH i2c: F0 00 00 21 0D 1D [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: F0 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: F0 09 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: F0 09 00 21 0D 00 97 48 BA 66 94 51 63 64 D1 [17:38:29]GetLastDocTimeStamp 1723483422 [17:38:29]current date 1723484311 [17:38:29]FM_GetShiftState [17:38:29]SAM_PROTO_GetShiftState [17:38:29]wFMCommunicate request_size=4 [17:38:29]MH_SAM_APDU [17:38:29]CAPDU: 80 13 01 00 [17:38:29]Write to MH i2c: E2 08 00 22 0D 80 13 01 00 00 00 00 00 AC [17:38:29]Write i2c OK [17:38:29]MH_I2C_Read... [17:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:29]Read from MH i2c: E2 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 0E 00 [17:38:29]MH_I2C_Read... [17:38:29]Read from MH i2c: E2 0E 00 22 0D 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 99 [17:38:29]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:38:29]wFMCommunicate OK [17:38:29]SAM_PROTO_GetShiftState done [17:38:29]FM_GetShiftState done [17:38:29]opened in 1723423336 [17:38:29]opened+sec_in_day 1723509736 [17:38:29]quantity*price = 70051 [17:38:29]sum+1 = 70053 [17:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 ÐСП 1% : 6.20 ÐДС 12% : 74.39 Ðаличными: 0.00 Безнал.: 700.52 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 47 12.08.2024 17:38 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70615 ФПД: 36228605986097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T173831&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70615&fm=36228605986097&tin=02508201610067®Number=0000000000090913&sum=70052 [17:38:30]StoreToDocumentArchive [17:38:30]shift 465 fd 70615 [17:38:30]save to /storage/0465/doc_00070615 [17:38:30]save last doc name /storage/0465/doc_00070615 to /storage/kkm_last_doc_name [17:38:30]save OK [17:38:30]Clear old archive folders... [17:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:30]tlvbuf is 01096F30 [17:38:30]SAM_PROTO_ClearQueue [17:38:30]wFMCommunicate request_size=4 [17:38:30]MH_SAM_APDU [17:38:30]CAPDU: 80 09 00 00 [17:38:30]Write to MH i2c: E2 08 00 2F 0D 80 09 00 00 00 00 00 00 AE [17:38:30]Write i2c OK [17:38:30]MH_I2C_Read... [17:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:30]Read from MH i2c: E2 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 03 00 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 03 00 2F 0D 00 90 00 B0 [17:38:30]RAPDU: 90 00 [17:38:30]wFMCommunicate OK [17:38:30]SAM_PROTO_ClearQueue done [17:38:30]KKMCreateOFDPacket [17:38:30]OFDProtocolAddRootSTLVToBuf [17:38:30]FM_MakeSignedData [17:38:30]FM_MakeSignedData [17:38:30]SAM_PROTO_SignData [17:38:30]wFMCommunicate request_size=4 [17:38:30]MH_SAM_APDU [17:38:30]CAPDU: 80 0D 01 02 [17:38:30]Write to MH i2c: E2 08 00 30 0D 80 0D 01 02 00 00 00 00 B6 [17:38:30]Write i2c OK [17:38:30]MH_I2C_Read... [17:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:30]Read from MH i2c: E2 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 03 00 [17:38:30]MH_I2C_Read... [17:38:30]Read from MH i2c: E2 03 00 30 0D 00 90 00 B1 [17:38:30]RAPDU: 90 00 [17:38:30]wFMCommunicate OK [17:38:30]wFMCommunicate request_size=255 [17:38:30]MH_SAM_APDU [17:38:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 97 48 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D7 13 01 00 35 04 06 00 20 [17:38:30]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 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 97 48 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D7 13 01 00 35 04 06 00 20 00 00 0C [17:38:30]Write i2c OK [17:38:30]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 03 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 03 00 31 0D 00 90 00 B2 [17:38:31]RAPDU: 90 00 [17:38:31]wFMCommunicate OK [17:38:31]wFMCommunicate request_size=10 [17:38:31]MH_SAM_APDU [17:38:31]CAPDU: 80 0D 02 02 05 F3 21 30 C5 31 [17:38:31]Write to MH i2c: E2 0D 00 32 0D 80 0D 02 02 05 00 F3 21 30 C5 31 00 00 FD [17:38:31]Write i2c OK [17:38:31]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 03 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 03 00 32 0D 00 90 00 B3 [17:38:31]RAPDU: 90 00 [17:38:31]wFMCommunicate OK [17:38:31]wFMCommunicate request_size=4 [17:38:31]MH_SAM_APDU [17:38:31]CAPDU: 80 0D 03 02 [17:38:31]Write to MH i2c: E2 08 00 33 0D 80 0D 03 02 00 00 00 00 BB [17:38:31]Write i2c OK [17:38:31]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 0B 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 0B 00 33 0D 00 77 19 EF 03 BE 18 99 36 90 00 E3 [17:38:31]RAPDU: 77 19 EF 03 BE 18 99 36 90 00 [17:38:31]wFMCommunicate OK [17:38:31]SAM_PROTO_SignData done [17:38:31]FM_MakeSignedData done [17:38:31]CreateOFDProtocolMessage [17:38:31]wFMCommunicate request_size=4 [17:38:31]MH_SAM_APDU [17:38:31]CAPDU: 80 11 00 00 [17:38:31]Write to MH i2c: E2 08 00 34 0D 80 11 00 00 00 00 00 00 BB [17:38:31]Write i2c OK [17:38:31]MH_I2C_Read... [17:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:31]Read from MH i2c: E2 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: E2 17 00 [17:38:31]MH_I2C_Read... [17:38:31]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 39 31 35 90 00 10 [17:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:38:31]wFMCommunicate OK [17:38:31]CreateOFDProtocolMessage done [17:38:31]OFDSenderStorePacket 70615 [17:38:31]StoreOFDPacket docnum=70615 [17:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 A2 8C 07 01 94 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 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 97 48 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D7 13 01 00 35 04 06 00 20 F3 21 30 C5 31 77 19 EF 03 BE 18 99 36 [17:38:31]CheckFolder [17:38:31]dirname=/storage/ofd_packets [17:38:31]CheckFolder done [17:38:31]ProducePacketName [17:38:31]name=ofd_packets/00070615 [17:38:31]NVStorageSaveData ofd_packets/00070615 [17:38:31]File name is /storage/ofd_packets/00070615 [17:38:31]Write 301 bytes [17:38:31]NVStorageSaveData done [17:38:31]OFDSenderStorePacket done [17:38:31]KKMCreateOFDPacket done [17:38:31]NVStorageSaveData kkm_last_timestamp [17:38:31]File name is /storage/kkm_last_timestamp [17:38:31]Write 4 bytes [17:38:31]NVStorageSaveData done [17:38:31]ExternCall_PrintAddStr [17:38:31]wPrintStart [17:38:31]Write to MH i2c: 01 00 00 35 0D 42 [17:38:31]Write i2c OK [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: 01 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: 01 07 00 [17:38:31]MH_I2C_Read... [17:38:31]Read from MH i2c: 01 07 00 35 0D 00 00 00 00 00 FF 0F 57 [17:38:31]RasterBufferAndPrint [17:38:31]line Счет N : (1)141067 [17:38:31]line ИÐÐ: 02508201610067 [17:38:31]line Контрольно-КаÑÑовый Чек [17:38:31]line ПРОДÐЖР[17:38:31]line ТРК (МРК, ГÐК) : 31 [17:38:31]line Товар: 2710124130 [17:38:31]line Ðи-92-К-5 [17:38:31]line 10.630 * 65.90 [17:38:31]line = 700.52 [17:38:31]line ÐДС 12% ÐСП 1% [17:38:31]line > о реализуемом товаре [17:38:31]line ИТОГО: 700.52 [17:38:31]line ÐСП 1% : 6.20 [17:38:31]line ÐДС 12% : 74.39 [17:38:31]line Ðаличными: 0.00 [17:38:31]line Безнал.: 700.52 [17:38:31]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:38:31]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:38:31]line СÐО: Общий режим [17:38:31]line Чек 47 12.08.2024 17:38 [17:38:31]line Смена: 465 ФФД: 1.0 [17:38:31]line ЗÐМ: 0300000140 [17:38:31]line РÐМ: 0000000000090913 [17:38:31]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:38:31]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:38:31]line ФМ: 0000000000874915 [17:38:31]line ФД: 70615 [17:38:31]line ФПД: 36228605986097 [17:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T173831&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70615&fm=36228605986097&tin=02508201610067®Number=0000000000090913&sum=70052 [17:38:31]OFD Sender: Processing packet 70615 [packets to send 67, broken 66] [17:38:31]ProducePacketName [17:38:31]name=ofd_packets/00070615 [17:38:31]OFD Sender: To server: ‡•öpG, [17:38:31]CommunicateWithHost lk.salyk.kg:30040 [17:38:31]ConnectInit lk.salyk.kg [17:38:31]written 0, free lines is 4095 [17:38:31]Connected sock=10 [17:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 A2 8C 07 01 94 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 86 29 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 97 48 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D7 13 01 00 35 04 06 00 20 F3 21 30 C5 31 77 19 EF 03 BE 18 99 36 [17:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 50 2E 47 00 BC 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 39 31 35 10 04 04 00 D7 13 01 00 F4 03 04 00 83 EF B9 66 B6 04 01 00 00 63 B4 E7 5F FC 4F 35 22 [17:38:32]CommunicateWithHost err = 0 [17:38:32]CheckOFDResponse [17:38:32]1017 (14) - 77093643461234 [17:38:32]1041 (16) - 0000000000874915 [17:38:32]1040 (4) - 70615 [17:38:32]1012 (4) - 12.08.2024 11:18 [17:38:32]1206 (1) - 0 [17:38:32]OFD Sender: Remove packet 70615 [17:38:32]ProducePacketName [17:38:32]name=ofd_packets/00070615 [17:38:32]NVStorageDeleteData [17:38:32]Write to MH i2c: 01 00 00 5F 0D 6C [17:38:32]Write i2c OK [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: 01 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: 01 07 00 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: 01 07 00 5F 0D 00 00 00 00 00 EF 0C 6E [17:38:32]RasterBufferAndPrint [17:38:32]line [17:38:32]line [17:38:32]line [17:38:32]line [17:38:32]line [17:38:32]written 0, free lines is 3317 [17:38:32]MH_Cut [17:38:32]Write to MH i2c: D1 01 00 66 0D 01 45 [17:38:32]Write i2c OK [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: D1 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: D1 01 00 [17:38:32]MH_I2C_Read... [17:38:32]Read from MH i2c: D1 01 00 66 0D 00 44 [17:38:32]Write to MH i2c: 01 00 00 67 0D 74 [17:38:32]Write i2c OK [17:38:32]MH_I2C_Read... [17:38:32]OFD Sender: No OFD packet to send [17:38:32]*** Cut start [17:38:32]*** Purtial cut [17:38:32]*** CUTSNS_PIN = 0 [17:38:33]*** Stage 1: CUTSNS_PIN = 1 [17:38:34]Read from MH i2c: 01 [17:38:34]MH_I2C_Read... [17:38:34]*** Stop cut motor [17:38:34]*** Cut end [17:38:34]Read from MH i2c: 01 07 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: 01 07 00 67 0D 00 00 00 00 00 FF 0F 89 [17:38:34]process_action close_receipt done [17:38:34]requested_data is exist [17:38:34]produce_requested_data [17:38:34]requested_item fm.sn is exist - process it [17:38:34]wFMCommunicate request_size=4 [17:38:34]MH_SAM_APDU [17:38:34]CAPDU: 80 11 00 00 [17:38:34]Write to MH i2c: E2 08 00 68 0D 80 11 00 00 00 00 00 00 EF [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:34]Read from MH i2c: E2 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 17 00 [17:38:34]MH_I2C_Read... [17:38:34]Read from MH i2c: E2 17 00 68 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 44 [17:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:38:34]wFMCommunicate OK [17:38:34]requested_item fd.num is exist - process it [17:38:34]SAM_PROTO_GetFieldsCounters [17:38:34]wFMCommunicate request_size=4 [17:38:34]MH_SAM_APDU [17:38:34]CAPDU: 80 13 00 00 [17:38:34]Write to MH i2c: E2 08 00 69 0D 80 13 00 00 00 00 00 00 F2 [17:38:34]Write i2c OK [17:38:34]MH_I2C_Read... [17:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:35]Read from MH i2c: E2 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 62 00 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 62 00 69 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D7 13 01 00 0E 04 04 00 D1 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 5C [17:38: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D7 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:35]wFMCommunicate OK [17:38:35]SAM_PROTO_GetFieldsCounters done [17:38:35]requested_item shift.num is exist - process it [17:38:35]requested_item shift.opened is exist - process it [17:38:35]req_shift_opened [17:38:35]FM_GetShiftState [17:38:35]SAM_PROTO_GetShiftState [17:38:35]wFMCommunicate request_size=4 [17:38:35]MH_SAM_APDU [17:38:35]CAPDU: 80 13 01 00 [17:38:35]Write to MH i2c: E2 08 00 6A 0D 80 13 01 00 00 00 00 00 F4 [17:38:35]Write i2c OK [17:38:35]MH_I2C_Read... [17:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:35]Read from MH i2c: E2 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 0E 00 [17:38:35]MH_I2C_Read... [17:38:35]Read from MH i2c: E2 0E 00 6A 0D 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 E1 [17:38:35]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:38:35]wFMCommunicate OK [17:38:35]SAM_PROTO_GetShiftState done [17:38:35]FM_GetShiftState done [17:38:35]req_shift_opened done [17:38:35]requested_item shift.open_date is exist - process it [17:38:35]req_shift_open_date [17:38:35]req_shift_open_date done [17:38:35]produce_requested_data done [17:38:35]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70615,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [17:38:35]process_action_free close_receipt [17:38:35]json_value_free [17:38:35]json_value_free done [17:38:35]process_json_proto returns [17:38:35]Send response to host [17:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70615,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [17:38:35]free response buf [17:38:35]execute_script done [17:38:35]execute_script returns [17:38:35]free content buf [17:38:35]Sock 7.Close socket [17:38:35]Sock 7.Thread stoped [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]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:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:17]int [17:47:17]Write to MH i2c: 01 00 00 6B 0D 78 [17:47:17]*** FLAG_PRN_KEY set [17:47:17]Write i2c OK [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: 01 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: 01 07 00 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: 01 07 00 6B 0D 00 08 00 00 00 FF 0F 95 [17:47:17]state=0 [17:47:17]Key pressed [17:47:17]Feed [17:47:17]Write to MH i2c: D8 00 00 6C 0D 50 [17:47:17]Write i2c OK [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: D8 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: D8 01 00 [17:47:17]MH_I2C_Read... [17:47:17]Read from MH i2c: D8 01 00 6C 0D 00 51 [17:47:17]int [17:47:17]Write to MH i2c: 01 00 00 6D 0D 7A [17:47:17]Write i2c OK [17:47:17]MH_I2C_Read... [17:47:18]Read from MH i2c: 01 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: 01 07 00 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: 01 07 00 6D 0D 00 48 00 00 00 3C 00 05 [17:47:18]state=2 [17:47:18]Key pressed [17:47:18]OFD Sender: No OFD packet to send [17:47:18]int [17:47:18]Write to MH i2c: 01 00 00 6E 0D 7B [17:47:18]*** FLAG_PRN_KEY reset [17:47:18]Write i2c OK [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: 01 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: 01 07 00 [17:47:18]MH_I2C_Read... [17:47:18]Read from MH i2c: 01 07 00 6E 0D 00 00 00 00 00 F6 0F 87 [17:47:18]state=2 [17:47:18]Stop feed [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:45]accept exits with 9 [17:48:45]New connection [17:48:45]New thread 3066842468 created [17:48:45]Thread 3066699108 joined [17:48:45]Waiting for new connection... [17:48:45] Sock 9.Parse request [17:48:45]Sock 9.Check first char [17:48:45]Sock 9.First char is OK [17:48:45]request: POST /json_proto HTTP/1.0 [17:48:45]Method: POST [17:48:45]URL: /json_proto [17:48:45]Method is POST - this is cgi request [17:48:45]url: /json_proto [17:48:45]query_string will be loaded in cgi processing [17:48:45]execute_cgi json_proto POST (null) [17:48:45]execute_cgi path=json_proto method=POST [17:48:45]POST find Content-Length [17:48:45]Host: 172.17.58.67:8080 [17:48:45]Content-Length: 805 [17:48:45]Content-Type: application/json [17:48:45] [17:48:45]POST finish read [17:48:45]Found Content-Length = 805 [17:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:45]execute_script... [17:48: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)141068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 9.110, "sum" : 600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:45]POST & json_proto [17:48:45]process_json_proto [17:48:45]json parsed OK: [17:48:45]protocol is kg_v1.0 [17:48:45]action value=close_receipt [17:48:45]process_action close_receipt [17:48:45]cmd_close_receipt [17:48:45]MH_GetDate [17:48:45]Write to MH i2c: F0 00 00 6F 0D 6B [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: F0 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: F0 09 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: F0 09 00 6F 0D 00 FE 4A BA 66 94 51 63 64 88 [17:48:45]GetLastDocTimeStamp 1723484311 [17:48:45]current date 1723484926 [17:48:45]FM_GetShiftState [17:48:45]SAM_PROTO_GetShiftState [17:48:45]wFMCommunicate request_size=4 [17:48:45]MH_SAM_APDU [17:48:45]CAPDU: 80 13 01 00 [17:48:45]Write to MH i2c: E2 08 00 70 0D 80 13 01 00 00 00 00 00 FA [17:48:45]Write i2c OK [17:48:45]MH_I2C_Read... [17:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:45]Read from MH i2c: E2 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 0E 00 [17:48:45]MH_I2C_Read... [17:48:45]Read from MH i2c: E2 0E 00 70 0D 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 E7 [17:48:45]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:48:45]wFMCommunicate OK [17:48:45]SAM_PROTO_GetShiftState done [17:48:45]FM_GetShiftState done [17:48:45]opened in 1723423336 [17:48:45]opened+sec_in_day 1723509736 [17:48:45]quantity*price = 60034 [17:48:45]sum+1 = 60036 [17:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.35 ÐСП 1% : 5.31 ÐДС 12% : 63.75 Ðаличными: 0.00 Безнал.: 600.35 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 48 12.08.2024 17:48 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70616 ФПД: 42979564575260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T174846&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70616&fm=42979564575260&tin=02508201610067®Number=0000000000090913&sum=60035 [17:48:46]StoreToDocumentArchive [17:48:46]shift 465 fd 70616 [17:48:46]save to /storage/0465/doc_00070616 [17:48:46]save last doc name /storage/0465/doc_00070616 to /storage/kkm_last_doc_name [17:48:46]save OK [17:48:46]Clear old archive folders... [17:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:46]tlvbuf is 010BFA70 [17:48:46]SAM_PROTO_ClearQueue [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 09 00 00 [17:48:46]Write to MH i2c: E2 08 00 7D 0D 80 09 00 00 00 00 00 00 FC [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 03 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 03 00 7D 0D 00 90 00 FE [17:48:46]RAPDU: 90 00 [17:48:46]wFMCommunicate OK [17:48:46]SAM_PROTO_ClearQueue done [17:48:46]KKMCreateOFDPacket [17:48:46]OFDProtocolAddRootSTLVToBuf [17:48:46]FM_MakeSignedData [17:48:46]FM_MakeSignedData [17:48:46]SAM_PROTO_SignData [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 0D 01 02 [17:48:46]Write to MH i2c: E2 08 00 7E 0D 80 0D 01 02 00 00 00 00 04 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 03 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 03 00 7E 0D 00 90 00 FF [17:48:46]RAPDU: 90 00 [17:48:46]wFMCommunicate OK [17:48:46]wFMCommunicate request_size=255 [17:48:46]MH_SAM_APDU [17:48: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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FE 4A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D8 13 01 00 35 04 06 00 27 [17:48:46]Write to MH i2c: E2 02 01 7F 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 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FE 4A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D8 13 01 00 35 04 06 00 27 00 00 75 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 03 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 03 00 7F 0D 00 90 00 00 [17:48:46]RAPDU: 90 00 [17:48:46]wFMCommunicate OK [17:48:46]wFMCommunicate request_size=10 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 0D 02 02 05 16 F5 AD DA 1C [17:48:46]Write to MH i2c: E2 0D 00 80 0D 80 0D 02 02 05 00 16 F5 AD DA 1C 00 00 BF [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 03 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 03 00 80 0D 00 90 00 01 [17:48:46]RAPDU: 90 00 [17:48:46]wFMCommunicate OK [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 0D 03 02 [17:48:46]Write to MH i2c: E2 08 00 81 0D 80 0D 03 02 00 00 00 00 09 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 0B 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 0B 00 81 0D 00 D3 9C A2 0B 69 C9 1C 05 90 00 79 [17:48:46]RAPDU: D3 9C A2 0B 69 C9 1C 05 90 00 [17:48:46]wFMCommunicate OK [17:48:46]SAM_PROTO_SignData done [17:48:46]FM_MakeSignedData done [17:48:46]CreateOFDProtocolMessage [17:48:46]wFMCommunicate request_size=4 [17:48:46]MH_SAM_APDU [17:48:46]CAPDU: 80 11 00 00 [17:48:46]Write to MH i2c: E2 08 00 82 0D 80 11 00 00 00 00 00 00 09 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:46]Read from MH i2c: E2 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 17 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: E2 17 00 82 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 5E [17:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:48:46]wFMCommunicate OK [17:48:46]CreateOFDProtocolMessage done [17:48:46]OFDSenderStorePacket 70616 [17:48:46]StoreOFDPacket docnum=70616 [17:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 CB 7C 07 01 80 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FE 4A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D8 13 01 00 35 04 06 00 27 16 F5 AD DA 1C D3 9C A2 0B 69 C9 1C 05 [17:48:46]CheckFolder [17:48:46]dirname=/storage/ofd_packets [17:48:46]CheckFolder done [17:48:46]ProducePacketName [17:48:46]name=ofd_packets/00070616 [17:48:46]NVStorageSaveData ofd_packets/00070616 [17:48:46]File name is /storage/ofd_packets/00070616 [17:48:46]Write 301 bytes [17:48:46]NVStorageSaveData done [17:48:46]OFDSenderStorePacket done [17:48:46]KKMCreateOFDPacket done [17:48:46]NVStorageSaveData kkm_last_timestamp [17:48:46]File name is /storage/kkm_last_timestamp [17:48:46]Write 4 bytes [17:48:46]NVStorageSaveData done [17:48:46]ExternCall_PrintAddStr [17:48:46]wPrintStart [17:48:46]Write to MH i2c: 01 00 00 83 0D 90 [17:48:46]Write i2c OK [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 [17:48:46]MH_I2C_Read... [17:48:46]Read from MH i2c: 01 07 00 83 0D 00 00 00 00 00 FF 0F A5 [17:48:46]RasterBufferAndPrint [17:48:46]line Счет N : (1)141068 [17:48:46]line ИÐÐ: 02508201610067 [17:48:46]line Контрольно-КаÑÑовый Чек [17:48:46]line ПРОДÐЖР[17:48:46]line ТРК (МРК, ГÐК) : 41 [17:48:46]line Товар: 2710124130 [17:48:46]line Ðи-92-К-5 [17:48:46]line 9.110 * 65.90 [17:48:46]line = 600.35 [17:48:46]line ÐДС 12% ÐСП 1% [17:48:46]line > о реализуемом товаре [17:48:46]line ИТОГО: 600.35 [17:48:46]line ÐСП 1% : 5.31 [17:48:46]line ÐДС 12% : 63.75 [17:48:46]line Ðаличными: 0.00 [17:48:46]line Безнал.: 600.35 [17:48:46]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:48:46]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:48:46]line СÐО: Общий режим [17:48:46]line Чек 48 12.08.2024 17:48 [17:48:46]line Смена: 465 ФФД: 1.0 [17:48:46]line ЗÐМ: 0300000140 [17:48:46]line РÐМ: 0000000000090913 [17:48:46]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:48:46]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:48:46]line ФМ: 0000000000874915 [17:48:46]line ФД: 70616 [17:48:46]line ФПД: 42979564575260 [17:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T174846&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70616&fm=42979564575260&tin=02508201610067®Number=0000000000090913&sum=60035 [17:48:46]written 0, free lines is 4095 [17:48:46]OFD Sender: Processing packet 70616 [packets to send 67, broken 66] [17:48:46]ProducePacketName [17:48:46]name=ofd_packets/00070616 [17:48:47]OFD Sender: To server: ‡•öpG, [17:48:47]CommunicateWithHost lk.salyk.kg:30040 [17:48:47]ConnectInit lk.salyk.kg [17:48:47]Write to MH i2c: 01 00 00 AD 0D BA [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: 01 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: 01 07 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: 01 07 00 AD 0D 00 00 00 00 00 ED 0C BA [17:48:47]RasterBufferAndPrint [17:48:47]line [17:48:47]line [17:48:47]line [17:48:47]line [17:48:47]line [17:48:47]written 0, free lines is 3315 [17:48:47]MH_Cut [17:48:47]Write to MH i2c: D1 01 00 B4 0D 01 93 [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: D1 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: D1 01 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: D1 01 00 B4 0D 00 92 [17:48:47]Write to MH i2c: 01 00 00 B5 0D C2 [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]Connected sock=10 [17:48: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 39 31 35 0F 01 00 00 CB 7C 07 01 80 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 23 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 E7 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 FE 4A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D8 13 01 00 35 04 06 00 27 16 F5 AD DA 1C D3 9C A2 0B 69 C9 1C 05 [17:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 5E 5D 47 00 87 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 39 31 35 10 04 04 00 D8 13 01 00 F4 03 04 00 EB F1 B9 66 B6 04 01 00 00 26 4B C3 7C 06 67 8D 65 [17:48:47]CommunicateWithHost err = 0 [17:48:47]CheckOFDResponse [17:48:47]1017 (14) - 77093643461234 [17:48:47]1041 (16) - 0000000000874915 [17:48:47]1040 (4) - 70616 [17:48:47]1012 (4) - 12.08.2024 11:28 [17:48:47]1206 (1) - 0 [17:48:47]OFD Sender: Remove packet 70616 [17:48:47]ProducePacketName [17:48:47]name=ofd_packets/00070616 [17:48:47]NVStorageDeleteData [17:48:47]*** Cut start [17:48:47]*** Purtial cut [17:48:47]*** Stage 1: CUTSNS_PIN = 1 [17:48:48]OFD Sender: No OFD packet to send [17:48:48]Read from MH i2c: 01 [17:48:48]MH_I2C_Read... [17:48:48]*** Stop cut motor [17:48:48]*** Cut end [17:48:48]Read from MH i2c: 01 07 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: 01 07 00 B5 0D 00 00 00 00 00 FF 0F D7 [17:48:48]process_action close_receipt done [17:48:48]requested_data is exist [17:48:48]produce_requested_data [17:48:48]requested_item fm.sn is exist - process it [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 11 00 00 [17:48:48]Write to MH i2c: E2 08 00 B6 0D 80 11 00 00 00 00 00 00 3D [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 17 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 17 00 B6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 92 [17:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:48:48]wFMCommunicate OK [17:48:48]requested_item fd.num is exist - process it [17:48:48]SAM_PROTO_GetFieldsCounters [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 13 00 00 [17:48:48]Write to MH i2c: E2 08 00 B7 0D 80 13 00 00 00 00 00 00 40 [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 62 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 62 00 B7 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D8 13 01 00 0E 04 04 00 D1 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 AE [17:48: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D8 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:48]wFMCommunicate OK [17:48:48]SAM_PROTO_GetFieldsCounters done [17:48:48]requested_item shift.num is exist - process it [17:48:48]requested_item shift.opened is exist - process it [17:48:48]req_shift_opened [17:48:48]FM_GetShiftState [17:48:48]SAM_PROTO_GetShiftState [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 13 01 00 [17:48:48]Write to MH i2c: E2 08 00 B8 0D 80 13 01 00 00 00 00 00 42 [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 0E 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 0E 00 B8 0D 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 2F [17:48:48]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:48:48]wFMCommunicate OK [17:48:48]SAM_PROTO_GetShiftState done [17:48:48]FM_GetShiftState done [17:48:48]req_shift_opened done [17:48:48]requested_item shift.open_date is exist - process it [17:48:48]req_shift_open_date [17:48:48]req_shift_open_date done [17:48:48]produce_requested_data done [17:48:48]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70616,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [17:48:48]process_action_free close_receipt [17:48:48]json_value_free [17:48:48]json_value_free done [17:48:48]process_json_proto returns [17:48:48]Send response to host [17:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70616,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [17:48:48]free response buf [17:48:48]execute_script done [17:48:48]execute_script returns [17:48:48]free content buf [17:48:48]Sock 9.Close socket [17:48:48]Sock 9.Thread stoped [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]int [17:55:53]Write to MH i2c: 01 00 00 B9 0D C6 [17:55:53]*** FLAG_PRN_KEY set [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 07 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 07 00 B9 0D 00 08 00 00 00 FF 0F E3 [17:55:53]state=0 [17:55:53]Key pressed [17:55:53]Feed [17:55:53]Write to MH i2c: D8 00 00 BA 0D 9E [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: D8 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: D8 01 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: D8 01 00 BA 0D 00 9F [17:55:53]int [17:55:53]Write to MH i2c: 01 00 00 BB 0D C8 [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 07 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 07 00 BB 0D 00 48 00 00 00 3C 00 53 [17:55:53]state=2 [17:55:53]Key pressed [17:55:53]int [17:55:53]Write to MH i2c: 01 00 00 BC 0D C9 [17:55:53]*** FLAG_PRN_KEY reset [17:55:53]Write i2c OK [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 07 00 [17:55:53]MH_I2C_Read... [17:55:53]Read from MH i2c: 01 07 00 BC 0D 00 00 00 00 00 F6 0F D5 [17:55:53]state=2 [17:55:53]Stop feed [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:15]accept exits with 7 [17:56:15]New connection [17:56:15]New thread 3066699108 created [17:56:15]Thread 3066842468 joined [17:56:15]Waiting for new connection... [17:56:15] Sock 7.Parse request [17:56:15]Sock 7.Check first char [17:56:15]Sock 7.First char is OK [17:56:15]request: POST /json_proto HTTP/1.0 [17:56:15]Method: POST [17:56:15]URL: /json_proto [17:56:15]Method is POST - this is cgi request [17:56:15]url: /json_proto [17:56:15]query_string will be loaded in cgi processing [17:56:15]execute_cgi json_proto POST (null) [17:56:15]execute_cgi path=json_proto method=POST [17:56:15]POST find Content-Length [17:56:15]Host: 172.17.58.67:8080 [17:56:15]Content-Length: 677 [17:56:15]Content-Type: application/json [17:56:15] [17:56:15]POST finish read [17:56:15]Found Content-Length = 677 [17:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:56:15]execute_script... [17:56:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:56:15]POST & json_proto [17:56:15]process_json_proto [17:56:15]json parsed OK: [17:56:15]protocol is kg_v1.0 [17:56:15]action value=close_receipt [17:56:15]process_action close_receipt [17:56:15]cmd_close_receipt [17:56:15]MH_GetDate [17:56:15]Write to MH i2c: F0 00 00 BD 0D B9 [17:56:15]Write i2c OK [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: F0 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: F0 09 00 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: F0 09 00 BD 0D 00 C1 4C BA 66 94 51 63 64 9B [17:56:15]GetLastDocTimeStamp 1723484926 [17:56:15]current date 1723485377 [17:56:15]FM_GetShiftState [17:56:15]SAM_PROTO_GetShiftState [17:56:15]wFMCommunicate request_size=4 [17:56:15]MH_SAM_APDU [17:56:15]CAPDU: 80 13 01 00 [17:56:15]Write to MH i2c: E2 08 00 BE 0D 80 13 01 00 00 00 00 00 48 [17:56:15]Write i2c OK [17:56:15]MH_I2C_Read... [17:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:15]Read from MH i2c: E2 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 0E 00 [17:56:15]MH_I2C_Read... [17:56:15]Read from MH i2c: E2 0E 00 BE 0D 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 35 [17:56:15]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:56:15]wFMCommunicate OK [17:56:15]SAM_PROTO_GetShiftState done [17:56:15]FM_GetShiftState done [17:56:15]opened in 1723423336 [17:56:15]opened+sec_in_day 1723509736 [17:56:15]quantity*price = 50018 [17:56:15]sum+1 = 50019 [17:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.18 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 49 12.08.2024 17:56 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70617 ФПД: 163576012080777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T175617&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70617&fm=163576012080777&tin=02508201610067®Number=0000000000090913&sum=50000 [17:56:17]StoreToDocumentArchive [17:56:17]shift 465 fd 70617 [17:56:17]save to /storage/0465/doc_00070617 [17:56:17]save last doc name /storage/0465/doc_00070617 to /storage/kkm_last_doc_name [17:56:17]save OK [17:56:17]Clear old archive folders... [17:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:17]tlvbuf is 010C8B10 [17:56:17]SAM_PROTO_ClearQueue [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 09 00 00 [17:56:17]Write to MH i2c: E2 08 00 CB 0D 80 09 00 00 00 00 00 00 4A [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 CB 0D 00 90 00 4C [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]SAM_PROTO_ClearQueue done [17:56:17]KKMCreateOFDPacket [17:56:17]OFDProtocolAddRootSTLVToBuf [17:56:17]FM_MakeSignedData [17:56:17]FM_MakeSignedData [17:56:17]SAM_PROTO_SignData [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 01 02 [17:56:17]Write to MH i2c: E2 08 00 CC 0D 80 0D 01 02 00 00 00 00 52 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 CC 0D 00 90 00 4D [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]wFMCommunicate request_size=255 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C1 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D9 13 01 00 35 04 06 00 94 [17:56:17]Write to MH i2c: E2 02 01 CD 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C1 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D9 13 01 00 35 04 06 00 94 00 00 81 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 CD 0D 00 90 00 4E [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]wFMCommunicate request_size=10 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 02 02 05 C5 82 18 06 89 [17:56:17]Write to MH i2c: E2 0D 00 CE 0D 80 0D 02 02 05 00 C5 82 18 06 89 00 00 4D [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 03 00 CE 0D 00 90 00 4F [17:56:17]RAPDU: 90 00 [17:56:17]wFMCommunicate OK [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 0D 03 02 [17:56:17]Write to MH i2c: E2 08 00 CF 0D 80 0D 03 02 00 00 00 00 57 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0B 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0B 00 CF 0D 00 82 6E 0A 57 DF E9 12 34 90 00 B7 [17:56:17]RAPDU: 82 6E 0A 57 DF E9 12 34 90 00 [17:56:17]wFMCommunicate OK [17:56:17]SAM_PROTO_SignData done [17:56:17]FM_MakeSignedData done [17:56:17]CreateOFDProtocolMessage [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 11 00 00 [17:56:17]Write to MH i2c: E2 08 00 D0 0D 80 11 00 00 00 00 00 00 57 [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 17 00 [17:56:17]MH_I2C_Read... [17:56:17]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 39 31 35 90 00 AC [17:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:56:17]wFMCommunicate OK [17:56:17]CreateOFDProtocolMessage done [17:56:17]OFDSenderStorePacket 70617 [17:56:17]StoreOFDPacket docnum=70617 [17:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 02 02 07 01 F4 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C1 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D9 13 01 00 35 04 06 00 94 C5 82 18 06 89 82 6E 0A 57 DF E9 12 34 [17:56:17]CheckFolder [17:56:17]dirname=/storage/ofd_packets [17:56:17]CheckFolder done [17:56:17]ProducePacketName [17:56:17]name=ofd_packets/00070617 [17:56:17]NVStorageSaveData ofd_packets/00070617 [17:56:17]File name is /storage/ofd_packets/00070617 [17:56:17]Write 301 bytes [17:56:17]NVStorageSaveData done [17:56:17]OFDSenderStorePacket done [17:56:17]KKMCreateOFDPacket done [17:56:17]NVStorageSaveData kkm_last_timestamp [17:56:17]File name is /storage/kkm_last_timestamp [17:56:17]Write 4 bytes [17:56:17]NVStorageSaveData done [17:56:17]ExternCall_PrintAddStr [17:56:17]wPrintStart [17:56:17]Write to MH i2c: 01 00 00 D1 0D DE [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 07 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: 01 07 00 D1 0D 00 00 00 00 00 FF 0F F3 [17:56:17]RasterBufferAndPrint [17:56:17]line Счет N : (1)141070 [17:56:17]line ИÐÐ: 02508201610067 [17:56:17]line Контрольно-КаÑÑовый Чек [17:56:17]line ПРОДÐЖР[17:56:17]line ТРК (МРК, ГÐК) : 31 [17:56:17]line Товар: 2710124130 [17:56:17]line Ðи-92-К-5 [17:56:17]line 7.590 * 65.90 [17:56:17]line = 500.18 [17:56:17]line ÐДС 12% ÐСП 1% [17:56:17]line > о реализуемом товаре [17:56:17]line ОКРУГЛЕÐИЕ: -0.18 [17:56:17]line ИТОГО: 500.00 [17:56:17]line ВнеÑено: 500.00 [17:56:17]line СДÐЧÐ: 0.00 [17:56:17]line ÐСП 1% : 4.43 [17:56:17]line ÐДС 12% : 53.12 [17:56:17]line Ðаличными: 500.00 [17:56:17]line Безнал.: 0.00 [17:56:17]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:56:17]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:56:17]line СÐО: Общий режим [17:56:17]line Чек 49 12.08.2024 17:56 [17:56:17]line Смена: 465 ФФД: 1.0 [17:56:17]line ЗÐМ: 0300000140 [17:56:17]line РÐМ: 0000000000090913 [17:56:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:56:17]line ФМ: 0000000000874915 [17:56:17]line ФД: 70617 [17:56:17]line ФПД: 163576012080777 [17:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T175617&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70617&fm=163576012080777&tin=02508201610067®Number=0000000000090913&sum=50000 [17:56:17]OFD Sender: Processing packet 70617 [packets to send 67, broken 66] [17:56:17]ProducePacketName [17:56:17]name=ofd_packets/00070617 [17:56:17]OFD Sender: To server: ‡•öpG, [17:56:17]CommunicateWithHost lk.salyk.kg:30040 [17:56:17]ConnectInit lk.salyk.kg [17:56:17]written 0, free lines is 4095 [17:56:18]Connected sock=9 [17:56: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 39 31 35 0F 01 00 00 02 02 07 01 F4 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 C1 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D9 13 01 00 35 04 06 00 94 C5 82 18 06 89 82 6E 0A 57 DF E9 12 34 [17:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 4A 13 47 00 B6 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 D9 13 01 00 F4 03 04 00 AE F3 B9 66 B6 04 01 00 00 6A 19 8D 12 16 9E E7 DD [17:56:18]CommunicateWithHost err = 0 [17:56:18]CheckOFDResponse [17:56:18]1017 (14) - 77093643461234 [17:56:18]1041 (16) - 0000000000874915 [17:56:18]1040 (4) - 70617 [17:56:18]1012 (4) - 12.08.2024 11:36 [17:56:18]1206 (1) - 0 [17:56:18]OFD Sender: Remove packet 70617 [17:56:18]ProducePacketName [17:56:18]name=ofd_packets/00070617 [17:56:18]NVStorageDeleteData [17:56:18]Write to MH i2c: 01 00 00 FC 0D 09 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: 01 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: 01 07 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: 01 07 00 FC 0D 00 00 00 00 00 ED 0C 09 [17:56:18]RasterBufferAndPrint [17:56:18]line [17:56:18]line [17:56:18]line [17:56:18]line [17:56:18]line [17:56:18]written 0, free lines is 3318 [17:56:18]MH_Cut [17:56:18]Write to MH i2c: D1 01 00 03 0E 01 E3 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: D1 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: D1 01 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: D1 01 00 03 0E 00 E2 [17:56:18]Write to MH i2c: 01 00 00 04 0E 12 [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]OFD Sender: No OFD packet to send [17:56:19]*** Cut start [17:56:19]*** Purtial cut [17:56:19]*** CUTSNS_PIN = 0 [17:56:19]*** Stage 1: CUTSNS_PIN = 1 [17:56:21]Read from MH i2c: 01 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: 01 07 00 [17:56:21]MH_I2C_Read... [17:56:21]*** Stop cut motor [17:56:21]*** Cut end [17:56:21]Read from MH i2c: 01 07 00 04 0E 00 00 00 00 00 FF 0F 27 [17:56:21]process_action close_receipt done [17:56:21]requested_data is exist [17:56:21]produce_requested_data [17:56:21]requested_item fm.sn is exist - process it [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 11 00 00 [17:56:21]Write to MH i2c: E2 08 00 05 0E 80 11 00 00 00 00 00 00 8D [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 17 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 17 00 05 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E2 [17:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:56:21]wFMCommunicate OK [17:56:21]requested_item fd.num is exist - process it [17:56:21]SAM_PROTO_GetFieldsCounters [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 13 00 00 [17:56:21]Write to MH i2c: E2 08 00 06 0E 80 13 00 00 00 00 00 00 90 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 62 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 62 00 06 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D9 13 01 00 0E 04 04 00 D1 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 02 [17:56: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 D9 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:21]wFMCommunicate OK [17:56:21]SAM_PROTO_GetFieldsCounters done [17:56:21]requested_item shift.num is exist - process it [17:56:21]requested_item shift.opened is exist - process it [17:56:21]req_shift_opened [17:56:21]FM_GetShiftState [17:56:21]SAM_PROTO_GetShiftState [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 13 01 00 [17:56:21]Write to MH i2c: E2 08 00 07 0E 80 13 01 00 00 00 00 00 92 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:21]Read from MH i2c: E2 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 0E 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: E2 0E 00 07 0E 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 7F [17:56:21]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:56:21]wFMCommunicate OK [17:56:21]SAM_PROTO_GetShiftState done [17:56:21]FM_GetShiftState done [17:56:21]req_shift_opened done [17:56:21]requested_item shift.open_date is exist - process it [17:56:21]req_shift_open_date [17:56:21]req_shift_open_date done [17:56:21]produce_requested_data done [17:56:21]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70617,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [17:56:21]process_action_free close_receipt [17:56:21]json_value_free [17:56:21]json_value_free done [17:56:21]process_json_proto returns [17:56:21]Send response to host [17:56:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70617,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [17:56:21]free response buf [17:56:21]execute_script done [17:56:21]execute_script returns [17:56:21]free content buf [17:56:21]Sock 7.Close socket [17:56:21]Sock 7.Thread stoped [17:56:23]OFD Sender: No OFD packet to send [17:56:24]accept exits with 10 [17:56:24]New connection [17:56:24]New thread 3066842468 created [17:56:24]Thread 3066699108 joined [17:56:24]Waiting for new connection... [17:56:24] Sock 10.Parse request [17:56:24]Sock 10.Check first char [17:56:24]Sock 10.First char is OK [17:56:24]request: POST /json_proto HTTP/1.0 [17:56:24]Method: POST [17:56:24]URL: /json_proto [17:56:24]Method is POST - this is cgi request [17:56:24]url: /json_proto [17:56:24]query_string will be loaded in cgi processing [17:56:24]execute_cgi json_proto POST (null) [17:56:24]execute_cgi path=json_proto method=POST [17:56:24]POST find Content-Length [17:56:24]Host: 172.17.58.67:8080 [17:56:24]Content-Length: 733 [17:56:24]Content-Type: application/json [17:56:24] [17:56:24]POST finish read [17:56:24]Found Content-Length = 733 [17:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70617, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:56:24]execute_script... [17:56:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 70617, "base_FM": "0000000000874915", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "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:56:24]POST & json_proto [17:56:24]process_json_proto [17:56:24]json parsed OK: [17:56:24]protocol is kg_v1.0 [17:56:24]action value=close_receipt [17:56:24]process_action close_receipt [17:56:24]cmd_close_receipt [17:56:24]MH_GetDate [17:56:24]Write to MH i2c: F0 00 00 08 0E 05 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: F0 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: F0 09 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: F0 09 00 08 0E 00 CA 4C BA 66 94 51 63 64 F0 [17:56:24]GetLastDocTimeStamp 1723485377 [17:56:24]current date 1723485386 [17:56:24]FM_GetShiftState [17:56:24]SAM_PROTO_GetShiftState [17:56:24]wFMCommunicate request_size=4 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 13 01 00 [17:56:24]Write to MH i2c: E2 08 00 09 0E 80 13 01 00 00 00 00 00 94 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 0E 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 0E 00 09 0E 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 81 [17:56:24]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:56:24]wFMCommunicate OK [17:56:24]SAM_PROTO_GetShiftState done [17:56:24]FM_GetShiftState done [17:56:24]opened in 1723423336 [17:56:24]opened+sec_in_day 1723509736 [17:56:24]quantity*price = 50018 [17:56:24]sum+1 = 50019 [17:56:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.18 ИТОГО: 500.00 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 50 12.08.2024 17:56 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФД оÑн.: 70617 ФМ оÑн.: 0000000000874915 ФМ: 0000000000874915 ФД: 70618 ФПД: 154782039305024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T175626&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70618&fm=154782039305024&tin=02508201610067®Number=0000000000090913&sum=50000 [17:56:26]StoreToDocumentArchive [17:56:26]shift 465 fd 70618 [17:56:26]save to /storage/0465/doc_00070618 [17:56:26]save last doc name /storage/0465/doc_00070618 to /storage/kkm_last_doc_name [17:56:26]save OK [17:56:26]Clear old archive folders... [17:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:56:26]tlvbuf is 010BFFD0 [17:56:26]SAM_PROTO_ClearQueue [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 09 00 00 [17:56:26]Write to MH i2c: E2 08 00 18 0E 80 09 00 00 00 00 00 00 98 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 18 0E 00 90 00 9A [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]SAM_PROTO_ClearQueue done [17:56:26]KKMCreateOFDPacket [17:56:26]OFDProtocolAddRootSTLVToBuf [17:56:26]FM_MakeSignedData [17:56:26]FM_MakeSignedData [17:56:26]SAM_PROTO_SignData [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 0D 01 02 [17:56:26]Write to MH i2c: E2 08 00 19 0E 80 0D 01 02 00 00 00 00 A0 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 19 0E 00 90 00 9B [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]wFMCommunicate request_size=255 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 CA 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 D9 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 [17:56:26]Write to MH i2c: E2 02 01 1A 0E 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 CA 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 D9 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 00 00 A7 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 1A 0E 00 90 00 9C [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]wFMCommunicate request_size=38 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DA 13 01 00 35 04 06 00 8C C6 00 78 6B 40 [17:56:26]Write to MH i2c: E2 29 00 1B 0E 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DA 13 01 00 35 04 06 00 8C C6 00 78 6B 40 00 00 91 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 1B 0E 00 90 00 9D [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 0D 03 02 [17:56:26]Write to MH i2c: E2 08 00 1C 0E 80 0D 03 02 00 00 00 00 A5 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 0B 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 0B 00 1C 0E 00 15 33 89 04 5D 82 9E 5B 90 00 53 [17:56:26]RAPDU: 15 33 89 04 5D 82 9E 5B 90 00 [17:56:26]wFMCommunicate OK [17:56:26]SAM_PROTO_SignData done [17:56:26]FM_MakeSignedData done [17:56:26]CreateOFDProtocolMessage [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 11 00 00 [17:56:26]Write to MH i2c: E2 08 00 1D 0E 80 11 00 00 00 00 00 00 A5 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 17 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 17 00 1D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FA [17:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:56:26]wFMCommunicate OK [17:56:26]CreateOFDProtocolMessage done [17:56:26]OFDSenderStorePacket 70618 [17:56:26]StoreOFDPacket docnum=70618 [17:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 2B 01 00 00 DA D3 23 01 E0 DE 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 CA 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 D9 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DA 13 01 00 35 04 06 00 8C C6 00 78 6B 40 15 33 89 04 5D 82 9E 5B [17:56:26]CheckFolder [17:56:26]dirname=/storage/ofd_packets [17:56:26]CheckFolder done [17:56:26]ProducePacketName [17:56:26]name=ofd_packets/00070618 [17:56:26]NVStorageSaveData ofd_packets/00070618 [17:56:26]File name is /storage/ofd_packets/00070618 [17:56:26]Write 329 bytes [17:56:26]NVStorageSaveData done [17:56:26]OFDSenderStorePacket done [17:56:26]KKMCreateOFDPacket done [17:56:26]NVStorageSaveData kkm_last_timestamp [17:56:26]File name is /storage/kkm_last_timestamp [17:56:26]Write 4 bytes [17:56:26]NVStorageSaveData done [17:56:26]ExternCall_PrintAddStr [17:56:26]wPrintStart [17:56:26]Write to MH i2c: 01 00 00 1E 0E 2C [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 07 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 07 00 1E 0E 00 00 00 00 00 FF 0F 41 [17:56:26]RasterBufferAndPrint [17:56:26]line Счет N : (1)141070 [17:56:26]line ИÐÐ: 02508201610067 [17:56:26]line Контрольно-КаÑÑовый Чек [17:56:26]line ВОЗВРÐТ ПРОДÐЖИ [17:56:26]line ТРК (МРК, ГÐК) : 31 [17:56:26]line Товар: 2710124130 [17:56:26]line Ðи-92-К-5 [17:56:26]line 7.590 * 65.90 [17:56:26]line = 500.18 [17:56:26]line ÐДС 12% ÐСП 1% [17:56:26]line > о реализуемом товаре [17:56:26]line ОКРУГЛЕÐИЕ: -0.18 [17:56:26]line ИТОГО: 500.00 [17:56:26]line ÐСП 1% : 4.43 [17:56:26]line ÐДС 12% : 53.12 [17:56:26]line Ðаличными: 500.00 [17:56:26]line Безнал.: 0.00 [17:56:26]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:56:26]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:56:26]line СÐО: Общий режим [17:56:26]line Чек 50 12.08.2024 17:56 [17:56:26]line Смена: 465 ФФД: 1.0 [17:56:26]line ЗÐМ: 0300000140 [17:56:26]line РÐМ: 0000000000090913 [17:56:26]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:56:26]line ФД оÑн.: 70617 [17:56:26]line ФМ оÑн.: 0000000000874915 [17:56:26]line ФМ: 0000000000874915 [17:56:26]line ФД: 70618 [17:56:26]line ФПД: 154782039305024 [17:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T175626&type=2&operation_type=1&fn_number=0000000000874915&fd_number=70618&fm=154782039305024&tin=02508201610067®Number=0000000000090913&sum=50000 [17:56:26]written 0, free lines is 4095 [17:56:26]OFD Sender: Processing packet 70618 [packets to send 67, broken 66] [17:56:26]ProducePacketName [17:56:26]name=ofd_packets/00070618 [17:56:26]OFD Sender: To server: ‡•öpG, [17:56:26]CommunicateWithHost lk.salyk.kg:30040 [17:56:26]ConnectInit lk.salyk.kg [17:56:26]Connected sock=9 [17:56: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 39 31 35 2B 01 00 00 DA D3 23 01 E0 DE 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 CA 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 27 04 04 00 D9 13 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DA 13 01 00 35 04 06 00 8C C6 00 78 6B 40 15 33 89 04 5D 82 9E 5B [17:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 D6 5E 47 00 21 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 39 31 35 10 04 04 00 DA 13 01 00 F4 03 04 00 B6 F3 B9 66 B6 04 01 00 00 72 47 8B FC 34 07 E8 C2 [17:56:27]CommunicateWithHost err = 0 [17:56:27]CheckOFDResponse [17:56:27]1017 (14) - 77093643461234 [17:56:27]1041 (16) - 0000000000874915 [17:56:27]1040 (4) - 70618 [17:56:27]1012 (4) - 12.08.2024 11:36 [17:56:27]1206 (1) - 0 [17:56:27]OFD Sender: Remove packet 70618 [17:56:27]ProducePacketName [17:56:27]name=ofd_packets/00070618 [17:56:27]NVStorageDeleteData [17:56:27]Write to MH i2c: 01 00 00 49 0E 57 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 49 0E 00 00 00 00 00 F9 0C 63 [17:56:27]RasterBufferAndPrint [17:56:27]line [17:56:27]line [17:56:27]line [17:56:27]line [17:56:27]line [17:56:27]written 0, free lines is 3331 [17:56:27]MH_Cut [17:56:27]Write to MH i2c: D1 01 00 50 0E 01 30 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D1 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D1 01 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D1 01 00 50 0E 00 2F [17:56:27]Write to MH i2c: 01 00 00 51 0E 5F [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]OFD Sender: No OFD packet to send [17:56:27]*** Cut start [17:56:27]*** Purtial cut [17:56:27]*** Stage 1: CUTSNS_PIN = 1 [17:56:28]Read from MH i2c: 01 [17:56:28]MH_I2C_Read... [17:56:28]*** Stop cut motor [17:56:28]*** Cut end [17:56:28]Read from MH i2c: 01 07 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: 01 07 00 51 0E 00 00 00 00 00 FF 0F 74 [17:56:28]process_action close_receipt done [17:56:28]requested_data is exist [17:56:28]produce_requested_data [17:56:28]requested_item fm.sn is exist - process it [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 11 00 00 [17:56:28]Write to MH i2c: E2 08 00 52 0E 80 11 00 00 00 00 00 00 DA [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 17 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 17 00 52 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 2F [17:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:56:28]wFMCommunicate OK [17:56:28]requested_item fd.num is exist - process it [17:56:28]SAM_PROTO_GetFieldsCounters [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 13 00 00 [17:56:28]Write to MH i2c: E2 08 00 53 0E 80 13 00 00 00 00 00 00 DD [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 62 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 62 00 53 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DA 13 01 00 0E 04 04 00 D1 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 53 [17:56: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DA 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:28]wFMCommunicate OK [17:56:28]SAM_PROTO_GetFieldsCounters done [17:56:28]requested_item shift.num is exist - process it [17:56:28]requested_item shift.opened is exist - process it [17:56:28]req_shift_opened [17:56:28]FM_GetShiftState [17:56:28]SAM_PROTO_GetShiftState [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 13 01 00 [17:56:28]Write to MH i2c: E2 08 00 54 0E 80 13 01 00 00 00 00 00 DF [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 0E 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 0E 00 54 0E 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 CC [17:56:28]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:56:28]wFMCommunicate OK [17:56:28]SAM_PROTO_GetShiftState done [17:56:28]FM_GetShiftState done [17:56:28]req_shift_opened done [17:56:28]requested_item shift.open_date is exist - process it [17:56:28]req_shift_open_date [17:56:28]req_shift_open_date done [17:56:28]produce_requested_data done [17:56:28]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70618,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [17:56:28]process_action_free close_receipt [17:56:28]json_value_free [17:56:28]json_value_free done [17:56:28]process_json_proto returns [17:56:28]Send response to host [17:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70618,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [17:56:28]free response buf [17:56:28]execute_script done [17:56:28]execute_script returns [17:56:28]free content buf [17:56:28]Sock 10.Close socket [17:56:28]Sock 10.Thread stoped [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:01]accept exits with 7 [17:57:01]New connection [17:57:01]New thread 3066699108 created [17:57:01]Thread 3066842468 joined [17:57:01]Waiting for new connection... [17:57:01] Sock 7.Parse request [17:57:01]Sock 7.Check first char [17:57:01]Sock 7.First char is OK [17:57:01]request: POST /json_proto HTTP/1.0 [17:57:01]Method: POST [17:57:01]URL: /json_proto [17:57:01]Method is POST - this is cgi request [17:57:01]url: /json_proto [17:57:01]query_string will be loaded in cgi processing [17:57:01]execute_cgi json_proto POST (null) [17:57:01]execute_cgi path=json_proto method=POST [17:57:01]POST find Content-Length [17:57:01]Host: 172.17.58.67:8080 [17:57:01]Content-Length: 805 [17:57:01]Content-Type: application/json [17:57:01] [17:57:01]POST finish read [17:57:01]Found Content-Length = 805 [17:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:01]execute_script... [17:57: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)141069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:01]POST & json_proto [17:57:01]process_json_proto [17:57:01]json parsed OK: [17:57:01]protocol is kg_v1.0 [17:57:01]action value=close_receipt [17:57:01]process_action close_receipt [17:57:01]cmd_close_receipt [17:57:01]MH_GetDate [17:57:01]Write to MH i2c: F0 00 00 55 0E 52 [17:57:01]Write i2c OK [17:57:01]MH_I2C_Read... [17:57:01]Read from MH i2c: F0 [17:57:01]MH_I2C_Read... [17:57:01]Read from MH i2c: F0 09 00 [17:57:01]MH_I2C_Read... [17:57:01]Read from MH i2c: F0 09 00 55 0E 00 EF 4C BA 66 94 51 63 64 62 [17:57:01]GetLastDocTimeStamp 1723485386 [17:57:01]current date 1723485423 [17:57:01]FM_GetShiftState [17:57:01]SAM_PROTO_GetShiftState [17:57:01]wFMCommunicate request_size=4 [17:57:01]MH_SAM_APDU [17:57:01]CAPDU: 80 13 01 00 [17:57:01]Write to MH i2c: E2 08 00 56 0E 80 13 01 00 00 00 00 00 E1 [17:57:01]Write i2c OK [17:57:01]MH_I2C_Read... [17:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:01]Read from MH i2c: E2 [17:57:01]MH_I2C_Read... [17:57:01]Read from MH i2c: E2 0E 00 [17:57:01]MH_I2C_Read... [17:57:01]Read from MH i2c: E2 0E 00 56 0E 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 CE [17:57:01]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:57:01]wFMCommunicate OK [17:57:01]SAM_PROTO_GetShiftState done [17:57:01]FM_GetShiftState done [17:57:01]opened in 1723423336 [17:57:01]opened+sec_in_day 1723509736 [17:57:01]quantity*price = 50018 [17:57:01]sum+1 = 50019 [17:57:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 51 12.08.2024 17:57 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70619 ФПД: 81806869409694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T175703&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70619&fm=81806869409694&tin=02508201610067®Number=0000000000090913&sum=50018 [17:57:02]StoreToDocumentArchive [17:57:02]shift 465 fd 70619 [17:57:02]save to /storage/0465/doc_00070619 [17:57:02]save last doc name /storage/0465/doc_00070619 to /storage/kkm_last_doc_name [17:57:02]save OK [17:57:02]Clear old archive folders... [17:57:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:02]tlvbuf is 0109E100 [17:57:02]SAM_PROTO_ClearQueue [17:57:02]wFMCommunicate request_size=4 [17:57:02]MH_SAM_APDU [17:57:02]CAPDU: 80 09 00 00 [17:57:02]Write to MH i2c: E2 08 00 63 0E 80 09 00 00 00 00 00 00 E3 [17:57:02]Write i2c OK [17:57:02]MH_I2C_Read... [17:57:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:02]Read from MH i2c: E2 [17:57:02]MH_I2C_Read... [17:57:02]Read from MH i2c: E2 03 00 [17:57:02]MH_I2C_Read... [17:57:02]Read from MH i2c: E2 03 00 63 0E 00 90 00 E5 [17:57:02]RAPDU: 90 00 [17:57:02]wFMCommunicate OK [17:57:02]SAM_PROTO_ClearQueue done [17:57:02]KKMCreateOFDPacket [17:57:02]OFDProtocolAddRootSTLVToBuf [17:57:02]FM_MakeSignedData [17:57:02]FM_MakeSignedData [17:57:02]SAM_PROTO_SignData [17:57:02]wFMCommunicate request_size=4 [17:57:02]MH_SAM_APDU [17:57:02]CAPDU: 80 0D 01 02 [17:57:02]Write to MH i2c: E2 08 00 64 0E 80 0D 01 02 00 00 00 00 EB [17:57:02]Write i2c OK [17:57:02]MH_I2C_Read... [17:57:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:02]Read from MH i2c: E2 [17:57:02]MH_I2C_Read... [17:57:02]Read from MH i2c: E2 03 00 [17:57:02]MH_I2C_Read... [17:57:02]Read from MH i2c: E2 03 00 64 0E 00 90 00 E6 [17:57:02]RAPDU: 90 00 [17:57:02]wFMCommunicate OK [17:57:02]wFMCommunicate request_size=255 [17:57:02]MH_SAM_APDU [17:57: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 EF 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DB 13 01 00 35 04 06 00 4A [17:57:02]Write to MH i2c: E2 02 01 65 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 EF 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DB 13 01 00 35 04 06 00 4A 00 00 26 [17:57:02]Write i2c OK [17:57:02]MH_I2C_Read... [17:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:03]Read from MH i2c: E2 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: E2 03 00 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: E2 03 00 65 0E 00 90 00 E7 [17:57:03]RAPDU: 90 00 [17:57:03]wFMCommunicate OK [17:57:03]wFMCommunicate request_size=10 [17:57:03]MH_SAM_APDU [17:57:03]CAPDU: 80 0D 02 02 05 67 25 64 2F 9E [17:57:03]Write to MH i2c: E2 0D 00 66 0E 80 0D 02 02 05 00 67 25 64 2F 9E 00 00 B5 [17:57:03]Write i2c OK [17:57:03]MH_I2C_Read... [17:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:03]Read from MH i2c: E2 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: E2 03 00 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: E2 03 00 66 0E 00 90 00 E8 [17:57:03]RAPDU: 90 00 [17:57:03]wFMCommunicate OK [17:57:03]wFMCommunicate request_size=4 [17:57:03]MH_SAM_APDU [17:57:03]CAPDU: 80 0D 03 02 [17:57:03]Write to MH i2c: E2 08 00 67 0E 80 0D 03 02 00 00 00 00 F0 [17:57:03]Write i2c OK [17:57:03]MH_I2C_Read... [17:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:03]Read from MH i2c: E2 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: E2 0B 00 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: E2 0B 00 67 0E 00 DD 0C FE E9 86 39 20 8E 90 00 2E [17:57:03]RAPDU: DD 0C FE E9 86 39 20 8E 90 00 [17:57:03]wFMCommunicate OK [17:57:03]SAM_PROTO_SignData done [17:57:03]FM_MakeSignedData done [17:57:03]CreateOFDProtocolMessage [17:57:03]wFMCommunicate request_size=4 [17:57:03]MH_SAM_APDU [17:57:03]CAPDU: 80 11 00 00 [17:57:03]Write to MH i2c: E2 08 00 68 0E 80 11 00 00 00 00 00 00 F0 [17:57:03]Write i2c OK [17:57:03]MH_I2C_Read... [17:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:03]Read from MH i2c: E2 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: E2 17 00 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: E2 17 00 68 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 45 [17:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:57:03]wFMCommunicate OK [17:57:03]CreateOFDProtocolMessage done [17:57:03]OFDSenderStorePacket 70619 [17:57:03]StoreOFDPacket docnum=70619 [17:57:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 B0 10 07 01 BB 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 EF 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DB 13 01 00 35 04 06 00 4A 67 25 64 2F 9E DD 0C FE E9 86 39 20 8E [17:57:03]CheckFolder [17:57:03]dirname=/storage/ofd_packets [17:57:03]CheckFolder done [17:57:03]ProducePacketName [17:57:03]name=ofd_packets/00070619 [17:57:03]NVStorageSaveData ofd_packets/00070619 [17:57:03]File name is /storage/ofd_packets/00070619 [17:57:03]Write 301 bytes [17:57:03]NVStorageSaveData done [17:57:03]OFDSenderStorePacket done [17:57:03]KKMCreateOFDPacket done [17:57:03]NVStorageSaveData kkm_last_timestamp [17:57:03]File name is /storage/kkm_last_timestamp [17:57:03]Write 4 bytes [17:57:03]NVStorageSaveData done [17:57:03]ExternCall_PrintAddStr [17:57:03]wPrintStart [17:57:03]Write to MH i2c: 01 00 00 69 0E 77 [17:57:03]Write i2c OK [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: 01 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: 01 07 00 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: 01 07 00 69 0E 00 00 00 00 00 FF 0F 8C [17:57:03]RasterBufferAndPrint [17:57:03]line Счет N : (1)141069 [17:57:03]line ИÐÐ: 02508201610067 [17:57:03]line Контрольно-КаÑÑовый Чек [17:57:03]line ПРОДÐЖР[17:57:03]line ТРК (МРК, ГÐК) : 41 [17:57:03]line Товар: 2710124130 [17:57:03]line Ðи-92-К-5 [17:57:03]line 7.590 * 65.90 [17:57:03]line = 500.18 [17:57:03]line ÐДС 12% ÐСП 1% [17:57:03]line > о реализуемом товаре [17:57:03]line ИТОГО: 500.18 [17:57:03]line ÐСП 1% : 4.43 [17:57:03]line ÐДС 12% : 53.12 [17:57:03]line Ðаличными: 0.00 [17:57:03]line Безнал.: 500.18 [17:57:03]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:57:03]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:57:03]line СÐО: Общий режим [17:57:03]line Чек 51 12.08.2024 17:57 [17:57:03]line Смена: 465 ФФД: 1.0 [17:57:03]line ЗÐМ: 0300000140 [17:57:03]line РÐМ: 0000000000090913 [17:57:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:57:03]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:57:03]line ФМ: 0000000000874915 [17:57:03]line ФД: 70619 [17:57:03]line ФПД: 81806869409694 [17:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T175703&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70619&fm=81806869409694&tin=02508201610067®Number=0000000000090913&sum=50018 [17:57:03]written 0, free lines is 4095 [17:57:03]OFD Sender: Processing packet 70619 [packets to send 67, broken 66] [17:57:03]ProducePacketName [17:57:03]name=ofd_packets/00070619 [17:57:03]OFD Sender: To server: ‡•öpG, [17:57:03]CommunicateWithHost lk.salyk.kg:30040 [17:57:03]ConnectInit lk.salyk.kg [17:57:03]Connected sock=11 [17:57: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 39 31 35 0F 01 00 00 B0 10 07 01 BB 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 EF 4C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DB 13 01 00 35 04 06 00 4A 67 25 64 2F 9E DD 0C FE E9 86 39 20 8E [17:57:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 BD 56 47 00 72 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DB 13 01 00 F4 03 04 00 DB F3 B9 66 B6 04 01 00 00 A3 D1 1C B5 5C FC 2B 44 [17:57:03]CommunicateWithHost err = 0 [17:57:03]CheckOFDResponse [17:57:03]1017 (14) - 77093643461234 [17:57:03]1041 (16) - 0000000000874915 [17:57:03]1040 (4) - 70619 [17:57:03]1012 (4) - 12.08.2024 11:36 [17:57:03]1206 (1) - 0 [17:57:03]OFD Sender: Remove packet 70619 [17:57:03]ProducePacketName [17:57:03]name=ofd_packets/00070619 [17:57:03]NVStorageDeleteData [17:57:03]Write to MH i2c: 01 00 00 93 0E A1 [17:57:03]Write i2c OK [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: 01 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: 01 07 00 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: 01 07 00 93 0E 00 00 00 00 00 FB 0C AF [17:57:03]RasterBufferAndPrint [17:57:03]line [17:57:03]line [17:57:03]line [17:57:03]line [17:57:03]line [17:57:03]written 0, free lines is 3329 [17:57:03]MH_Cut [17:57:03]Write to MH i2c: D1 01 00 9A 0E 01 7A [17:57:03]Write i2c OK [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: D1 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: D1 01 00 [17:57:03]MH_I2C_Read... [17:57:03]Read from MH i2c: D1 01 00 9A 0E 00 79 [17:57:03]Write to MH i2c: 01 00 00 9B 0E A9 [17:57:03]Write i2c OK [17:57:03]MH_I2C_Read... [17:57:04]OFD Sender: No OFD packet to send [17:57:04]*** Cut start [17:57:04]*** Purtial cut [17:57:04]*** CUTSNS_PIN = 0 [17:57:04]*** Stage 1: CUTSNS_PIN = 1 [17:57:06]Read from MH i2c: 01 [17:57:06]MH_I2C_Read... [17:57:06]*** Stop cut motor [17:57:06]*** Cut end [17:57:06]Read from MH i2c: 01 07 00 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: 01 07 00 9B 0E 00 00 00 00 00 FF 0F BE [17:57:06]process_action close_receipt done [17:57:06]requested_data is exist [17:57:06]produce_requested_data [17:57:06]requested_item fm.sn is exist - process it [17:57:06]wFMCommunicate request_size=4 [17:57:06]MH_SAM_APDU [17:57:06]CAPDU: 80 11 00 00 [17:57:06]Write to MH i2c: E2 08 00 9C 0E 80 11 00 00 00 00 00 00 24 [17:57:06]Write i2c OK [17:57:06]MH_I2C_Read... [17:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:06]Read from MH i2c: E2 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 17 00 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 17 00 9C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 79 [17:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:57:06]wFMCommunicate OK [17:57:06]requested_item fd.num is exist - process it [17:57:06]SAM_PROTO_GetFieldsCounters [17:57:06]wFMCommunicate request_size=4 [17:57:06]MH_SAM_APDU [17:57:06]CAPDU: 80 13 00 00 [17:57:06]Write to MH i2c: E2 08 00 9D 0E 80 13 00 00 00 00 00 00 27 [17:57:06]Write i2c OK [17:57:06]MH_I2C_Read... [17:57:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:06]Read from MH i2c: E2 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 62 00 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 62 00 9D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DB 13 01 00 0E 04 04 00 D1 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 A1 [17:57: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DB 13 01 00 0E 04 04 00 D1 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 [17:57:06]wFMCommunicate OK [17:57:06]SAM_PROTO_GetFieldsCounters done [17:57:06]requested_item shift.num is exist - process it [17:57:06]requested_item shift.opened is exist - process it [17:57:06]req_shift_opened [17:57:06]FM_GetShiftState [17:57:06]SAM_PROTO_GetShiftState [17:57:06]wFMCommunicate request_size=4 [17:57:06]MH_SAM_APDU [17:57:06]CAPDU: 80 13 01 00 [17:57:06]Write to MH i2c: E2 08 00 9E 0E 80 13 01 00 00 00 00 00 29 [17:57:06]Write i2c OK [17:57:06]MH_I2C_Read... [17:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:06]Read from MH i2c: E2 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 0E 00 [17:57:06]MH_I2C_Read... [17:57:06]Read from MH i2c: E2 0E 00 9E 0E 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 16 [17:57:06]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:57:06]wFMCommunicate OK [17:57:06]SAM_PROTO_GetShiftState done [17:57:06]FM_GetShiftState done [17:57:06]req_shift_opened done [17:57:06]requested_item shift.open_date is exist - process it [17:57:06]req_shift_open_date [17:57:06]req_shift_open_date done [17:57:06]produce_requested_data done [17:57:06]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70619,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [17:57:06]process_action_free close_receipt [17:57:06]json_value_free [17:57:06]json_value_free done [17:57:06]process_json_proto returns [17:57:06]Send response to host [17:57:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70619,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [17:57:06]free response buf [17:57:06]execute_script done [17:57:06]execute_script returns [17:57:06]free content buf [17:57:06]Sock 7.Close socket [17:57:06]Sock 7.Thread stoped [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:27]accept exits with 9 [17:59:27]New connection [17:59:27]New thread 3066842468 created [17:59:27]Thread 3066699108 joined [17:59:27]Waiting for new connection... [17:59:27] Sock 9.Parse request [17:59:27]Sock 9.Check first char [17:59:27]Sock 9.First char is OK [17:59:27]request: POST /json_proto HTTP/1.0 [17:59:27]Method: POST [17:59:27]URL: /json_proto [17:59:27]Method is POST - this is cgi request [17:59:27]url: /json_proto [17:59:27]query_string will be loaded in cgi processing [17:59:27]execute_cgi json_proto POST (null) [17:59:27]execute_cgi path=json_proto method=POST [17:59:27]POST find Content-Length [17:59:27]Host: 172.17.58.67:8080 [17:59:27]Content-Length: 805 [17:59:27]Content-Type: application/json [17:59:27] [17:59:27]POST finish read [17:59:27]Found Content-Length = 805 [17:59:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:27]execute_script... [17:59: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)141071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 4.560, "sum" : 300.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:27]POST & json_proto [17:59:27]process_json_proto [17:59:27]json parsed OK: [17:59:27]protocol is kg_v1.0 [17:59:27]action value=close_receipt [17:59:27]process_action close_receipt [17:59:27]cmd_close_receipt [17:59:27]MH_GetDate [17:59:27]Write to MH i2c: F0 00 00 9F 0E 9C [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: F0 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: F0 09 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: F0 09 00 9F 0E 00 80 4D BA 66 94 51 63 64 3E [17:59:27]GetLastDocTimeStamp 1723485423 [17:59:27]current date 1723485568 [17:59:27]FM_GetShiftState [17:59:27]SAM_PROTO_GetShiftState [17:59:27]wFMCommunicate request_size=4 [17:59:27]MH_SAM_APDU [17:59:27]CAPDU: 80 13 01 00 [17:59:27]Write to MH i2c: E2 08 00 A0 0E 80 13 01 00 00 00 00 00 2B [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:27]Read from MH i2c: E2 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 0E 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 0E 00 A0 0E 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 18 [17:59:27]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:59:27]wFMCommunicate OK [17:59:27]SAM_PROTO_GetShiftState done [17:59:27]FM_GetShiftState done [17:59:27]opened in 1723423336 [17:59:27]opened+sec_in_day 1723509736 [17:59:27]quantity*price = 30050 [17:59:27]sum+1 = 30051 [17:59:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.50 ÐСП 1% : 2.66 ÐДС 12% : 31.91 Ðаличными: 0.00 Безнал.: 300.50 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 52 12.08.2024 17:59 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70620 ФПД: 277123476877615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T175928&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70620&fm=277123476877615&tin=02508201610067®Number=0000000000090913&sum=30050 [17:59:28]StoreToDocumentArchive [17:59:28]shift 465 fd 70620 [17:59:28]save to /storage/0465/doc_00070620 [17:59:28]save last doc name /storage/0465/doc_00070620 to /storage/kkm_last_doc_name [17:59:28]save OK [17:59:28]Clear old archive folders... [17:59:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:59:28]tlvbuf is 0109CD80 [17:59:28]SAM_PROTO_ClearQueue [17:59:28]wFMCommunicate request_size=4 [17:59:28]MH_SAM_APDU [17:59:28]CAPDU: 80 09 00 00 [17:59:28]Write to MH i2c: E2 08 00 AD 0E 80 09 00 00 00 00 00 00 2D [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:28]Read from MH i2c: E2 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 AD 0E 00 90 00 2F [17:59:28]RAPDU: 90 00 [17:59:28]wFMCommunicate OK [17:59:28]SAM_PROTO_ClearQueue done [17:59:28]KKMCreateOFDPacket [17:59:28]OFDProtocolAddRootSTLVToBuf [17:59:28]FM_MakeSignedData [17:59:28]FM_MakeSignedData [17:59:28]SAM_PROTO_SignData [17:59:28]wFMCommunicate request_size=4 [17:59:28]MH_SAM_APDU [17:59:28]CAPDU: 80 0D 01 02 [17:59:28]Write to MH i2c: E2 08 00 AE 0E 80 0D 01 02 00 00 00 00 35 [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:28]Read from MH i2c: E2 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 AE 0E 00 90 00 30 [17:59:28]RAPDU: 90 00 [17:59:28]wFMCommunicate OK [17:59:28]wFMCommunicate request_size=255 [17:59:28]MH_SAM_APDU [17:59:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 80 4D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DC 13 01 00 35 04 06 00 FC [17:59:28]Write to MH i2c: E2 02 01 AF 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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 80 4D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DC 13 01 00 35 04 06 00 FC 00 00 E8 [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:28]Read from MH i2c: E2 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 AF 0E 00 90 00 31 [17:59:28]RAPDU: 90 00 [17:59:28]wFMCommunicate OK [17:59:28]wFMCommunicate request_size=10 [17:59:28]MH_SAM_APDU [17:59:28]CAPDU: 80 0D 02 02 05 0A D6 65 F1 2F [17:59:28]Write to MH i2c: E2 0D 00 B0 0E 80 0D 02 02 05 00 0A D6 65 F1 2F 00 00 A7 [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:28]Read from MH i2c: E2 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 03 00 B0 0E 00 90 00 32 [17:59:28]RAPDU: 90 00 [17:59:28]wFMCommunicate OK [17:59:28]wFMCommunicate request_size=4 [17:59:28]MH_SAM_APDU [17:59:28]CAPDU: 80 0D 03 02 [17:59:28]Write to MH i2c: E2 08 00 B1 0E 80 0D 03 02 00 00 00 00 3A [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:28]Read from MH i2c: E2 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 0B 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 0B 00 B1 0E 00 B1 43 56 B3 B2 00 93 E5 90 00 62 [17:59:28]RAPDU: B1 43 56 B3 B2 00 93 E5 90 00 [17:59:28]wFMCommunicate OK [17:59:28]SAM_PROTO_SignData done [17:59:28]FM_MakeSignedData done [17:59:28]CreateOFDProtocolMessage [17:59:28]wFMCommunicate request_size=4 [17:59:28]MH_SAM_APDU [17:59:28]CAPDU: 80 11 00 00 [17:59:28]Write to MH i2c: E2 08 00 B2 0E 80 11 00 00 00 00 00 00 3A [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:28]Read from MH i2c: E2 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 17 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: E2 17 00 B2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 8F [17:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:59:28]wFMCommunicate OK [17:59:28]CreateOFDProtocolMessage done [17:59:28]OFDSenderStorePacket 70620 [17:59:28]StoreOFDPacket docnum=70620 [17:59:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 D3 EA 07 01 C1 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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 80 4D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DC 13 01 00 35 04 06 00 FC 0A D6 65 F1 2F B1 43 56 B3 B2 00 93 E5 [17:59:28]CheckFolder [17:59:28]dirname=/storage/ofd_packets [17:59:28]CheckFolder done [17:59:28]ProducePacketName [17:59:28]name=ofd_packets/00070620 [17:59:28]NVStorageSaveData ofd_packets/00070620 [17:59:28]File name is /storage/ofd_packets/00070620 [17:59:28]Write 301 bytes [17:59:28]NVStorageSaveData done [17:59:28]OFDSenderStorePacket done [17:59:28]KKMCreateOFDPacket done [17:59:28]NVStorageSaveData kkm_last_timestamp [17:59:28]File name is /storage/kkm_last_timestamp [17:59:28]Write 4 bytes [17:59:28]NVStorageSaveData done [17:59:28]ExternCall_PrintAddStr [17:59:28]wPrintStart [17:59:28]Write to MH i2c: 01 00 00 B3 0E C1 [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: 01 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: 01 07 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: 01 07 00 B3 0E 00 00 00 00 00 FF 0F D6 [17:59:28]RasterBufferAndPrint [17:59:28]line Счет N : (1)141071 [17:59:28]line ИÐÐ: 02508201610067 [17:59:28]line Контрольно-КаÑÑовый Чек [17:59:28]line ПРОДÐЖР[17:59:28]line ТРК (МРК, ГÐК) : 31 [17:59:28]line Товар: 2710124130 [17:59:28]line Ðи-92-К-5 [17:59:28]line 4.560 * 65.90 [17:59:28]line = 300.50 [17:59:28]line ÐДС 12% ÐСП 1% [17:59:28]line > о реализуемом товаре [17:59:28]line ИТОГО: 300.50 [17:59:28]line ÐСП 1% : 2.66 [17:59:28]line ÐДС 12% : 31.91 [17:59:28]line Ðаличными: 0.00 [17:59:28]line Безнал.: 300.50 [17:59:28]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [17:59:28]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [17:59:28]line СÐО: Общий режим [17:59:28]line Чек 52 12.08.2024 17:59 [17:59:28]line Смена: 465 ФФД: 1.0 [17:59:28]line ЗÐМ: 0300000140 [17:59:28]line РÐМ: 0000000000090913 [17:59:28]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:59:28]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [17:59:28]line ФМ: 0000000000874915 [17:59:28]line ФД: 70620 [17:59:28]line ФПД: 277123476877615 [17:59:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T175928&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70620&fm=277123476877615&tin=02508201610067®Number=0000000000090913&sum=30050 [17:59:28]written 0, free lines is 4095 [17:59:28]OFD Sender: Processing packet 70620 [packets to send 67, broken 66] [17:59:28]ProducePacketName [17:59:28]name=ofd_packets/00070620 [17:59:28]OFD Sender: To server: ‡•öpG, [17:59:28]CommunicateWithHost lk.salyk.kg:30040 [17:59:28]ConnectInit lk.salyk.kg [17:59:28]Connected sock=10 [17: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 39 31 35 0F 01 00 00 D3 EA 07 01 C1 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 D0 11 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 80 4D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DC 13 01 00 35 04 06 00 FC 0A D6 65 F1 2F B1 43 56 B3 B2 00 93 E5 [17:59:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 99 93 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 39 31 35 10 04 04 00 DC 13 01 00 F4 03 04 00 6C F4 B9 66 B6 04 01 00 00 B9 E5 40 9C 7F A3 86 2F [17:59:29]CommunicateWithHost err = 0 [17:59:29]CheckOFDResponse [17:59:29]1017 (14) - 77093643461234 [17:59:29]1041 (16) - 0000000000874915 [17:59:29]1040 (4) - 70620 [17:59:29]1012 (4) - 12.08.2024 11:39 [17:59:29]1206 (1) - 0 [17:59:29]OFD Sender: Remove packet 70620 [17:59:29]ProducePacketName [17:59:29]name=ofd_packets/00070620 [17:59:29]NVStorageDeleteData [17:59:29]Write to MH i2c: 01 00 00 DD 0E EB [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: 01 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: 01 07 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: 01 07 00 DD 0E 00 00 00 00 00 F1 0C EF [17:59:29]RasterBufferAndPrint [17:59:29]line [17:59:29]line [17:59:29]line [17:59:29]line [17:59:29]line [17:59:29]written 0, free lines is 3319 [17:59:29]MH_Cut [17:59:29]Write to MH i2c: D1 01 00 E4 0E 01 C4 [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: D1 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: D1 01 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: D1 01 00 E4 0E 00 C3 [17:59:29]Write to MH i2c: 01 00 00 E5 0E F3 [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]OFD Sender: No OFD packet to send [17:59:29]*** Cut start [17:59:29]*** Purtial cut [17:59:29]*** Stage 1: CUTSNS_PIN = 1 [17:59:30]Read from MH i2c: 01 [17:59:30]MH_I2C_Read... [17:59:30]*** Stop cut motor [17:59:30]*** Cut end [17:59:30]Read from MH i2c: 01 07 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [17:59:30]process_action close_receipt done [17:59:30]requested_data is exist [17:59:30]produce_requested_data [17:59:30]requested_item fm.sn is exist - process it [17:59:30]wFMCommunicate request_size=4 [17:59:30]MH_SAM_APDU [17:59:30]CAPDU: 80 11 00 00 [17:59:30]Write to MH i2c: E2 08 00 E6 0E 80 11 00 00 00 00 00 00 6E [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:30]Read from MH i2c: E2 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 17 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 17 00 E6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C3 [17:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [17:59:30]wFMCommunicate OK [17:59:30]requested_item fd.num is exist - process it [17:59:30]SAM_PROTO_GetFieldsCounters [17:59:30]wFMCommunicate request_size=4 [17:59:30]MH_SAM_APDU [17:59:30]CAPDU: 80 13 00 00 [17:59:30]Write to MH i2c: E2 08 00 E7 0E 80 13 00 00 00 00 00 00 71 [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:30]Read from MH i2c: E2 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 62 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 62 00 E7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DC 13 01 00 0E 04 04 00 D1 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 EF [17:59: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DC 13 01 00 0E 04 04 00 D1 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 [17:59:30]wFMCommunicate OK [17:59:30]SAM_PROTO_GetFieldsCounters done [17:59:30]requested_item shift.num is exist - process it [17:59:30]requested_item shift.opened is exist - process it [17:59:30]req_shift_opened [17:59:30]FM_GetShiftState [17:59:30]SAM_PROTO_GetShiftState [17:59:30]wFMCommunicate request_size=4 [17:59:30]MH_SAM_APDU [17:59:30]CAPDU: 80 13 01 00 [17:59:30]Write to MH i2c: E2 08 00 E8 0E 80 13 01 00 00 00 00 00 73 [17:59:30]Write i2c OK [17:59:30]MH_I2C_Read... [17:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:30]Read from MH i2c: E2 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 0E 00 [17:59:30]MH_I2C_Read... [17:59:30]Read from MH i2c: E2 0E 00 E8 0E 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 60 [17:59:30]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [17:59:30]wFMCommunicate OK [17:59:30]SAM_PROTO_GetShiftState done [17:59:30]FM_GetShiftState done [17:59:30]req_shift_opened done [17:59:30]requested_item shift.open_date is exist - process it [17:59:30]req_shift_open_date [17:59:30]req_shift_open_date done [17:59:30]produce_requested_data done [17:59:30]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70620,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [17:59:30]process_action_free close_receipt [17:59:30]json_value_free [17:59:30]json_value_free done [17:59:30]process_json_proto returns [17:59:30]Send response to host [17:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70620,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [17:59:30]free response buf [17:59:30]execute_script done [17:59:30]execute_script returns [17:59:30]free content buf [17:59:30]Sock 9.Close socket [17:59:30]Sock 9.Thread stoped [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:20]accept exits with 7 [18:07:20]New connection [18:07:20]New thread 3066699108 created [18:07:20]Thread 3066842468 joined [18:07:20]Waiting for new connection... [18:07:20] Sock 7.Parse request [18:07:20]Sock 7.Check first char [18:07:21]Sock 7.First char is OK [18:07:21]request: POST /json_proto HTTP/1.0 [18:07:21]Method: POST [18:07:21]URL: /json_proto [18:07:21]Method is POST - this is cgi request [18:07:21]url: /json_proto [18:07:21]query_string will be loaded in cgi processing [18:07:21]execute_cgi json_proto POST (null) [18:07:21]execute_cgi path=json_proto method=POST [18:07:21]POST find Content-Length [18:07:21]Host: 172.17.58.67:8080 [18:07:21]Content-Length: 808 [18:07:21]Content-Type: application/json [18:07:21] [18:07:21]POST finish read [18:07:21]Found Content-Length = 808 [18:07:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:21]execute_script... [18:07: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)141072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:21]POST & json_proto [18:07:21]process_json_proto [18:07:21]json parsed OK: [18:07:21]protocol is kg_v1.0 [18:07:21]action value=close_receipt [18:07:21]process_action close_receipt [18:07:21]cmd_close_receipt [18:07:21]MH_GetDate [18:07:21]Write to MH i2c: F0 00 00 E9 0E E6 [18:07:21]Write i2c OK [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: F0 [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: F0 09 00 [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: F0 09 00 E9 0E 00 5B 4F BA 66 94 51 63 64 65 [18:07:21]GetLastDocTimeStamp 1723485568 [18:07:21]current date 1723486043 [18:07:21]FM_GetShiftState [18:07:21]SAM_PROTO_GetShiftState [18:07:21]wFMCommunicate request_size=4 [18:07:21]MH_SAM_APDU [18:07:21]CAPDU: 80 13 01 00 [18:07:21]Write to MH i2c: E2 08 00 EA 0E 80 13 01 00 00 00 00 00 75 [18:07:21]Write i2c OK [18:07:21]MH_I2C_Read... [18:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:21]Read from MH i2c: E2 [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: E2 0E 00 [18:07:21]MH_I2C_Read... [18:07:21]Read from MH i2c: E2 0E 00 EA 0E 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 62 [18:07:21]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:07:21]wFMCommunicate OK [18:07:21]SAM_PROTO_GetShiftState done [18:07:21]FM_GetShiftState done [18:07:21]opened in 1723423336 [18:07:21]opened+sec_in_day 1723509736 [18:07:21]quantity*price = 100036 [18:07:21]sum+1 = 100037 [18:07:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 53 12.08.2024 18:07 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70621 ФПД: 50034714026578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T180723&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70621&fm=50034714026578&tin=02508201610067®Number=0000000000090913&sum=100036 [18:07:22]StoreToDocumentArchive [18:07:22]shift 465 fd 70621 [18:07:22]save to /storage/0465/doc_00070621 [18:07:22]save last doc name /storage/0465/doc_00070621 to /storage/kkm_last_doc_name [18:07:22]save OK [18:07:22]Clear old archive folders... [18:07:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:22]tlvbuf is 010BFCB0 [18:07:22]SAM_PROTO_ClearQueue [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 09 00 00 [18:07:22]Write to MH i2c: E2 08 00 F7 0E 80 09 00 00 00 00 00 00 77 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 F7 0E 00 90 00 79 [18:07:22]RAPDU: 90 00 [18:07:22]wFMCommunicate OK [18:07:22]SAM_PROTO_ClearQueue done [18:07:22]KKMCreateOFDPacket [18:07:22]OFDProtocolAddRootSTLVToBuf [18:07:22]FM_MakeSignedData [18:07:22]FM_MakeSignedData [18:07:22]SAM_PROTO_SignData [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 0D 01 02 [18:07:22]Write to MH i2c: E2 08 00 F8 0E 80 0D 01 02 00 00 00 00 7F [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 F8 0E 00 90 00 7A [18:07:22]RAPDU: 90 00 [18:07:22]wFMCommunicate OK [18:07:22]wFMCommunicate request_size=255 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5B 4F BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DD 13 01 00 35 04 06 00 2D [18:07:22]Write to MH i2c: E2 02 01 F9 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5B 4F BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DD 13 01 00 35 04 06 00 2D 00 00 D6 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:23]Read from MH i2c: E2 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 03 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 03 00 F9 0E 00 90 00 7B [18:07:23]RAPDU: 90 00 [18:07:23]wFMCommunicate OK [18:07:23]wFMCommunicate request_size=10 [18:07:23]MH_SAM_APDU [18:07:23]CAPDU: 80 0D 02 02 05 81 9D 5B 22 52 [18:07:23]Write to MH i2c: E2 0D 00 FA 0E 80 0D 02 02 05 00 81 9D 5B 22 52 00 00 79 [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:23]Read from MH i2c: E2 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 03 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 03 00 FA 0E 00 90 00 7C [18:07:23]RAPDU: 90 00 [18:07:23]wFMCommunicate OK [18:07:23]wFMCommunicate request_size=4 [18:07:23]MH_SAM_APDU [18:07:23]CAPDU: 80 0D 03 02 [18:07:23]Write to MH i2c: E2 08 00 FB 0E 80 0D 03 02 00 00 00 00 84 [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:23]Read from MH i2c: E2 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 0B 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 0B 00 FB 0E 00 87 0D D8 39 0C 6F 6C 17 90 00 28 [18:07:23]RAPDU: 87 0D D8 39 0C 6F 6C 17 90 00 [18:07:23]wFMCommunicate OK [18:07:23]SAM_PROTO_SignData done [18:07:23]FM_MakeSignedData done [18:07:23]CreateOFDProtocolMessage [18:07:23]wFMCommunicate request_size=4 [18:07:23]MH_SAM_APDU [18:07:23]CAPDU: 80 11 00 00 [18:07:23]Write to MH i2c: E2 08 00 FC 0E 80 11 00 00 00 00 00 00 84 [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:23]Read from MH i2c: E2 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 17 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 17 00 FC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D9 [18:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:07:23]wFMCommunicate OK [18:07:23]CreateOFDProtocolMessage done [18:07:23]OFDSenderStorePacket 70621 [18:07:23]StoreOFDPacket docnum=70621 [18:07:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 3F 84 07 01 9B 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5B 4F BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DD 13 01 00 35 04 06 00 2D 81 9D 5B 22 52 87 0D D8 39 0C 6F 6C 17 [18:07:23]CheckFolder [18:07:23]dirname=/storage/ofd_packets [18:07:23]CheckFolder done [18:07:23]ProducePacketName [18:07:23]name=ofd_packets/00070621 [18:07:23]NVStorageSaveData ofd_packets/00070621 [18:07:23]File name is /storage/ofd_packets/00070621 [18:07:23]Write 301 bytes [18:07:23]NVStorageSaveData done [18:07:23]OFDSenderStorePacket done [18:07:23]KKMCreateOFDPacket done [18:07:23]NVStorageSaveData kkm_last_timestamp [18:07:23]File name is /storage/kkm_last_timestamp [18:07:23]Write 4 bytes [18:07:23]NVStorageSaveData done [18:07:23]ExternCall_PrintAddStr [18:07:23]wPrintStart [18:07:23]Write to MH i2c: 01 00 00 FD 0E 0B [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: 01 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: 01 07 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: 01 07 00 FD 0E 00 00 00 00 00 FF 0F 20 [18:07:23]RasterBufferAndPrint [18:07:23]line Счет N : (1)141072 [18:07:23]line ИÐÐ: 02508201610067 [18:07:23]line Контрольно-КаÑÑовый Чек [18:07:23]line ПРОДÐЖР[18:07:23]line ТРК (МРК, ГÐК) : 31 [18:07:23]line Товар: 2710124130 [18:07:23]line Ðи-92-К-5 [18:07:23]line 15.180 * 65.90 [18:07:23]line = 1000.36 [18:07:23]line ÐДС 12% ÐСП 1% [18:07:23]line > о реализуемом товаре [18:07:23]line ИТОГО: 1000.36 [18:07:23]line ÐСП 1% : 8.85 [18:07:23]line ÐДС 12% : 106.23 [18:07:23]line Ðаличными: 0.00 [18:07:23]line Безнал.: 1000.36 [18:07:23]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [18:07:23]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [18:07:23]line СÐО: Общий режим [18:07:23]line Чек 53 12.08.2024 18:07 [18:07:23]line Смена: 465 ФФД: 1.0 [18:07:23]line ЗÐМ: 0300000140 [18:07:23]line РÐМ: 0000000000090913 [18:07:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:07:23]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [18:07:23]line ФМ: 0000000000874915 [18:07:23]line ФД: 70621 [18:07:23]line ФПД: 50034714026578 [18:07:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T180723&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70621&fm=50034714026578&tin=02508201610067®Number=0000000000090913&sum=100036 [18:07:23]OFD Sender: Processing packet 70621 [packets to send 67, broken 66] [18:07:23]ProducePacketName [18:07:23]name=ofd_packets/00070621 [18:07:23]OFD Sender: To server: ‡•öpG, [18:07:23]CommunicateWithHost lk.salyk.kg:30040 [18:07:23]ConnectInit lk.salyk.kg [18:07:23]written 0, free lines is 4095 [18:07:23]Connected sock=11 [18:07: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 39 31 35 0F 01 00 00 3F 84 07 01 9B 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5B 4F BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DD 13 01 00 35 04 06 00 2D 81 9D 5B 22 52 87 0D D8 39 0C 6F 6C 17 [18:07:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 B9 29 47 00 CD 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 39 31 35 10 04 04 00 DD 13 01 00 F4 03 04 00 47 F6 B9 66 B6 04 01 00 00 DE 55 A2 F0 C5 80 00 92 [18:07:23]CommunicateWithHost err = 0 [18:07:23]CheckOFDResponse [18:07:23]1017 (14) - 77093643461234 [18:07:23]1041 (16) - 0000000000874915 [18:07:23]1040 (4) - 70621 [18:07:23]1012 (4) - 12.08.2024 11:47 [18:07:23]1206 (1) - 0 [18:07:23]OFD Sender: Remove packet 70621 [18:07:23]ProducePacketName [18:07:23]name=ofd_packets/00070621 [18:07:23]NVStorageDeleteData [18:07:23]Write to MH i2c: 01 00 00 27 0F 36 [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: 01 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: 01 07 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: 01 07 00 27 0F 00 00 00 00 00 EE 0C 37 [18:07:23]RasterBufferAndPrint [18:07:23]line [18:07:23]line [18:07:23]line [18:07:23]line [18:07:23]line [18:07:23]written 0, free lines is 3316 [18:07:23]MH_Cut [18:07:23]Write to MH i2c: D1 01 00 2E 0F 01 0F [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: D1 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: D1 01 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: D1 01 00 2E 0F 00 0E [18:07:23]Write to MH i2c: 01 00 00 2F 0F 3E [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:24]OFD Sender: No OFD packet to send [18:07:24]*** Cut start [18:07:24]*** Purtial cut [18:07:24]*** CUTSNS_PIN = 0 [18:07:24]*** Stage 1: CUTSNS_PIN = 1 [18:07:26]Read from MH i2c: 01 [18:07:26]MH_I2C_Read... [18:07:26]*** Stop cut motor [18:07:26]*** Cut end [18:07:26]Read from MH i2c: 01 07 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 07 00 2F 0F 00 00 00 00 00 FF 0F 53 [18:07:26]process_action close_receipt done [18:07:26]requested_data is exist [18:07:26]produce_requested_data [18:07:26]requested_item fm.sn is exist - process it [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 11 00 00 [18:07:26]Write to MH i2c: E2 08 00 30 0F 80 11 00 00 00 00 00 00 B9 [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 30 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 0E [18:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:07:26]wFMCommunicate OK [18:07:26]requested_item fd.num is exist - process it [18:07:26]SAM_PROTO_GetFieldsCounters [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 13 00 00 [18:07:26]Write to MH i2c: E2 08 00 31 0F 80 13 00 00 00 00 00 00 BC [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 62 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 62 00 31 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DD 13 01 00 0E 04 04 00 D1 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 3E [18:07: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DD 13 01 00 0E 04 04 00 D1 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 [18:07:26]wFMCommunicate OK [18:07:26]SAM_PROTO_GetFieldsCounters done [18:07:26]requested_item shift.num is exist - process it [18:07:26]requested_item shift.opened is exist - process it [18:07:26]req_shift_opened [18:07:26]FM_GetShiftState [18:07:26]SAM_PROTO_GetShiftState [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 13 01 00 [18:07:26]Write to MH i2c: E2 08 00 32 0F 80 13 01 00 00 00 00 00 BE [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 0E 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 0E 00 32 0F 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 AB [18:07:26]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:07:26]wFMCommunicate OK [18:07:26]SAM_PROTO_GetShiftState done [18:07:26]FM_GetShiftState done [18:07:26]req_shift_opened done [18:07:26]requested_item shift.open_date is exist - process it [18:07:26]req_shift_open_date [18:07:26]req_shift_open_date done [18:07:26]produce_requested_data done [18:07:26]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70621,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [18:07:26]process_action_free close_receipt [18:07:26]json_value_free [18:07:26]json_value_free done [18:07:26]process_json_proto returns [18:07:26]Send response to host [18:07:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70621,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [18:07:26]free response buf [18:07:26]execute_script done [18:07:26]execute_script returns [18:07:26]free content buf [18:07:26]Sock 7.Close socket [18:07:26]Sock 7.Thread stoped [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:04]int [18:29:04]Write to MH i2c: 01 00 00 33 0F 42 [18:29:04]*** FLAG_PRN_KEY set [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 07 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 07 00 33 0F 00 08 00 00 00 FF 0F 5F [18:29:04]state=0 [18:29:04]Key pressed [18:29:04]Feed [18:29:04]Write to MH i2c: D8 00 00 34 0F 1A [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: D8 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: D8 01 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: D8 01 00 34 0F 00 1B [18:29:04]int [18:29:04]Write to MH i2c: 01 00 00 35 0F 44 [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 07 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 07 00 35 0F 00 48 00 00 00 3C 00 CF [18:29:04]state=2 [18:29:04]Key pressed [18:29:04]int [18:29:04]Write to MH i2c: 01 00 00 36 0F 45 [18:29:04]*** FLAG_PRN_KEY reset [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 07 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 07 00 36 0F 00 00 00 00 00 F6 0F 51 [18:29:04]state=2 [18:29:04]Stop feed [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [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:08]accept exits with 9 [18:31:08]New connection [18:31:08]New thread 3066842468 created [18:31:08]Thread 3066699108 joined [18:31:08]Waiting for new connection... [18:31:08] Sock 9.Parse request [18:31:08]Sock 9.Check first char [18:31:08]Sock 9.First char is OK [18:31:08]request: POST /json_proto HTTP/1.0 [18:31:08]Method: POST [18:31:08]URL: /json_proto [18:31:08]Method is POST - this is cgi request [18:31:08]url: /json_proto [18:31:08]query_string will be loaded in cgi processing [18:31:08]execute_cgi json_proto POST (null) [18:31:08]execute_cgi path=json_proto method=POST [18:31:08]POST find Content-Length [18:31:08]Host: 172.17.58.67:8080 [18:31:08]Content-Length: 1183 [18:31:08]Content-Type: application/json [18:31:08] [18:31:08]POST finish read [18:31:08]Found Content-Length = 1183 [18:31: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141073\u000A12.08.2024 17:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 14\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 2232.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\u000A4004409;08;07\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:08]execute_script... [18:31: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141073\u000A12.08.2024 17:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 14\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 74.40\u000A\u0418\u0422\u041E\u0413: 2232.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\u000A4004409;08;07\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:08]POST & json_proto [18:31:08]process_json_proto [18:31:08]json parsed OK: [18:31:08]protocol is kg_v1.0 [18:31:08]action value=print_text [18:31:08]process_action print_text [18:31:08]cmd_print_text [18:31:08]ExternCall_PrintAddStr [18:31:08]wPrintStart [18:31:08]Write to MH i2c: 01 00 00 37 0F 46 [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: 01 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: 01 07 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: 01 07 00 37 0F 00 00 00 00 00 FF 0F 5B [18:31:08]RasterBufferAndPrint [18:31:08]line *****ТОВÐРÐЫЙ ЧЕК***** [18:31:08]line ÐЗС 39 [18:31:08]line Партнер нефть [18:31:08]line 02508201610067 [18:31:08]line КаÑÑир : Мирбек к Ð. [18:31:08]line Счет N : (1)141073 [18:31:08]line 12.08.2024 17:50 [18:31:08]line ПРОДÐЖР[18:31:08]line ТРК (МРК, ГÐК): 14 [18:31:08]line Вид ГСМ : 2710194210 [18:31:08]line ДТ-К-5 [18:31:08]line 30.000 x 74.40 [18:31:08]line ИТОГ: 2232.00 [18:31:08]line Тип оплаты: Талоны: Партнер нефть [18:31:08]line 4004409;08;07 [18:31:08]line ______________________ [18:31:08]line (подпиÑÑŒ) [18:31:08]written 0, free lines is 4095 [18:31:08]Write to MH i2c: 01 00 00 4B 0F 5A [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: 01 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: 01 07 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: 01 07 00 4B 0F 00 00 00 00 00 13 0E 82 [18:31:08]RasterBufferAndPrint [18:31:08]line [18:31:08]line [18:31:08]line [18:31:08]line [18:31:08]line [18:31:08]written 0, free lines is 3605 [18:31:08]MH_Cut [18:31:08]Write to MH i2c: D1 01 00 52 0F 01 33 [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: D1 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: D1 01 00 [18:31:08]MH_I2C_Read... [18:31:08]Read from MH i2c: D1 01 00 52 0F 00 32 [18:31:08]Write to MH i2c: 01 00 00 53 0F 62 [18:31:08]Write i2c OK [18:31:08]MH_I2C_Read... [18:31:08]*** Cut start [18:31:08]*** Purtial cut [18:31:08]*** Stage 1: CUTSNS_PIN = 1 [18:31:09]Read from MH i2c: 01 [18:31:09]MH_I2C_Read... [18:31:09]*** Stop cut motor [18:31:09]*** Cut end [18:31:09]Read from MH i2c: 01 07 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [18:31:09]process_action print_text done [18:31:09]requested_data is exist [18:31:09]produce_requested_data [18:31:09]requested_item fm.sn is exist - process it [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 11 00 00 [18:31:09]Write to MH i2c: E2 08 00 54 0F 80 11 00 00 00 00 00 00 DD [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 17 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 17 00 54 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 32 [18:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:31:09]wFMCommunicate OK [18:31:09]requested_item fd.num is exist - process it [18:31:09]SAM_PROTO_GetFieldsCounters [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 13 00 00 [18:31:09]Write to MH i2c: E2 08 00 55 0F 80 13 00 00 00 00 00 00 E0 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 62 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 62 00 55 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DD 13 01 00 0E 04 04 00 D1 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 62 [18:31: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DD 13 01 00 0E 04 04 00 D1 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 [18:31:09]wFMCommunicate OK [18:31:09]SAM_PROTO_GetFieldsCounters done [18:31:09]requested_item shift.num is exist - process it [18:31:09]requested_item shift.opened is exist - process it [18:31:09]req_shift_opened [18:31:09]FM_GetShiftState [18:31:09]SAM_PROTO_GetShiftState [18:31:09]wFMCommunicate request_size=4 [18:31:09]MH_SAM_APDU [18:31:09]CAPDU: 80 13 01 00 [18:31:09]Write to MH i2c: E2 08 00 56 0F 80 13 01 00 00 00 00 00 E2 [18:31:09]Write i2c OK [18:31:09]MH_I2C_Read... [18:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:09]Read from MH i2c: E2 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 0E 00 [18:31:09]MH_I2C_Read... [18:31:09]Read from MH i2c: E2 0E 00 56 0F 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 CF [18:31:09]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:31:09]wFMCommunicate OK [18:31:09]SAM_PROTO_GetShiftState done [18:31:09]FM_GetShiftState done [18:31:09]req_shift_opened done [18:31:09]requested_item shift.open_date is exist - process it [18:31:09]req_shift_open_date [18:31:09]req_shift_open_date done [18:31:09]produce_requested_data done [18:31:09]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70621,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [18:31:09]process_action_free print_text [18:31:09]json_value_free [18:31:09]json_value_free done [18:31:09]process_json_proto returns [18:31:09]Send response to host [18:31:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70621,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [18:31:09]free response buf [18:31:09]execute_script done [18:31:09]execute_script returns [18:31:09]free content buf [18:31:09]Sock 9.Close socket [18:31:09]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:53]accept exits with 7 [18:32:53]New connection [18:32:53]New thread 3066699108 created [18:32:53]Thread 3066842468 joined [18:32:53]Waiting for new connection... [18:32:53] Sock 7.Parse request [18:32:53]Sock 7.Check first char [18:32:53]Sock 7.First char is OK [18:32:53]request: POST /json_proto HTTP/1.0 [18:32:53]Method: POST [18:32:53]URL: /json_proto [18:32:53]Method is POST - this is cgi request [18:32:53]url: /json_proto [18:32:53]query_string will be loaded in cgi processing [18:32:53]execute_cgi json_proto POST (null) [18:32:53]execute_cgi path=json_proto method=POST [18:32:53]POST find Content-Length [18:32:53]Host: 172.17.58.67:8080 [18:32:53]Content-Length: 819 [18:32:53]Content-Type: application/json [18:32:53] [18:32:53]POST finish read [18:32:53]Found Content-Length = 819 [18:32:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:53]execute_script... [18:32: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)141074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:53]POST & json_proto [18:32:53]process_json_proto [18:32:53]json parsed OK: [18:32:53]protocol is kg_v1.0 [18:32:53]action value=close_receipt [18:32:53]process_action close_receipt [18:32:53]cmd_close_receipt [18:32:53]MH_GetDate [18:32:53]Write to MH i2c: F0 00 00 57 0F 55 [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: F0 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: F0 09 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: F0 09 00 57 0F 00 57 55 BA 66 94 51 63 64 D6 [18:32:53]GetLastDocTimeStamp 1723486043 [18:32:53]current date 1723487575 [18:32:53]FM_GetShiftState [18:32:53]SAM_PROTO_GetShiftState [18:32:53]wFMCommunicate request_size=4 [18:32:53]MH_SAM_APDU [18:32:53]CAPDU: 80 13 01 00 [18:32:53]Write to MH i2c: E2 08 00 58 0F 80 13 01 00 00 00 00 00 E4 [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:53]Read from MH i2c: E2 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 0E 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: E2 0E 00 58 0F 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D1 [18:32:53]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:32:53]wFMCommunicate OK [18:32:53]SAM_PROTO_GetShiftState done [18:32:53]FM_GetShiftState done [18:32:53]opened in 1723423336 [18:32:53]opened+sec_in_day 1723509736 [18:32:53]quantity*price = 100036 [18:32:53]sum+1 = 100037 [18:32:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 54 12.08.2024 18:32 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000000874915 ФД: 70622 ФПД: 109739374287365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T183255&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70622&fm=109739374287365&tin=02508201610067®Number=0000000000090913&sum=100036 [18:32:54]StoreToDocumentArchive [18:32:54]shift 465 fd 70622 [18:32:54]save to /storage/0465/doc_00070622 [18:32:54]save last doc name /storage/0465/doc_00070622 to /storage/kkm_last_doc_name [18:32:54]save OK [18:32:54]Clear old archive folders... [18:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:54]tlvbuf is 010C8740 [18:32:54]SAM_PROTO_ClearQueue [18:32:54]wFMCommunicate request_size=4 [18:32:54]MH_SAM_APDU [18:32:54]CAPDU: 80 09 00 00 [18:32:54]Write to MH i2c: E2 08 00 65 0F 80 09 00 00 00 00 00 00 E6 [18:32:54]Write i2c OK [18:32:54]MH_I2C_Read... [18:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:54]Read from MH i2c: E2 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: E2 03 00 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: E2 03 00 65 0F 00 90 00 E8 [18:32:54]RAPDU: 90 00 [18:32:54]wFMCommunicate OK [18:32:54]SAM_PROTO_ClearQueue done [18:32:54]KKMCreateOFDPacket [18:32:54]OFDProtocolAddRootSTLVToBuf [18:32:54]FM_MakeSignedData [18:32:54]FM_MakeSignedData [18:32:54]SAM_PROTO_SignData [18:32:54]wFMCommunicate request_size=4 [18:32:54]MH_SAM_APDU [18:32:54]CAPDU: 80 0D 01 02 [18:32:54]Write to MH i2c: E2 08 00 66 0F 80 0D 01 02 00 00 00 00 EE [18:32:54]Write i2c OK [18:32:54]MH_I2C_Read... [18:32:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:54]Read from MH i2c: E2 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: E2 03 00 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [18:32:54]RAPDU: 90 00 [18:32:54]wFMCommunicate OK [18:32:54]wFMCommunicate request_size=255 [18:32:54]MH_SAM_APDU [18:32: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 57 55 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DE 13 01 00 35 04 06 00 63 [18:32:54]Write to MH i2c: E2 02 01 67 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 57 55 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DE 13 01 00 35 04 06 00 63 00 00 7F [18:32:54]Write i2c OK [18:32:54]MH_I2C_Read... [18:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:55]Read from MH i2c: E2 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 03 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 03 00 67 0F 00 90 00 EA [18:32:55]RAPDU: 90 00 [18:32:55]wFMCommunicate OK [18:32:55]wFMCommunicate request_size=10 [18:32:55]MH_SAM_APDU [18:32:55]CAPDU: 80 0D 02 02 05 CE B0 6C 1A 05 [18:32:55]Write to MH i2c: E2 0D 00 68 0F 80 0D 02 02 05 00 CE B0 6C 1A 05 00 00 04 [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:55]Read from MH i2c: E2 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 03 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 03 00 68 0F 00 90 00 EB [18:32:55]RAPDU: 90 00 [18:32:55]wFMCommunicate OK [18:32:55]wFMCommunicate request_size=4 [18:32:55]MH_SAM_APDU [18:32:55]CAPDU: 80 0D 03 02 [18:32:55]Write to MH i2c: E2 08 00 69 0F 80 0D 03 02 00 00 00 00 F3 [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:55]Read from MH i2c: E2 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 0B 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 0B 00 69 0F 00 6A B9 FB D5 85 EC D5 37 90 00 64 [18:32:55]RAPDU: 6A B9 FB D5 85 EC D5 37 90 00 [18:32:55]wFMCommunicate OK [18:32:55]SAM_PROTO_SignData done [18:32:55]FM_MakeSignedData done [18:32:55]CreateOFDProtocolMessage [18:32:55]wFMCommunicate request_size=4 [18:32:55]MH_SAM_APDU [18:32:55]CAPDU: 80 11 00 00 [18:32:55]Write to MH i2c: E2 08 00 6A 0F 80 11 00 00 00 00 00 00 F3 [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:55]Read from MH i2c: E2 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 17 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 17 00 6A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 48 [18:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:32:55]wFMCommunicate OK [18:32:55]CreateOFDProtocolMessage done [18:32:55]OFDSenderStorePacket 70622 [18:32:55]StoreOFDPacket docnum=70622 [18:32:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 C0 8D 07 01 7C 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 57 55 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DE 13 01 00 35 04 06 00 63 CE B0 6C 1A 05 6A B9 FB D5 85 EC D5 37 [18:32:55]CheckFolder [18:32:55]dirname=/storage/ofd_packets [18:32:55]CheckFolder done [18:32:55]ProducePacketName [18:32:55]name=ofd_packets/00070622 [18:32:55]NVStorageSaveData ofd_packets/00070622 [18:32:55]File name is /storage/ofd_packets/00070622 [18:32:55]Write 301 bytes [18:32:55]NVStorageSaveData done [18:32:55]OFDSenderStorePacket done [18:32:55]KKMCreateOFDPacket done [18:32:55]NVStorageSaveData kkm_last_timestamp [18:32:55]File name is /storage/kkm_last_timestamp [18:32:55]Write 4 bytes [18:32:55]NVStorageSaveData done [18:32:55]ExternCall_PrintAddStr [18:32:55]wPrintStart [18:32:55]Write to MH i2c: 01 00 00 6B 0F 7A [18:32:55]Write i2c OK [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: 01 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: 01 07 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: 01 07 00 6B 0F 00 00 00 00 00 FF 0F 8F [18:32:55]RasterBufferAndPrint [18:32:55]line Счет N : (1)141074 [18:32:55]line ИÐÐ: 02508201610067 [18:32:55]line Контрольно-КаÑÑовый Чек [18:32:55]line ПРОДÐЖР[18:32:55]line ТРК (МРК, ГÐК) : 31 [18:32:55]line Товар: 2710124130 [18:32:55]line Ðи-92-К-5 [18:32:55]line 15.180 * 65.90 [18:32:55]line = 1000.36 [18:32:55]line ÐДС 12% ÐСП 1% [18:32:55]line > о реализуемом товаре [18:32:55]line ИТОГО: 1000.36 [18:32:55]line ÐСП 1% : 8.85 [18:32:55]line ÐДС 12% : 106.23 [18:32:55]line Ðаличными: 0.00 [18:32:55]line Безнал.: 1000.36 [18:32:55]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [18:32:55]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [18:32:55]line СÐО: Общий режим [18:32:55]line Чек 54 12.08.2024 18:32 [18:32:55]line Смена: 465 ФФД: 1.0 [18:32:55]line ЗÐМ: 0300000140 [18:32:55]line РÐМ: 0000000000090913 [18:32:55]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:32:55]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [18:32:55]line ФМ: 0000000000874915 [18:32:55]line ФД: 70622 [18:32:55]line ФПД: 109739374287365 [18:32:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T183255&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70622&fm=109739374287365&tin=02508201610067®Number=0000000000090913&sum=100036 [18:32:55]written 0, free lines is 4095 [18:32:55]OFD Sender: Processing packet 70622 [packets to send 67, broken 66] [18:32:55]ProducePacketName [18:32:55]name=ofd_packets/00070622 [18:32:55]OFD Sender: To server: ‡•öpG, [18:32:55]CommunicateWithHost lk.salyk.kg:30040 [18:32:55]ConnectInit lk.salyk.kg [18:32:55]Connected sock=10 [18:32: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 39 31 35 0F 01 00 00 C0 8D 07 01 7C 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 57 55 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DE 13 01 00 35 04 06 00 63 CE B0 6C 1A 05 6A B9 FB D5 85 EC D5 37 [18:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F8 CB 47 00 E5 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 39 31 35 10 04 04 00 DE 13 01 00 F4 03 04 00 43 FC B9 66 B6 04 01 00 00 EE 03 90 6A D8 49 6C 49 [18:32:55]CommunicateWithHost err = 0 [18:32:55]CheckOFDResponse [18:32:55]1017 (14) - 77093643461234 [18:32:55]1041 (16) - 0000000000874915 [18:32:55]1040 (4) - 70622 [18:32:55]1012 (4) - 12.08.2024 12:12 [18:32:55]1206 (1) - 0 [18:32:55]OFD Sender: Remove packet 70622 [18:32:55]ProducePacketName [18:32:55]name=ofd_packets/00070622 [18:32:55]NVStorageDeleteData [18:32:56]Write to MH i2c: 01 00 00 95 0F A4 [18:32:56]Write i2c OK [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: 01 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: 01 07 00 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: 01 07 00 95 0F 00 00 00 00 00 EF 0C A6 [18:32:56]RasterBufferAndPrint [18:32:56]line [18:32:56]line [18:32:56]line [18:32:56]line [18:32:56]line [18:32:56]written 0, free lines is 3317 [18:32:56]MH_Cut [18:32:56]Write to MH i2c: D1 01 00 9C 0F 01 7D [18:32:56]Write i2c OK [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: D1 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: D1 01 00 [18:32:56]MH_I2C_Read... [18:32:56]Read from MH i2c: D1 01 00 9C 0F 00 7C [18:32:56]Write to MH i2c: 01 00 00 9D 0F AC [18:32:56]Write i2c OK [18:32:56]MH_I2C_Read... [18:32:56]OFD Sender: No OFD packet to send [18:32:56]*** Cut start [18:32:56]*** Purtial cut [18:32:56]*** CUTSNS_PIN = 0 [18:32:56]*** Stage 1: CUTSNS_PIN = 1 [18:32:58]Read from MH i2c: 01 [18:32:58]MH_I2C_Read... [18:32:58]*** Stop cut motor [18:32:58]*** Cut end [18:32:58]Read from MH i2c: 01 07 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: 01 07 00 9D 0F 00 00 00 00 00 FF 0F C1 [18:32:58]process_action close_receipt done [18:32:58]requested_data is exist [18:32:58]produce_requested_data [18:32:58]requested_item fm.sn is exist - process it [18:32:58]wFMCommunicate request_size=4 [18:32:58]MH_SAM_APDU [18:32:58]CAPDU: 80 11 00 00 [18:32:58]Write to MH i2c: E2 08 00 9E 0F 80 11 00 00 00 00 00 00 27 [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:58]Read from MH i2c: E2 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 17 00 [18:32:58]MH_I2C_Read... [18:32:58]Read from MH i2c: E2 17 00 9E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7C [18:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:32:58]wFMCommunicate OK [18:32:58]requested_item fd.num is exist - process it [18:32:58]SAM_PROTO_GetFieldsCounters [18:32:58]wFMCommunicate request_size=4 [18:32:58]MH_SAM_APDU [18:32:58]CAPDU: 80 13 00 00 [18:32:58]Write to MH i2c: E2 08 00 9F 0F 80 13 00 00 00 00 00 00 2A [18:32:58]Write i2c OK [18:32:58]MH_I2C_Read... [18:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:59]Read from MH i2c: E2 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 62 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 62 00 9F 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DE 13 01 00 0E 04 04 00 D1 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 B0 [18: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DE 13 01 00 0E 04 04 00 D1 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 [18:32:59]wFMCommunicate OK [18:32:59]SAM_PROTO_GetFieldsCounters done [18:32:59]requested_item shift.num is exist - process it [18:32:59]requested_item shift.opened is exist - process it [18:32:59]req_shift_opened [18:32:59]FM_GetShiftState [18:32:59]SAM_PROTO_GetShiftState [18:32:59]wFMCommunicate request_size=4 [18:32:59]MH_SAM_APDU [18:32:59]CAPDU: 80 13 01 00 [18:32:59]Write to MH i2c: E2 08 00 A0 0F 80 13 01 00 00 00 00 00 2C [18:32:59]Write i2c OK [18:32:59]MH_I2C_Read... [18:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:59]Read from MH i2c: E2 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 0E 00 [18:32:59]MH_I2C_Read... [18:32:59]Read from MH i2c: E2 0E 00 A0 0F 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 19 [18:32:59]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:32:59]wFMCommunicate OK [18:32:59]SAM_PROTO_GetShiftState done [18:32:59]FM_GetShiftState done [18:32:59]req_shift_opened done [18:32:59]requested_item shift.open_date is exist - process it [18:32:59]req_shift_open_date [18:32:59]req_shift_open_date done [18:32:59]produce_requested_data done [18:32:59]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70622,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [18:32:59]process_action_free close_receipt [18:32:59]json_value_free [18:32:59]json_value_free done [18:32:59]process_json_proto returns [18:32:59]Send response to host [18:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70622,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [18:32:59]free response buf [18:32:59]execute_script done [18:32:59]execute_script returns [18:32:59]free content buf [18:32:59]Sock 7.Close socket [18:32:59]Sock 7.Thread stoped [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: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:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:49]accept exits with 9 [18:49:49]New connection [18:49:49]New thread 3066842468 created [18:49:49]Thread 3066699108 joined [18:49:49]Waiting for new connection... [18:49:49] Sock 9.Parse request [18:49:49]Sock 9.Check first char [18:49:49]Sock 9.First char is OK [18:49:49]request: POST /json_proto HTTP/1.0 [18:49:49]Method: POST [18:49:49]URL: /json_proto [18:49:49]Method is POST - this is cgi request [18:49:49]url: /json_proto [18:49:49]query_string will be loaded in cgi processing [18:49:49]execute_cgi json_proto POST (null) [18:49:49]execute_cgi path=json_proto method=POST [18:49:49]POST find Content-Length [18:49:49]Host: 172.17.58.67:8080 [18:49:49]Content-Length: 805 [18:49:49]Content-Type: application/json [18:49:49] [18:49:49]POST finish read [18:49:49]Found Content-Length = 805 [18:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:49]execute_script... [18:49:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:49]POST & json_proto [18:49:49]process_json_proto [18:49:49]json parsed OK: [18:49:49]protocol is kg_v1.0 [18:49:49]action value=close_receipt [18:49:49]process_action close_receipt [18:49:49]cmd_close_receipt [18:49:49]MH_GetDate [18:49:49]Write to MH i2c: F0 00 00 A1 0F 9F [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: F0 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: F0 09 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: F0 09 00 A1 0F 00 4F 59 BA 66 94 51 63 64 1C [18:49:49]GetLastDocTimeStamp 1723487575 [18:49:49]current date 1723488591 [18:49:49]FM_GetShiftState [18:49:49]SAM_PROTO_GetShiftState [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 13 01 00 [18:49:49]Write to MH i2c: E2 08 00 A2 0F 80 13 01 00 00 00 00 00 2E [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0E 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0E 00 A2 0F 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 1B [18:49:49]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:49:49]wFMCommunicate OK [18:49:49]SAM_PROTO_GetShiftState done [18:49:49]FM_GetShiftState done [18:49:49]opened in 1723423336 [18:49:49]opened+sec_in_day 1723509736 [18:49:49]quantity*price = 50018 [18:49:49]sum+1 = 50019 [18:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 55 12.08.2024 18:49 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70623 ФПД: 56089318599502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T184951&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70623&fm=56089318599502&tin=02508201610067®Number=0000000000090913&sum=50018 [18:49:50]StoreToDocumentArchive [18:49:50]shift 465 fd 70623 [18:49:50]save to /storage/0465/doc_00070623 [18:49:50]save last doc name /storage/0465/doc_00070623 to /storage/kkm_last_doc_name [18:49:50]save OK [18:49:50]Clear old archive folders... [18:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:50]tlvbuf is 01096F30 [18:49:50]SAM_PROTO_ClearQueue [18:49:50]wFMCommunicate request_size=4 [18:49:50]MH_SAM_APDU [18:49:50]CAPDU: 80 09 00 00 [18:49:50]Write to MH i2c: E2 08 00 AF 0F 80 09 00 00 00 00 00 00 30 [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:50]Read from MH i2c: E2 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 03 00 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 03 00 AF 0F 00 90 00 32 [18:49:50]RAPDU: 90 00 [18:49:50]wFMCommunicate OK [18:49:50]SAM_PROTO_ClearQueue done [18:49:50]KKMCreateOFDPacket [18:49:50]OFDProtocolAddRootSTLVToBuf [18:49:50]FM_MakeSignedData [18:49:50]FM_MakeSignedData [18:49:50]SAM_PROTO_SignData [18:49:50]wFMCommunicate request_size=4 [18:49:50]MH_SAM_APDU [18:49:50]CAPDU: 80 0D 01 02 [18:49:50]Write to MH i2c: E2 08 00 B0 0F 80 0D 01 02 00 00 00 00 38 [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:50]Read from MH i2c: E2 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 03 00 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 03 00 B0 0F 00 90 00 33 [18:49:50]RAPDU: 90 00 [18:49:50]wFMCommunicate OK [18:49:50]wFMCommunicate request_size=255 [18:49:50]MH_SAM_APDU [18:49:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 4F 59 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DF 13 01 00 35 04 06 00 33 [18:49:50]Write to MH i2c: E2 02 01 B1 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 4F 59 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DF 13 01 00 35 04 06 00 33 00 00 D1 [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [18:49:51]RAPDU: 90 00 [18:49:51]wFMCommunicate OK [18:49:51]wFMCommunicate request_size=10 [18:49:51]MH_SAM_APDU [18:49:51]CAPDU: 80 0D 02 02 05 03 4F E9 2B 4E [18:49:51]Write to MH i2c: E2 0D 00 B2 0F 80 0D 02 02 05 00 03 4F E9 2B 4E 00 00 F9 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 03 00 B2 0F 00 90 00 35 [18:49:51]RAPDU: 90 00 [18:49:51]wFMCommunicate OK [18:49:51]wFMCommunicate request_size=4 [18:49:51]MH_SAM_APDU [18:49:51]CAPDU: 80 0D 03 02 [18:49:51]Write to MH i2c: E2 08 00 B3 0F 80 0D 03 02 00 00 00 00 3D [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 0B 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 0B 00 B3 0F 00 47 FB 23 90 B3 3D D1 C2 90 00 B6 [18:49:51]RAPDU: 47 FB 23 90 B3 3D D1 C2 90 00 [18:49:51]wFMCommunicate OK [18:49:51]SAM_PROTO_SignData done [18:49:51]FM_MakeSignedData done [18:49:51]CreateOFDProtocolMessage [18:49:51]wFMCommunicate request_size=4 [18:49:51]MH_SAM_APDU [18:49:51]CAPDU: 80 11 00 00 [18:49:51]Write to MH i2c: E2 08 00 B4 0F 80 11 00 00 00 00 00 00 3D [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:51]Read from MH i2c: E2 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 17 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: E2 17 00 B4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 92 [18:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:49:51]wFMCommunicate OK [18:49:51]CreateOFDProtocolMessage done [18:49:51]OFDSenderStorePacket 70623 [18:49:51]StoreOFDPacket docnum=70623 [18:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 9A 00 07 01 17 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 4F 59 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DF 13 01 00 35 04 06 00 33 03 4F E9 2B 4E 47 FB 23 90 B3 3D D1 C2 [18:49:51]CheckFolder [18:49:51]dirname=/storage/ofd_packets [18:49:51]CheckFolder done [18:49:51]ProducePacketName [18:49:51]name=ofd_packets/00070623 [18:49:51]NVStorageSaveData ofd_packets/00070623 [18:49:51]File name is /storage/ofd_packets/00070623 [18:49:51]Write 301 bytes [18:49:51]NVStorageSaveData done [18:49:51]OFDSenderStorePacket done [18:49:51]KKMCreateOFDPacket done [18:49:51]NVStorageSaveData kkm_last_timestamp [18:49:51]File name is /storage/kkm_last_timestamp [18:49:51]Write 4 bytes [18:49:51]NVStorageSaveData done [18:49:51]ExternCall_PrintAddStr [18:49:51]wPrintStart [18:49:51]Write to MH i2c: 01 00 00 B5 0F C4 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 B5 0F 00 00 00 00 00 FF 0F D9 [18:49:51]RasterBufferAndPrint [18:49:51]line Счет N : (1)141075 [18:49:51]line ИÐÐ: 02508201610067 [18:49:51]line Контрольно-КаÑÑовый Чек [18:49:51]line ПРОДÐЖР[18:49:51]line ТРК (МРК, ГÐК) : 31 [18:49:51]line Товар: 2710124130 [18:49:51]line Ðи-92-К-5 [18:49:51]line 7.590 * 65.90 [18:49:51]line = 500.18 [18:49:51]line ÐДС 12% ÐСП 1% [18:49:51]line > о реализуемом товаре [18:49:51]line ИТОГО: 500.18 [18:49:51]line ÐСП 1% : 4.43 [18:49:51]line ÐДС 12% : 53.12 [18:49:51]line Ðаличными: 0.00 [18:49:51]line Безнал.: 500.18 [18:49:51]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [18:49:51]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [18:49:51]line СÐО: Общий режим [18:49:51]line Чек 55 12.08.2024 18:49 [18:49:51]line Смена: 465 ФФД: 1.0 [18:49:51]line ЗÐМ: 0300000140 [18:49:51]line РÐМ: 0000000000090913 [18:49:51]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:49:51]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [18:49:51]line ФМ: 0000000000874915 [18:49:51]line ФД: 70623 [18:49:51]line ФПД: 56089318599502 [18:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T184951&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70623&fm=56089318599502&tin=02508201610067®Number=0000000000090913&sum=50018 [18:49:51]written 0, free lines is 4095 [18:49:51]OFD Sender: Processing packet 70623 [packets to send 67, broken 66] [18:49:51]ProducePacketName [18:49:51]name=ofd_packets/00070623 [18:49:51]OFD Sender: To server: ‡•öpG, [18:49:51]CommunicateWithHost lk.salyk.kg:30040 [18:49:51]ConnectInit lk.salyk.kg [18:49:51]Connected sock=10 [18:49: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 39 31 35 0F 01 00 00 9A 00 07 01 17 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 4F 59 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DF 13 01 00 35 04 06 00 33 03 4F E9 2B 4E 47 FB 23 90 B3 3D D1 C2 [18:49:51]Write to MH i2c: 01 00 00 DF 0F EE [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 DF 0F 00 00 00 00 00 F4 0C F5 [18:49:51]RasterBufferAndPrint [18:49:51]line [18:49:51]line [18:49:51]line [18:49:51]line [18:49:51]line [18:49:51]written 0, free lines is 3322 [18:49:51]MH_Cut [18:49:51]Write to MH i2c: D1 01 00 E6 0F 01 C7 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: D1 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: D1 01 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: D1 01 00 E6 0F 00 C6 [18:49:51]Write to MH i2c: 01 00 00 E7 0F F6 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 8A B5 47 00 6E F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 DF 13 01 00 F4 03 04 00 3B 00 BA 66 B6 04 01 00 00 0B 5B 4E 6A 00 00 4D 54 [18:49:52]CommunicateWithHost err = 0 [18:49:52]CheckOFDResponse [18:49:52]1017 (14) - 77093643461234 [18:49:52]1041 (16) - 0000000000874915 [18:49:52]1040 (4) - 70623 [18:49:52]1012 (4) - 12.08.2024 12:29 [18:49:52]1206 (1) - 0 [18:49:52]OFD Sender: Remove packet 70623 [18:49:52]ProducePacketName [18:49:52]name=ofd_packets/00070623 [18:49:52]NVStorageDeleteData [18:49:52]OFD Sender: No OFD packet to send [18:49:52]*** Cut start [18:49:52]*** Purtial cut [18:49:52]*** Stage 1: CUTSNS_PIN = 1 [18:49:52]Read from MH i2c: 01 [18:49:52]MH_I2C_Read... [18:49:52]*** Stop cut motor [18:49:52]*** Cut end [18:49:52]Read from MH i2c: 01 07 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: 01 07 00 E7 0F 00 00 00 00 00 FF 0F 0B [18:49:52]process_action close_receipt done [18:49:52]requested_data is exist [18:49:52]produce_requested_data [18:49:52]requested_item fm.sn is exist - process it [18:49:52]wFMCommunicate request_size=4 [18:49:52]MH_SAM_APDU [18:49:52]CAPDU: 80 11 00 00 [18:49:52]Write to MH i2c: E2 08 00 E8 0F 80 11 00 00 00 00 00 00 71 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:52]Read from MH i2c: E2 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 17 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 17 00 E8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C6 [18:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:49:52]wFMCommunicate OK [18:49:52]requested_item fd.num is exist - process it [18:49:52]SAM_PROTO_GetFieldsCounters [18:49:52]wFMCommunicate request_size=4 [18:49:52]MH_SAM_APDU [18:49:52]CAPDU: 80 13 00 00 [18:49:52]Write to MH i2c: E2 08 00 E9 0F 80 13 00 00 00 00 00 00 74 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:53]Read from MH i2c: E2 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 62 00 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 62 00 E9 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DF 13 01 00 0E 04 04 00 D1 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 FE [18:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 DF 13 01 00 0E 04 04 00 D1 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 [18:49:53]wFMCommunicate OK [18:49:53]SAM_PROTO_GetFieldsCounters done [18:49:53]requested_item shift.num is exist - process it [18:49:53]requested_item shift.opened is exist - process it [18:49:53]req_shift_opened [18:49:53]FM_GetShiftState [18:49:53]SAM_PROTO_GetShiftState [18:49:53]wFMCommunicate request_size=4 [18:49:53]MH_SAM_APDU [18:49:53]CAPDU: 80 13 01 00 [18:49:53]Write to MH i2c: E2 08 00 EA 0F 80 13 01 00 00 00 00 00 76 [18:49:53]Write i2c OK [18:49:53]MH_I2C_Read... [18:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:53]Read from MH i2c: E2 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 0E 00 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 0E 00 EA 0F 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 63 [18:49:53]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:49:53]wFMCommunicate OK [18:49:53]SAM_PROTO_GetShiftState done [18:49:53]FM_GetShiftState done [18:49:53]req_shift_opened done [18:49:53]requested_item shift.open_date is exist - process it [18:49:53]req_shift_open_date [18:49:53]req_shift_open_date done [18:49:53]produce_requested_data done [18:49:53]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70623,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [18:49:53]process_action_free close_receipt [18:49:53]json_value_free [18:49:53]json_value_free done [18:49:53]process_json_proto returns [18:49:53]Send response to host [18:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70623,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [18:49:53]free response buf [18:49:53]execute_script done [18:49:53]execute_script returns [18:49:53]free content buf [18:49:53]Sock 9.Close socket [18:49:53]Sock 9.Thread stoped [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:36]int [18:51:36]Write to MH i2c: 01 00 00 EB 0F FA [18:51:36]*** FLAG_PRN_KEY set [18:51:36]Write i2c OK [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: 01 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: 01 07 00 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: 01 07 00 EB 0F 00 08 00 00 00 FF 0F 17 [18:51:36]state=0 [18:51:36]Key pressed [18:51:36]Feed [18:51:36]Write to MH i2c: D8 00 00 EC 0F D2 [18:51:36]Write i2c OK [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: D8 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: D8 01 00 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: D8 01 00 EC 0F 00 D3 [18:51:36]int [18:51:36]Write to MH i2c: 01 00 00 ED 0F FC [18:51:36]Write i2c OK [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: 01 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: 01 07 00 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: 01 07 00 ED 0F 00 48 00 00 00 3C 00 87 [18:51:36]state=2 [18:51:36]Key pressed [18:51:36]int [18:51:36]Write to MH i2c: 01 00 00 EE 0F FD [18:51:36]*** FLAG_PRN_KEY reset [18:51:36]Write i2c OK [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: 01 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: 01 07 00 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: 01 07 00 EE 0F 00 00 00 00 00 F6 0F 09 [18:51:36]state=2 [18:51:36]Stop feed [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:03]accept exits with 7 [18:52:03]New connection [18:52:03]New thread 3066699108 created [18:52:03]Thread 3066842468 joined [18:52:03]Waiting for new connection... [18:52:03] Sock 7.Parse request [18:52:03]Sock 7.Check first char [18:52:03]Sock 7.First char is OK [18:52:03]request: POST /json_proto HTTP/1.0 [18:52:03]Method: POST [18:52:03]URL: /json_proto [18:52:03]Method is POST - this is cgi request [18:52:03]url: /json_proto [18:52:03]query_string will be loaded in cgi processing [18:52:03]execute_cgi json_proto POST (null) [18:52:03]execute_cgi path=json_proto method=POST [18:52:03]POST find Content-Length [18:52:03]Host: 172.17.58.67:8080 [18:52:03]Content-Length: 802 [18:52:03]Content-Type: application/json [18:52:03] [18:52:03]POST finish read [18:52:03]Found Content-Length = 802 [18:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:03]execute_script... [18:52: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)141076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:03]POST & json_proto [18:52:03]process_json_proto [18:52:03]json parsed OK: [18:52:03]protocol is kg_v1.0 [18:52:03]action value=close_receipt [18:52:03]process_action close_receipt [18:52:03]cmd_close_receipt [18:52:03]MH_GetDate [18:52:03]Write to MH i2c: F0 00 00 EF 0F ED [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: F0 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: F0 09 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: F0 09 00 EF 0F 00 D5 59 BA 66 94 51 63 64 F0 [18:52:03]GetLastDocTimeStamp 1723488591 [18:52:03]current date 1723488725 [18:52:03]FM_GetShiftState [18:52:03]SAM_PROTO_GetShiftState [18:52:03]wFMCommunicate request_size=4 [18:52:03]MH_SAM_APDU [18:52:03]CAPDU: 80 13 01 00 [18:52:03]Write to MH i2c: E2 08 00 F0 0F 80 13 01 00 00 00 00 00 7C [18:52:03]Write i2c OK [18:52:03]MH_I2C_Read... [18:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:03]Read from MH i2c: E2 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0E 00 [18:52:03]MH_I2C_Read... [18:52:03]Read from MH i2c: E2 0E 00 F0 0F 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 69 [18:52:03]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:52:03]wFMCommunicate OK [18:52:03]SAM_PROTO_GetShiftState done [18:52:03]FM_GetShiftState done [18:52:03]opened in 1723423336 [18:52:03]opened+sec_in_day 1723509736 [18:52:03]quantity*price = 50071 [18:52:03]sum+1 = 50072 [18:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.71 ÐСП 1% : 4.43 ÐДС 12% : 53.17 Ðаличными: 0.00 Безнал.: 500.71 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 56 12.08.2024 18:52 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70624 ФПД: 194228257368183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T185205&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70624&fm=194228257368183&tin=02508201610067®Number=0000000000090913&sum=50071 [18:52:04]StoreToDocumentArchive [18:52:04]shift 465 fd 70624 [18:52:04]save to /storage/0465/doc_00070624 [18:52:04]save last doc name /storage/0465/doc_00070624 to /storage/kkm_last_doc_name [18:52:04]save OK [18:52:04]Clear old archive folders... [18:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:52:04]tlvbuf is 010D9220 [18:52:04]SAM_PROTO_ClearQueue [18:52:04]wFMCommunicate request_size=4 [18:52:04]MH_SAM_APDU [18:52:04]CAPDU: 80 09 00 00 [18:52:04]Write to MH i2c: E2 08 00 FD 0F 80 09 00 00 00 00 00 00 7E [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:04]Read from MH i2c: E2 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 03 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 03 00 FD 0F 00 90 00 80 [18:52:04]RAPDU: 90 00 [18:52:04]wFMCommunicate OK [18:52:04]SAM_PROTO_ClearQueue done [18:52:04]KKMCreateOFDPacket [18:52:04]OFDProtocolAddRootSTLVToBuf [18:52:04]FM_MakeSignedData [18:52:04]FM_MakeSignedData [18:52:04]SAM_PROTO_SignData [18:52:04]wFMCommunicate request_size=4 [18:52:04]MH_SAM_APDU [18:52:04]CAPDU: 80 0D 01 02 [18:52:04]Write to MH i2c: E2 08 00 FE 0F 80 0D 01 02 00 00 00 00 86 [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:04]Read from MH i2c: E2 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 03 00 [18:52:04]MH_I2C_Read... [18:52:04]Read from MH i2c: E2 03 00 FE 0F 00 90 00 81 [18:52:04]RAPDU: 90 00 [18:52:04]wFMCommunicate OK [18:52:04]wFMCommunicate request_size=255 [18:52:04]MH_SAM_APDU [18:52:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 59 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E0 13 01 00 35 04 06 00 B0 A6 4A 49 [18:52:04]Write to MH i2c: E2 02 01 FF 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 59 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E0 13 01 00 35 04 06 00 B0 A6 4A 49 00 00 4B [18:52:04]Write i2c OK [18:52:04]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 FF 0F 00 90 00 82 [18:52:05]RAPDU: 90 00 [18:52:05]wFMCommunicate OK [18:52:05]wFMCommunicate request_size=7 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 0D 02 02 02 28 77 [18:52:05]Write to MH i2c: E2 0A 00 00 10 80 0D 02 02 02 00 28 77 00 00 2D [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 03 00 00 10 00 90 00 84 [18:52:05]RAPDU: 90 00 [18:52:05]wFMCommunicate OK [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 0D 03 02 [18:52:05]Write to MH i2c: E2 08 00 01 10 80 0D 03 02 00 00 00 00 8C [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0B 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 0B 00 01 10 00 82 4B 72 5D E5 F4 0B A5 90 00 B2 [18:52:05]RAPDU: 82 4B 72 5D E5 F4 0B A5 90 00 [18:52:05]wFMCommunicate OK [18:52:05]SAM_PROTO_SignData done [18:52:05]FM_MakeSignedData done [18:52:05]CreateOFDProtocolMessage [18:52:05]wFMCommunicate request_size=4 [18:52:05]MH_SAM_APDU [18:52:05]CAPDU: 80 11 00 00 [18:52:05]Write to MH i2c: E2 08 00 02 10 80 11 00 00 00 00 00 00 8C [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:05]Read from MH i2c: E2 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 17 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: E2 17 00 02 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E1 [18:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:52:05]wFMCommunicate OK [18:52:05]CreateOFDProtocolMessage done [18:52:05]OFDSenderStorePacket 70624 [18:52:05]StoreOFDPacket docnum=70624 [18:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 0E B3 04 01 9E 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 59 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E0 13 01 00 35 04 06 00 B0 A6 4A 49 28 77 82 4B 72 5D E5 F4 0B A5 [18:52:05]CheckFolder [18:52:05]dirname=/storage/ofd_packets [18:52:05]CheckFolder done [18:52:05]ProducePacketName [18:52:05]name=ofd_packets/00070624 [18:52:05]NVStorageSaveData ofd_packets/00070624 [18:52:05]File name is /storage/ofd_packets/00070624 [18:52:05]Write 298 bytes [18:52:05]NVStorageSaveData done [18:52:05]OFDSenderStorePacket done [18:52:05]KKMCreateOFDPacket done [18:52:05]NVStorageSaveData kkm_last_timestamp [18:52:05]File name is /storage/kkm_last_timestamp [18:52:05]Write 4 bytes [18:52:05]NVStorageSaveData done [18:52:05]ExternCall_PrintAddStr [18:52:05]wPrintStart [18:52:05]Write to MH i2c: 01 00 00 03 10 13 [18:52:05]Write i2c OK [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: 01 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: 01 07 00 [18:52:05]MH_I2C_Read... [18:52:05]Read from MH i2c: 01 07 00 03 10 00 00 00 00 00 FF 0F 28 [18:52:05]RasterBufferAndPrint [18:52:05]line Счет N : (1)141076 [18:52:05]line ИÐÐ: 02508201610067 [18:52:05]line Контрольно-КаÑÑовый Чек [18:52:05]line ПРОДÐЖР[18:52:05]line ТРК (МРК, ГÐК) : 24 [18:52:05]line Товар: 2710194210 [18:52:05]line ДТ-К-5 [18:52:05]line 6.730 * 74.40 [18:52:05]line = 500.71 [18:52:05]line ÐДС 12% ÐСП 1% [18:52:05]line > о реализуемом товаре [18:52:05]line ИТОГО: 500.71 [18:52:05]line ÐСП 1% : 4.43 [18:52:05]line ÐДС 12% : 53.17 [18:52:05]line Ðаличными: 0.00 [18:52:05]line Безнал.: 500.71 [18:52:05]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [18:52:05]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [18:52:05]line СÐО: Общий режим [18:52:05]line Чек 56 12.08.2024 18:52 [18:52:05]line Смена: 465 ФФД: 1.0 [18:52:05]line ЗÐМ: 0300000140 [18:52:05]line РÐМ: 0000000000090913 [18:52:05]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:52:05]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [18:52:05]line ФМ: 0000000000874915 [18:52:05]line ФД: 70624 [18:52:05]line ФПД: 194228257368183 [18:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T185205&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70624&fm=194228257368183&tin=02508201610067®Number=0000000000090913&sum=50071 [18:52:05]OFD Sender: Processing packet 70624 [packets to send 67, broken 66] [18:52:05]ProducePacketName [18:52:05]name=ofd_packets/00070624 [18:52:05]OFD Sender: To server: ‡•öpG, [18:52:05]CommunicateWithHost lk.salyk.kg:30040 [18:52:05]ConnectInit lk.salyk.kg [18:52:05]written 0, free lines is 4095 [18:52:05]Connected sock=10 [18:52: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 39 31 35 0C 01 00 00 0E B3 04 01 9E 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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 97 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 97 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D5 59 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E0 13 01 00 35 04 06 00 B0 A6 4A 49 28 77 82 4B 72 5D E5 F4 0B A5 [18:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A4 89 47 00 C5 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 39 31 35 10 04 04 00 E0 13 01 00 F4 03 04 00 C1 00 BA 66 B6 04 01 00 00 90 FA 07 91 84 97 19 F9 [18:52:05]CommunicateWithHost err = 0 [18:52:05]CheckOFDResponse [18:52:05]1017 (14) - 77093643461234 [18:52:05]1041 (16) - 0000000000874915 [18:52:05]1040 (4) - 70624 [18:52:05]1012 (4) - 12.08.2024 12:32 [18:52:05]1206 (1) - 0 [18:52:05]OFD Sender: Remove packet 70624 [18:52:05]ProducePacketName [18:52:05]name=ofd_packets/00070624 [18:52:05]NVStorageDeleteData [18:52:06]Write to MH i2c: 01 00 00 2D 10 3D [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: 01 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: 01 07 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 EF 0C 3F [18:52:06]RasterBufferAndPrint [18:52:06]line [18:52:06]line [18:52:06]line [18:52:06]line [18:52:06]line [18:52:06]written 0, free lines is 3317 [18:52:06]MH_Cut [18:52:06]Write to MH i2c: D1 01 00 34 10 01 16 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: D1 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: D1 01 00 [18:52:06]MH_I2C_Read... [18:52:06]Read from MH i2c: D1 01 00 34 10 00 15 [18:52:06]Write to MH i2c: 01 00 00 35 10 45 [18:52:06]Write i2c OK [18:52:06]MH_I2C_Read... [18:52:06]OFD Sender: No OFD packet to send [18:52:06]*** Cut start [18:52:06]*** Purtial cut [18:52:06]*** CUTSNS_PIN = 0 [18:52:06]*** Stage 1: CUTSNS_PIN = 1 [18:52:08]Read from MH i2c: 01 [18:52:08]MH_I2C_Read... [18:52:08]*** Stop cut motor [18:52:08]*** Cut end [18:52:08]Read from MH i2c: 01 07 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: 01 07 00 35 10 00 00 00 00 00 FF 0F 5A [18:52:08]process_action close_receipt done [18:52:08]requested_data is exist [18:52:08]produce_requested_data [18:52:08]requested_item fm.sn is exist - process it [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 11 00 00 [18:52:08]Write to MH i2c: E2 08 00 36 10 80 11 00 00 00 00 00 00 C0 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:08]Read from MH i2c: E2 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 17 00 [18:52:08]MH_I2C_Read... [18:52:08]Read from MH i2c: E2 17 00 36 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 15 [18:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:52:08]wFMCommunicate OK [18:52:08]requested_item fd.num is exist - process it [18:52:08]SAM_PROTO_GetFieldsCounters [18:52:08]wFMCommunicate request_size=4 [18:52:08]MH_SAM_APDU [18:52:08]CAPDU: 80 13 00 00 [18:52:08]Write to MH i2c: E2 08 00 37 10 80 13 00 00 00 00 00 00 C3 [18:52:08]Write i2c OK [18:52:08]MH_I2C_Read... [18:52:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:09]Read from MH i2c: E2 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: E2 62 00 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: E2 62 00 37 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E0 13 01 00 0E 04 04 00 D1 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 51 [18:52: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E0 13 01 00 0E 04 04 00 D1 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 [18:52:09]wFMCommunicate OK [18:52:09]SAM_PROTO_GetFieldsCounters done [18:52:09]requested_item shift.num is exist - process it [18:52:09]requested_item shift.opened is exist - process it [18:52:09]req_shift_opened [18:52:09]FM_GetShiftState [18:52:09]SAM_PROTO_GetShiftState [18:52:09]wFMCommunicate request_size=4 [18:52:09]MH_SAM_APDU [18:52:09]CAPDU: 80 13 01 00 [18:52:09]Write to MH i2c: E2 08 00 38 10 80 13 01 00 00 00 00 00 C5 [18:52:09]Write i2c OK [18:52:09]MH_I2C_Read... [18:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:09]Read from MH i2c: E2 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: E2 0E 00 [18:52:09]MH_I2C_Read... [18:52:09]Read from MH i2c: E2 0E 00 38 10 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 B2 [18:52:09]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:52:09]wFMCommunicate OK [18:52:09]SAM_PROTO_GetShiftState done [18:52:09]FM_GetShiftState done [18:52:09]req_shift_opened done [18:52:09]requested_item shift.open_date is exist - process it [18:52:09]req_shift_open_date [18:52:09]req_shift_open_date done [18:52:09]produce_requested_data done [18:52:09]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70624,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [18:52:09]process_action_free close_receipt [18:52:09]json_value_free [18:52:09]json_value_free done [18:52:09]process_json_proto returns [18:52:09]Send response to host [18:52:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70624,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [18:52:09]free response buf [18:52:09]execute_script done [18:52:09]execute_script returns [18:52:09]free content buf [18:52:09]Sock 7.Close socket [18:52:09]Sock 7.Thread stoped [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:53]accept exits with 9 [18:54:53]New connection [18:54:53]New thread 3066842468 created [18:54:53]Thread 3066699108 joined [18:54:53]Waiting for new connection... [18:54:53] Sock 9.Parse request [18:54:53]Sock 9.Check first char [18:54:53]Sock 9.First char is OK [18:54:53]request: POST /json_proto HTTP/1.0 [18:54:53]Method: POST [18:54:53]URL: /json_proto [18:54:53]Method is POST - this is cgi request [18:54:53]url: /json_proto [18:54:53]query_string will be loaded in cgi processing [18:54:53]execute_cgi json_proto POST (null) [18:54:53]execute_cgi path=json_proto method=POST [18:54:53]POST find Content-Length [18:54:53]Host: 172.17.58.67:8080 [18:54:53]Content-Length: 808 [18:54:53]Content-Type: application/json [18:54:53] [18:54:53]POST finish read [18:54:53]Found Content-Length = 808 [18:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:53]execute_script... [18:54: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)141077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:53]POST & json_proto [18:54:53]process_json_proto [18:54:53]json parsed OK: [18:54:53]protocol is kg_v1.0 [18:54:53]action value=close_receipt [18:54:53]process_action close_receipt [18:54:53]cmd_close_receipt [18:54:53]MH_GetDate [18:54:53]Write to MH i2c: F0 00 00 39 10 38 [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: F0 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: F0 09 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: F0 09 00 39 10 00 7F 5A BA 66 94 51 63 64 E6 [18:54:53]GetLastDocTimeStamp 1723488725 [18:54:53]current date 1723488895 [18:54:53]FM_GetShiftState [18:54:53]SAM_PROTO_GetShiftState [18:54:53]wFMCommunicate request_size=4 [18:54:53]MH_SAM_APDU [18:54:53]CAPDU: 80 13 01 00 [18:54:53]Write to MH i2c: E2 08 00 3A 10 80 13 01 00 00 00 00 00 C7 [18:54:53]Write i2c OK [18:54:53]MH_I2C_Read... [18:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:53]Read from MH i2c: E2 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 0E 00 [18:54:53]MH_I2C_Read... [18:54:53]Read from MH i2c: E2 0E 00 3A 10 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 B4 [18:54:53]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:54:53]wFMCommunicate OK [18:54:53]SAM_PROTO_GetShiftState done [18:54:53]FM_GetShiftState done [18:54:53]opened in 1723423336 [18:54:53]opened+sec_in_day 1723509736 [18:54:53]quantity*price = 100036 [18:54:53]sum+1 = 100037 [18:54:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 57 12.08.2024 18:54 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70625 ФПД: 114192277080668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T185455&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70625&fm=114192277080668&tin=02508201610067®Number=0000000000090913&sum=100036 [18:54:55]StoreToDocumentArchive [18:54:55]shift 465 fd 70625 [18:54:55]save to /storage/0465/doc_00070625 [18:54:55]save last doc name /storage/0465/doc_00070625 to /storage/kkm_last_doc_name [18:54:55]save OK [18:54:55]Clear old archive folders... [18:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:55]tlvbuf is 0109D3E0 [18:54:55]SAM_PROTO_ClearQueue [18:54:55]wFMCommunicate request_size=4 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 09 00 00 [18:54:55]Write to MH i2c: E2 08 00 47 10 80 09 00 00 00 00 00 00 C9 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [18:54:55]RAPDU: 90 00 [18:54:55]wFMCommunicate OK [18:54:55]SAM_PROTO_ClearQueue done [18:54:55]KKMCreateOFDPacket [18:54:55]OFDProtocolAddRootSTLVToBuf [18:54:55]FM_MakeSignedData [18:54:55]FM_MakeSignedData [18:54:55]SAM_PROTO_SignData [18:54:55]wFMCommunicate request_size=4 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 0D 01 02 [18:54:55]Write to MH i2c: E2 08 00 48 10 80 0D 01 02 00 00 00 00 D1 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 48 10 00 90 00 CC [18:54:55]RAPDU: 90 00 [18:54:55]wFMCommunicate OK [18:54:55]wFMCommunicate request_size=255 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7F 5A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E1 13 01 00 35 04 06 00 67 [18:54:55]Write to MH i2c: E2 02 01 49 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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7F 5A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E1 13 01 00 35 04 06 00 67 00 00 99 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 49 10 00 90 00 CD [18:54:55]RAPDU: 90 00 [18:54:55]wFMCommunicate OK [18:54:55]wFMCommunicate request_size=10 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 0D 02 02 05 DB 76 1C 8A 5C [18:54:55]Write to MH i2c: E2 0D 00 4A 10 80 0D 02 02 05 00 DB 76 1C 8A 5C 00 00 31 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [18:54:55]RAPDU: 90 00 [18:54:55]wFMCommunicate OK [18:54:55]wFMCommunicate request_size=4 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 0D 03 02 [18:54:55]Write to MH i2c: E2 08 00 4B 10 80 0D 03 02 00 00 00 00 D6 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 0B 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 0B 00 4B 10 00 33 19 64 EA B3 C4 17 3F 90 00 3E [18:54:55]RAPDU: 33 19 64 EA B3 C4 17 3F 90 00 [18:54:55]wFMCommunicate OK [18:54:55]SAM_PROTO_SignData done [18:54:55]FM_MakeSignedData done [18:54:55]CreateOFDProtocolMessage [18:54:55]wFMCommunicate request_size=4 [18:54:55]MH_SAM_APDU [18:54:55]CAPDU: 80 11 00 00 [18:54:55]Write to MH i2c: E2 08 00 4C 10 80 11 00 00 00 00 00 00 D6 [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:55]Read from MH i2c: E2 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 17 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: E2 17 00 4C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 2B [18:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:54:55]wFMCommunicate OK [18:54:55]CreateOFDProtocolMessage done [18:54:55]OFDSenderStorePacket 70625 [18:54:55]StoreOFDPacket docnum=70625 [18:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 6F 24 07 01 89 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7F 5A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E1 13 01 00 35 04 06 00 67 DB 76 1C 8A 5C 33 19 64 EA B3 C4 17 3F [18:54:55]CheckFolder [18:54:55]dirname=/storage/ofd_packets [18:54:55]CheckFolder done [18:54:55]ProducePacketName [18:54:55]name=ofd_packets/00070625 [18:54:55]NVStorageSaveData ofd_packets/00070625 [18:54:55]File name is /storage/ofd_packets/00070625 [18:54:55]Write 301 bytes [18:54:55]NVStorageSaveData done [18:54:55]OFDSenderStorePacket done [18:54:55]KKMCreateOFDPacket done [18:54:55]NVStorageSaveData kkm_last_timestamp [18:54:55]File name is /storage/kkm_last_timestamp [18:54:55]Write 4 bytes [18:54:55]NVStorageSaveData done [18:54:55]OFD Sender: Processing packet 70625 [packets to send 67, broken 66] [18:54:55]ProducePacketName [18:54:55]name=ofd_packets/00070625 [18:54:55]OFD Sender: To server: ‡•öpG, [18:54:55]CommunicateWithHost lk.salyk.kg:30040 [18:54:55]ConnectInit lk.salyk.kg [18:54:55]ExternCall_PrintAddStr [18:54:55]wPrintStart [18:54:55]Write to MH i2c: 01 00 00 4D 10 5D [18:54:55]Write i2c OK [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 07 00 [18:54:55]MH_I2C_Read... [18:54:55]Read from MH i2c: 01 07 00 4D 10 00 00 00 00 00 FF 0F 72 [18:54:55]RasterBufferAndPrint [18:54:55]line Счет N : (1)141077 [18:54:55]line ИÐÐ: 02508201610067 [18:54:55]line Контрольно-КаÑÑовый Чек [18:54:55]line ПРОДÐЖР[18:54:55]line ТРК (МРК, ГÐК) : 41 [18:54:55]line Товар: 2710124130 [18:54:55]line Ðи-92-К-5 [18:54:55]line 15.180 * 65.90 [18:54:55]line = 1000.36 [18:54:55]line ÐДС 12% ÐСП 1% [18:54:55]line > о реализуемом товаре [18:54:55]line ИТОГО: 1000.36 [18:54:55]line ÐСП 1% : 8.85 [18:54:55]line ÐДС 12% : 106.23 [18:54:55]line Ðаличными: 0.00 [18:54:55]line Безнал.: 1000.36 [18:54:55]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [18:54:55]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [18:54:55]line СÐО: Общий режим [18:54:55]line Чек 57 12.08.2024 18:54 [18:54:55]line Смена: 465 ФФД: 1.0 [18:54:55]line ЗÐМ: 0300000140 [18:54:55]line РÐМ: 0000000000090913 [18:54:55]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:54:55]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [18:54:55]line ФМ: 0000000000874915 [18:54:55]line ФД: 70625 [18:54:55]line ФПД: 114192277080668 [18:54:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T185455&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70625&fm=114192277080668&tin=02508201610067®Number=0000000000090913&sum=100036 [18:54:56]Connected sock=11 [18:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 6F 24 07 01 89 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 7F 5A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E1 13 01 00 35 04 06 00 67 DB 76 1C 8A 5C 33 19 64 EA B3 C4 17 3F [18:54:56]written 0, free lines is 4095 [18:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 74 9F 47 00 85 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 39 31 35 10 04 04 00 E1 13 01 00 F4 03 04 00 6C 01 BA 66 B6 04 01 00 00 20 AC B5 C5 52 01 0C AE [18:54:56]CommunicateWithHost err = 0 [18:54:56]CheckOFDResponse [18:54:56]1017 (14) - 77093643461234 [18:54:56]1041 (16) - 0000000000874915 [18:54:56]1040 (4) - 70625 [18:54:56]1012 (4) - 12.08.2024 12:34 [18:54:56]1206 (1) - 0 [18:54:56]OFD Sender: Remove packet 70625 [18:54:56]ProducePacketName [18:54:56]name=ofd_packets/00070625 [18:54:56]NVStorageDeleteData [18:54:56]Write to MH i2c: 01 00 00 77 10 87 [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: 01 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: 01 07 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: 01 07 00 77 10 00 00 00 00 00 F4 0C 8E [18:54:56]RasterBufferAndPrint [18:54:56]line [18:54:56]line [18:54:56]line [18:54:56]line [18:54:56]line [18:54:56]written 0, free lines is 3322 [18:54:56]MH_Cut [18:54:56]Write to MH i2c: D1 01 00 7E 10 01 60 [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: D1 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: D1 01 00 [18:54:56]MH_I2C_Read... [18:54:56]Read from MH i2c: D1 01 00 7E 10 00 5F [18:54:56]Write to MH i2c: 01 00 00 7F 10 8F [18:54:56]Write i2c OK [18:54:56]MH_I2C_Read... [18:54:56]OFD Sender: No OFD packet to send [18:54:57]*** Cut start [18:54:57]*** Purtial cut [18:54:57]*** Stage 1: CUTSNS_PIN = 1 [18:54:57]Read from MH i2c: 01 [18:54:57]MH_I2C_Read... [18:54:57]*** Stop cut motor [18:54:57]*** Cut end [18:54:57]Read from MH i2c: 01 07 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 FF 0F A4 [18:54:57]process_action close_receipt done [18:54:57]requested_data is exist [18:54:57]produce_requested_data [18:54:57]requested_item fm.sn is exist - process it [18:54:57]wFMCommunicate request_size=4 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 11 00 00 [18:54:57]Write to MH i2c: E2 08 00 80 10 80 11 00 00 00 00 00 00 0A [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:57]Read from MH i2c: E2 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 17 00 [18:54:57]MH_I2C_Read... [18:54:57]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 39 31 35 90 00 5F [18:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:54:57]wFMCommunicate OK [18:54:57]requested_item fd.num is exist - process it [18:54:57]SAM_PROTO_GetFieldsCounters [18:54:57]wFMCommunicate request_size=4 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 13 00 00 [18:54:57]Write to MH i2c: E2 08 00 81 10 80 13 00 00 00 00 00 00 0D [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:57]Read from MH i2c: E2 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 62 00 [18:54:57]MH_I2C_Read... [18:54: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E1 13 01 00 0E 04 04 00 D1 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 9F [18:54: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E1 13 01 00 0E 04 04 00 D1 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 [18:54:57]wFMCommunicate OK [18:54:57]SAM_PROTO_GetFieldsCounters done [18:54:57]requested_item shift.num is exist - process it [18:54:57]requested_item shift.opened is exist - process it [18:54:57]req_shift_opened [18:54:57]FM_GetShiftState [18:54:57]SAM_PROTO_GetShiftState [18:54:57]wFMCommunicate request_size=4 [18:54:57]MH_SAM_APDU [18:54:57]CAPDU: 80 13 01 00 [18:54:57]Write to MH i2c: E2 08 00 82 10 80 13 01 00 00 00 00 00 0F [18:54:57]Write i2c OK [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 [18:54:57]MH_I2C_Read... [18:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:57]Read from MH i2c: E2 0E 00 [18:54:57]MH_I2C_Read... [18:54:57]Read from MH i2c: E2 0E 00 82 10 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 FC [18:54:57]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:54:57]wFMCommunicate OK [18:54:57]SAM_PROTO_GetShiftState done [18:54:57]FM_GetShiftState done [18:54:57]req_shift_opened done [18:54:57]requested_item shift.open_date is exist - process it [18:54:57]req_shift_open_date [18:54:57]req_shift_open_date done [18:54:57]produce_requested_data done [18:54:57]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70625,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [18:54:57]process_action_free close_receipt [18:54:57]json_value_free [18:54:57]json_value_free done [18:54:57]process_json_proto returns [18:54:57]Send response to host [18:54:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70625,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [18:54:57]free response buf [18:54:57]execute_script done [18:54:57]execute_script returns [18:54:57]free content buf [18:54:57]Sock 9.Close socket [18:54:57]Sock 9.Thread stoped [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:12]int [18:55:12]Write to MH i2c: 01 00 00 83 10 93 [18:55:12]*** FLAG_PRN_KEY set [18:55:12]Write i2c OK [18:55:12]MH_I2C_Read... [18:55:12]Read from MH i2c: 01 [18:55:12]MH_I2C_Read... [18:55:12]Read from MH i2c: 01 07 00 [18:55:12]MH_I2C_Read... [18:55:12]Read from MH i2c: 01 07 00 83 10 00 08 00 00 00 FF 0F B0 [18:55:12]state=0 [18:55:12]Key pressed [18:55:12]Feed [18:55:12]Write to MH i2c: D8 00 00 84 10 6B [18:55:12]Write i2c OK [18:55:12]MH_I2C_Read... [18:55:12]Read from MH i2c: D8 [18:55:12]MH_I2C_Read... [18:55:12]Read from MH i2c: D8 01 00 [18:55:12]MH_I2C_Read... [18:55:12]Read from MH i2c: D8 01 00 84 10 00 6C [18:55:12]int [18:55:12]Write to MH i2c: 01 00 00 85 10 95 [18:55:12]Write i2c OK [18:55:12]MH_I2C_Read... [18:55:12]Read from MH i2c: 01 [18:55:12]MH_I2C_Read... [18:55:12]Read from MH i2c: 01 07 00 [18:55:12]MH_I2C_Read... [18:55:12]Read from MH i2c: 01 07 00 85 10 00 48 00 00 00 3C 00 20 [18:55:12]state=2 [18:55:12]Key pressed [18:55:13]int [18:55:13]Write to MH i2c: 01 00 00 86 10 96 [18:55:13]*** FLAG_PRN_KEY reset [18:55:13]Write i2c OK [18:55:13]MH_I2C_Read... [18:55:13]Read from MH i2c: 01 [18:55:13]MH_I2C_Read... [18:55:13]Read from MH i2c: 01 07 00 [18:55:13]MH_I2C_Read... [18:55:13]Read from MH i2c: 01 07 00 86 10 00 00 00 00 00 F6 0F A2 [18:55:13]state=2 [18:55:13]Stop feed [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:15]accept exits with 7 [18:56:15]New connection [18:56:15]New thread 3066699108 created [18:56:15]Thread 3066842468 joined [18:56:15]Waiting for new connection... [18:56:15] Sock 7.Parse request [18:56:15]Sock 7.Check first char [18:56:15]Sock 7.First char is OK [18:56:15]request: POST /json_proto HTTP/1.0 [18:56:15]Method: POST [18:56:15]URL: /json_proto [18:56:15]Method is POST - this is cgi request [18:56:15]url: /json_proto [18:56:15]query_string will be loaded in cgi processing [18:56:15]execute_cgi json_proto POST (null) [18:56:15]execute_cgi path=json_proto method=POST [18:56:15]POST find Content-Length [18:56:15]Host: 172.17.58.67:8080 [18:56:15]Content-Length: 678 [18:56:15]Content-Type: application/json [18:56:15] [18:56:15]POST finish read [18:56:15]Found Content-Length = 678 [18:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.000, "sum" : 329.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 329.00, "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:15]execute_script... [18:56:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.000, "sum" : 329.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 329.00, "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:15]POST & json_proto [18:56:15]process_json_proto [18:56:15]json parsed OK: [18:56:15]protocol is kg_v1.0 [18:56:15]action value=close_receipt [18:56:15]process_action close_receipt [18:56:15]cmd_close_receipt [18:56:15]MH_GetDate [18:56:15]Write to MH i2c: F0 00 00 87 10 86 [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: F0 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: F0 09 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: F0 09 00 87 10 00 D1 5A BA 66 94 51 63 64 86 [18:56:15]GetLastDocTimeStamp 1723488895 [18:56:15]current date 1723488977 [18:56:15]FM_GetShiftState [18:56:15]SAM_PROTO_GetShiftState [18:56:15]wFMCommunicate request_size=4 [18:56:15]MH_SAM_APDU [18:56:15]CAPDU: 80 13 01 00 [18:56:15]Write to MH i2c: E2 08 00 88 10 80 13 01 00 00 00 00 00 15 [18:56:15]Write i2c OK [18:56:15]MH_I2C_Read... [18:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:15]Read from MH i2c: E2 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 0E 00 [18:56:15]MH_I2C_Read... [18:56:15]Read from MH i2c: E2 0E 00 88 10 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 02 [18:56:15]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:56:15]wFMCommunicate OK [18:56:15]SAM_PROTO_GetShiftState done [18:56:15]FM_GetShiftState done [18:56:15]opened in 1723423336 [18:56:15]opened+sec_in_day 1723509736 [18:56:15]quantity*price = 32950 [18:56:15]sum+1 = 32951 [18:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.50 ИТОГО: 329.00 ВнеÑено: 1000.00 СДÐЧÐ: 671.00 ÐСП 1% : 2.92 ÐДС 12% : 34.99 Ðаличными: 329.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 58 12.08.2024 18:56 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70626 ФПД: 38387063701009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T185617&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70626&fm=38387063701009&tin=02508201610067®Number=0000000000090913&sum=32900 [18:56:16]StoreToDocumentArchive [18:56:16]shift 465 fd 70626 [18:56:16]save to /storage/0465/doc_00070626 [18:56:16]save last doc name /storage/0465/doc_00070626 to /storage/kkm_last_doc_name [18:56:16]save OK [18:56:16]Clear old archive folders... [18:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:56:16]tlvbuf is 010D9B40 [18:56:16]SAM_PROTO_ClearQueue [18:56:16]wFMCommunicate request_size=4 [18:56:16]MH_SAM_APDU [18:56:16]CAPDU: 80 09 00 00 [18:56:16]Write to MH i2c: E2 08 00 95 10 80 09 00 00 00 00 00 00 17 [18:56:16]Write i2c OK [18:56:16]MH_I2C_Read... [18:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:16]Read from MH i2c: E2 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: E2 03 00 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [18:56:16]RAPDU: 90 00 [18:56:16]wFMCommunicate OK [18:56:16]SAM_PROTO_ClearQueue done [18:56:16]KKMCreateOFDPacket [18:56:16]OFDProtocolAddRootSTLVToBuf [18:56:16]FM_MakeSignedData [18:56:16]FM_MakeSignedData [18:56:16]SAM_PROTO_SignData [18:56:16]wFMCommunicate request_size=4 [18:56:16]MH_SAM_APDU [18:56:16]CAPDU: 80 0D 01 02 [18:56:16]Write to MH i2c: E2 08 00 96 10 80 0D 01 02 00 00 00 00 1F [18:56:16]Write i2c OK [18:56:16]MH_I2C_Read... [18:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:16]Read from MH i2c: E2 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: E2 03 00 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: E2 03 00 96 10 00 90 00 1A [18:56:16]RAPDU: 90 00 [18:56:16]wFMCommunicate OK [18:56:16]wFMCommunicate request_size=255 [18:56:16]MH_SAM_APDU [18:56: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 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 AB 0D 00 00 00 00 07 04 06 00 84 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 3A 00 00 00 F4 03 04 00 D1 5A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E2 13 01 00 35 04 06 00 22 [18:56:16]Write to MH i2c: E2 02 01 97 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 AB 0D 00 00 00 00 07 04 06 00 84 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 3A 00 00 00 F4 03 04 00 D1 5A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E2 13 01 00 35 04 06 00 22 00 00 24 [18:56:16]Write i2c OK [18:56:16]MH_I2C_Read... [18:56:16]OFD Sender: No OFD packet to send [18:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:16]Read from MH i2c: E2 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: E2 03 00 [18:56:16]MH_I2C_Read... [18:56:16]Read from MH i2c: E2 03 00 97 10 00 90 00 1B [18:56:16]RAPDU: 90 00 [18:56:16]wFMCommunicate OK [18:56:16]wFMCommunicate request_size=10 [18:56:16]MH_SAM_APDU [18:56:16]CAPDU: 80 0D 02 02 05 E9 AF 4B BE 11 [18:56:16]Write to MH i2c: E2 0D 00 98 10 80 0D 02 02 05 00 E9 AF 4B BE 11 00 00 DE [18:56:16]Write i2c OK [18:56:16]MH_I2C_Read... [18:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:16]Read from MH i2c: E2 [18:56:16]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 03 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 03 00 98 10 00 90 00 1C [18:56:17]RAPDU: 90 00 [18:56:17]wFMCommunicate OK [18:56:17]wFMCommunicate request_size=4 [18:56:17]MH_SAM_APDU [18:56:17]CAPDU: 80 0D 03 02 [18:56:17]Write to MH i2c: E2 08 00 99 10 80 0D 03 02 00 00 00 00 24 [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:17]Read from MH i2c: E2 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 0B 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 0B 00 99 10 00 6C 78 C8 52 5E CE 8A CA 90 00 A3 [18:56:17]RAPDU: 6C 78 C8 52 5E CE 8A CA 90 00 [18:56:17]wFMCommunicate OK [18:56:17]SAM_PROTO_SignData done [18:56:17]FM_MakeSignedData done [18:56:17]CreateOFDProtocolMessage [18:56:17]wFMCommunicate request_size=4 [18:56:17]MH_SAM_APDU [18:56:17]CAPDU: 80 11 00 00 [18:56:17]Write to MH i2c: E2 08 00 9A 10 80 11 00 00 00 00 00 00 24 [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:17]Read from MH i2c: E2 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 17 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: E2 17 00 9A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 79 [18:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:56:17]wFMCommunicate OK [18:56:17]CreateOFDProtocolMessage done [18:56:17]OFDSenderStorePacket 70626 [18:56:17]StoreOFDPacket docnum=70626 [18:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 F5 D8 07 01 21 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 AB 0D 00 00 00 00 07 04 06 00 84 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 3A 00 00 00 F4 03 04 00 D1 5A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E2 13 01 00 35 04 06 00 22 E9 AF 4B BE 11 6C 78 C8 52 5E CE 8A CA [18:56:17]CheckFolder [18:56:17]dirname=/storage/ofd_packets [18:56:17]CheckFolder done [18:56:17]ProducePacketName [18:56:17]name=ofd_packets/00070626 [18:56:17]NVStorageSaveData ofd_packets/00070626 [18:56:17]File name is /storage/ofd_packets/00070626 [18:56:17]Write 301 bytes [18:56:17]NVStorageSaveData done [18:56:17]OFDSenderStorePacket done [18:56:17]KKMCreateOFDPacket done [18:56:17]NVStorageSaveData kkm_last_timestamp [18:56:17]File name is /storage/kkm_last_timestamp [18:56:17]Write 4 bytes [18:56:17]NVStorageSaveData done [18:56:17]OFD Sender: Processing packet 70626 [packets to send 67, broken 66] [18:56:17]ProducePacketName [18:56:17]name=ofd_packets/00070626 [18:56:17]OFD Sender: To server: ‡•öpG, [18:56:17]CommunicateWithHost lk.salyk.kg:30040 [18:56:17]ConnectInit lk.salyk.kg [18:56:17]ExternCall_PrintAddStr [18:56:17]wPrintStart [18:56:17]Write to MH i2c: 01 00 00 9B 10 AB [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 07 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 07 00 9B 10 00 00 00 00 00 FF 0F C0 [18:56:17]RasterBufferAndPrint [18:56:17]line Счет N : (1)141078 [18:56:17]line ИÐÐ: 02508201610067 [18:56:17]line Контрольно-КаÑÑовый Чек [18:56:17]line ПРОДÐЖР[18:56:17]line ТРК (МРК, ГÐК) : 31 [18:56:17]line Товар: 2710124130 [18:56:17]line Ðи-92-К-5 [18:56:17]line 5.000 * 65.90 [18:56:17]line = 329.50 [18:56:17]line ÐДС 12% ÐСП 1% [18:56:17]line > о реализуемом товаре [18:56:17]line ОКРУГЛЕÐИЕ: -0.50 [18:56:17]line ИТОГО: 329.00 [18:56:17]line ВнеÑено: 1000.00 [18:56:17]line СДÐЧÐ: 671.00 [18:56:17]line ÐСП 1% : 2.92 [18:56:17]line ÐДС 12% : 34.99 [18:56:17]line Ðаличными: 329.00 [18:56:17]line Безнал.: 0.00 [18:56:17]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [18:56:17]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [18:56:17]line СÐО: Общий режим [18:56:17]line Чек 58 12.08.2024 18:56 [18:56:17]line Смена: 465 ФФД: 1.0 [18:56:17]line ЗÐМ: 0300000140 [18:56:17]line РÐМ: 0000000000090913 [18:56:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:56:17]line ФМ: 0000000000874915 [18:56:17]line ФД: 70626 [18:56:17]line ФПД: 38387063701009 [18:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T185617&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70626&fm=38387063701009&tin=02508201610067®Number=0000000000090913&sum=32900 [18:56:17]written 0, free lines is 4095 [18:56:17]Write to MH i2c: 01 00 00 C6 10 D6 [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 07 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 E6 0C CF [18:56:17]RasterBufferAndPrint [18:56:17]line [18:56:17]line [18:56:17]line [18:56:17]line [18:56:17]line [18:56:17]written 0, free lines is 3308 [18:56:17]MH_Cut [18:56:17]Write to MH i2c: D1 01 00 CD 10 01 AF [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: D1 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: D1 01 00 [18:56:17]MH_I2C_Read... [18:56:17]Read from MH i2c: D1 01 00 CD 10 00 AE [18:56:17]Write to MH i2c: 01 00 00 CE 10 DE [18:56:17]Write i2c OK [18:56:17]MH_I2C_Read... [18:56:18]*** Cut start [18:56:18]*** Purtial cut [18:56:18]*** CUTSNS_PIN = 0 [18:56:18]*** Stage 1: CUTSNS_PIN = 1 [18:56:20]Read from MH i2c: 01 [18:56:20]*** Stop cut motor [18:56:20]*** Cut end [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 07 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: 01 07 00 CE 10 00 00 00 00 00 FF 0F F3 [18:56:20]process_action close_receipt done [18:56:20]requested_data is exist [18:56:20]produce_requested_data [18:56:20]requested_item fm.sn is exist - process it [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 11 00 00 [18:56:20]Write to MH i2c: E2 08 00 CF 10 80 11 00 00 00 00 00 00 59 [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 17 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 17 00 CF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 AE [18:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:56:20]wFMCommunicate OK [18:56:20]requested_item fd.num is exist - process it [18:56:20]SAM_PROTO_GetFieldsCounters [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 13 00 00 [18:56:20]Write to MH i2c: E2 08 00 D0 10 80 13 00 00 00 00 00 00 5C [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 62 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 62 00 D0 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E2 13 01 00 0E 04 04 00 D1 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 F2 [18:56: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E2 13 01 00 0E 04 04 00 D1 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 [18:56:20]wFMCommunicate OK [18:56:20]SAM_PROTO_GetFieldsCounters done [18:56:20]requested_item shift.num is exist - process it [18:56:20]requested_item shift.opened is exist - process it [18:56:20]req_shift_opened [18:56:20]FM_GetShiftState [18:56:20]SAM_PROTO_GetShiftState [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 13 01 00 [18:56:20]Write to MH i2c: E2 08 00 D1 10 80 13 01 00 00 00 00 00 5E [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 0E 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 0E 00 D1 10 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 4B [18:56:20]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:56:20]wFMCommunicate OK [18:56:20]SAM_PROTO_GetShiftState done [18:56:20]FM_GetShiftState done [18:56:20]req_shift_opened done [18:56:20]requested_item shift.open_date is exist - process it [18:56:20]req_shift_open_date [18:56:20]req_shift_open_date done [18:56:20]produce_requested_data done [18:56:20]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70626,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [18:56:20]process_action_free close_receipt [18:56:20]json_value_free [18:56:20]json_value_free done [18:56:20]process_json_proto returns [18:56:20]Send response to host [18:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70626,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [18:56:20]free response buf [18:56:20]execute_script done [18:56:20]execute_script returns [18:56:20]free content buf [18:56:20]Sock 7.Close socket [18:56:20]Sock 7.Thread stoped [18:56:22]int [18:56:22]Write to MH i2c: 01 00 00 D2 10 E2 [18:56:22]*** FLAG_PRN_KEY set [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 D2 10 00 08 00 00 00 FF 0F FF [18:56:22]state=0 [18:56:22]Key pressed [18:56:22]Feed [18:56:22]Write to MH i2c: D8 00 00 D3 10 BA [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: D8 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: D8 01 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: D8 01 00 D3 10 00 BB [18:56:22]int [18:56:22]Write to MH i2c: 01 00 00 D4 10 E4 [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 D4 10 00 48 00 00 00 3C 00 6F [18:56:22]state=2 [18:56:22]Key pressed [18:56:22]int [18:56:22]Write to MH i2c: 01 00 00 D5 10 E5 [18:56:22]*** FLAG_PRN_KEY reset [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 D5 10 00 00 00 00 00 FB 0F F6 [18:56:22]state=2 [18:56:22]Stop feed [18:58:06]accept exits with 9 [18:58:06]New connection [18:58:06]New thread 3066842468 created [18:58:06]Thread 3066699108 joined [18:58:06]Waiting for new connection... [18:58:06] Sock 9.Parse request [18:58:06]Sock 9.Check first char [18:58:06]Sock 9.First char is OK [18:58:06]request: POST /json_proto HTTP/1.0 [18:58:06]Method: POST [18:58:06]URL: /json_proto [18:58:06]Method is POST - this is cgi request [18:58:06]url: /json_proto [18:58:06]query_string will be loaded in cgi processing [18:58:06]execute_cgi json_proto POST (null) [18:58:06]execute_cgi path=json_proto method=POST [18:58:06]POST find Content-Length [18:58:06]Host: 172.17.58.67:8080 [18:58:06]Content-Length: 806 [18:58:06]Content-Type: application/json [18:58:06] [18:58:06]POST finish read [18:58:06]Found Content-Length = 806 [18:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:06]execute_script... [18: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)141079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.140, "sum" : 800.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:06]POST & json_proto [18:58:06]process_json_proto [18:58:06]json parsed OK: [18:58:06]protocol is kg_v1.0 [18:58:06]action value=close_receipt [18:58:06]process_action close_receipt [18:58:06]cmd_close_receipt [18:58:06]MH_GetDate [18:58:06]Write to MH i2c: F0 00 00 D6 10 D5 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: F0 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: F0 09 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: F0 09 00 D6 10 00 3F 5B BA 66 94 51 63 64 44 [18:58:06]GetLastDocTimeStamp 1723488977 [18:58:06]current date 1723489087 [18:58:06]FM_GetShiftState [18:58:06]SAM_PROTO_GetShiftState [18:58:06]wFMCommunicate request_size=4 [18:58:06]MH_SAM_APDU [18:58:06]CAPDU: 80 13 01 00 [18:58:06]Write to MH i2c: E2 08 00 D7 10 80 13 01 00 00 00 00 00 64 [18:58:06]Write i2c OK [18:58:06]MH_I2C_Read... [18:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:06]Read from MH i2c: E2 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 0E 00 [18:58:06]MH_I2C_Read... [18:58:06]Read from MH i2c: E2 0E 00 D7 10 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 51 [18:58:06]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:58:06]wFMCommunicate OK [18:58:06]SAM_PROTO_GetShiftState done [18:58:06]FM_GetShiftState done [18:58:06]opened in 1723423336 [18:58:06]opened+sec_in_day 1723509736 [18:58:06]quantity*price = 80002 [18:58:06]sum+1 = 80004 [18:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.03 ÐСП 1% : 7.08 ÐДС 12% : 84.96 Ðаличными: 0.00 Безнал.: 800.03 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 59 12.08.2024 18:58 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70627 ФПД: 62060989943373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T185807&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70627&fm=62060989943373&tin=02508201610067®Number=0000000000090913&sum=80003 [18:58:07]StoreToDocumentArchive [18:58:07]shift 465 fd 70627 [18:58:07]save to /storage/0465/doc_00070627 [18:58:07]save last doc name /storage/0465/doc_00070627 to /storage/kkm_last_doc_name [18:58:07]save OK [18:58:07]Clear old archive folders... [18:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:07]tlvbuf is 010C0220 [18:58:07]SAM_PROTO_ClearQueue [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 09 00 00 [18:58:07]Write to MH i2c: E2 08 00 E4 10 80 09 00 00 00 00 00 00 66 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 E4 10 00 90 00 68 [18:58:07]RAPDU: 90 00 [18:58:07]wFMCommunicate OK [18:58:07]SAM_PROTO_ClearQueue done [18:58:07]KKMCreateOFDPacket [18:58:07]OFDProtocolAddRootSTLVToBuf [18:58:07]FM_MakeSignedData [18:58:07]FM_MakeSignedData [18:58:07]SAM_PROTO_SignData [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 0D 01 02 [18:58:07]Write to MH i2c: E2 08 00 E5 10 80 0D 01 02 00 00 00 00 6E [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 E5 10 00 90 00 69 [18:58:07]RAPDU: 90 00 [18:58:07]wFMCommunicate OK [18:58:07]wFMCommunicate request_size=255 [18:58:07]MH_SAM_APDU [18: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3F 5B BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E3 13 01 00 35 04 06 00 38 [18:58:07]Write to MH i2c: E2 02 01 E6 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3F 5B BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E3 13 01 00 35 04 06 00 38 00 00 2A [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 E6 10 00 90 00 6A [18:58:07]RAPDU: 90 00 [18:58:07]wFMCommunicate OK [18:58:07]wFMCommunicate request_size=10 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 0D 02 02 05 71 B3 42 8E 4D [18:58:07]Write to MH i2c: E2 0D 00 E7 10 80 0D 02 02 05 00 71 B3 42 8E 4D 00 00 BC [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 03 00 E7 10 00 90 00 6B [18:58:07]RAPDU: 90 00 [18:58:07]wFMCommunicate OK [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 0D 03 02 [18:58:07]Write to MH i2c: E2 08 00 E8 10 80 0D 03 02 00 00 00 00 73 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 0B 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 0B 00 E8 10 00 3A 8F 5C 2F 8B 55 D7 CB 90 00 4A [18:58:07]RAPDU: 3A 8F 5C 2F 8B 55 D7 CB 90 00 [18:58:07]wFMCommunicate OK [18:58:07]SAM_PROTO_SignData done [18:58:07]FM_MakeSignedData done [18:58:07]CreateOFDProtocolMessage [18:58:07]wFMCommunicate request_size=4 [18:58:07]MH_SAM_APDU [18:58:07]CAPDU: 80 11 00 00 [18:58:07]Write to MH i2c: E2 08 00 E9 10 80 11 00 00 00 00 00 00 73 [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:07]Read from MH i2c: E2 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 17 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: E2 17 00 E9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C8 [18:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:58:07]wFMCommunicate OK [18:58:07]CreateOFDProtocolMessage done [18:58:07]OFDSenderStorePacket 70627 [18:58:07]StoreOFDPacket docnum=70627 [18:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 36 BE 07 01 FB 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3F 5B BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E3 13 01 00 35 04 06 00 38 71 B3 42 8E 4D 3A 8F 5C 2F 8B 55 D7 CB [18:58:07]CheckFolder [18:58:07]dirname=/storage/ofd_packets [18:58:07]CheckFolder done [18:58:07]ProducePacketName [18:58:07]name=ofd_packets/00070627 [18:58:07]NVStorageSaveData ofd_packets/00070627 [18:58:07]File name is /storage/ofd_packets/00070627 [18:58:07]Write 301 bytes [18:58:07]NVStorageSaveData done [18:58:07]OFDSenderStorePacket done [18:58:07]KKMCreateOFDPacket done [18:58:07]NVStorageSaveData kkm_last_timestamp [18:58:07]File name is /storage/kkm_last_timestamp [18:58:07]Write 4 bytes [18:58:07]NVStorageSaveData done [18:58:07]ExternCall_PrintAddStr [18:58:07]wPrintStart [18:58:07]Write to MH i2c: 01 00 00 EA 10 FA [18:58:07]Write i2c OK [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 07 00 [18:58:07]MH_I2C_Read... [18:58:07]Read from MH i2c: 01 07 00 EA 10 00 00 00 00 00 FF 0F 0F [18:58:07]RasterBufferAndPrint [18:58:07]line Счет N : (1)141079 [18:58:07]line ИÐÐ: 02508201610067 [18:58:07]line Контрольно-КаÑÑовый Чек [18:58:07]line ПРОДÐЖР[18:58:07]line ТРК (МРК, ГÐК) : 41 [18:58:07]line Товар: 2710124130 [18:58:07]line Ðи-92-К-5 [18:58:07]line 12.140 * 65.90 [18:58:07]line = 800.03 [18:58:07]line ÐДС 12% ÐСП 1% [18:58:07]line > о реализуемом товаре [18:58:07]line ИТОГО: 800.03 [18:58:07]line ÐСП 1% : 7.08 [18:58:07]line ÐДС 12% : 84.96 [18:58:07]line Ðаличными: 0.00 [18:58:07]line Безнал.: 800.03 [18:58:07]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [18:58:07]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [18:58:07]line СÐО: Общий режим [18:58:07]line Чек 59 12.08.2024 18:58 [18:58:07]line Смена: 465 ФФД: 1.0 [18:58:07]line ЗÐМ: 0300000140 [18:58:07]line РÐМ: 0000000000090913 [18:58:07]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:58:07]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [18:58:07]line ФМ: 0000000000874915 [18:58:07]line ФД: 70627 [18:58:07]line ФПД: 62060989943373 [18:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T185807&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70627&fm=62060989943373&tin=02508201610067®Number=0000000000090913&sum=80003 [18:58:07]written 0, free lines is 4095 [18:58:08]Write to MH i2c: 01 00 00 14 11 25 [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 07 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: 01 07 00 14 11 00 00 00 00 00 F6 0C 2E [18:58:08]RasterBufferAndPrint [18:58:08]line [18:58:08]line [18:58:08]line [18:58:08]line [18:58:08]line [18:58:08]written 0, free lines is 3324 [18:58:08]MH_Cut [18:58:08]Write to MH i2c: D1 01 00 1B 11 01 FE [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: D1 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: D1 01 00 [18:58:08]MH_I2C_Read... [18:58:08]Read from MH i2c: D1 01 00 1B 11 00 FD [18:58:08]Write to MH i2c: 01 00 00 1C 11 2D [18:58:08]Write i2c OK [18:58:08]MH_I2C_Read... [18:58:08]*** Cut start [18:58:08]*** Purtial cut [18:58:08]*** Stage 1: CUTSNS_PIN = 1 [18:58:09]Read from MH i2c: 01 [18:58:09]MH_I2C_Read... [18:58:09]*** Stop cut motor [18:58:09]*** Cut end [18:58:09]Read from MH i2c: 01 07 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: 01 07 00 1C 11 00 00 00 00 00 FF 0F 42 [18:58:09]process_action close_receipt done [18:58:09]requested_data is exist [18:58:09]produce_requested_data [18:58:09]requested_item fm.sn is exist - process it [18:58:09]wFMCommunicate request_size=4 [18:58:09]MH_SAM_APDU [18:58:09]CAPDU: 80 11 00 00 [18:58:09]Write to MH i2c: E2 08 00 1D 11 80 11 00 00 00 00 00 00 A8 [18:58:09]Write i2c OK [18:58:09]MH_I2C_Read... [18:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:09]Read from MH i2c: E2 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 17 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 17 00 1D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FD [18:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [18:58:09]wFMCommunicate OK [18:58:09]requested_item fd.num is exist - process it [18:58:09]SAM_PROTO_GetFieldsCounters [18:58:09]wFMCommunicate request_size=4 [18:58:09]MH_SAM_APDU [18:58:09]CAPDU: 80 13 00 00 [18:58:09]Write to MH i2c: E2 08 00 1E 11 80 13 00 00 00 00 00 00 AB [18:58:09]Write i2c OK [18:58:09]MH_I2C_Read... [18:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:09]Read from MH i2c: E2 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 62 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 62 00 1E 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E3 13 01 00 0E 04 04 00 D1 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 45 [18:58: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E3 13 01 00 0E 04 04 00 D1 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 [18:58:09]wFMCommunicate OK [18:58:09]SAM_PROTO_GetFieldsCounters done [18:58:09]requested_item shift.num is exist - process it [18:58:09]requested_item shift.opened is exist - process it [18:58:09]req_shift_opened [18:58:09]FM_GetShiftState [18:58:09]SAM_PROTO_GetShiftState [18:58:09]wFMCommunicate request_size=4 [18:58:09]MH_SAM_APDU [18:58:09]CAPDU: 80 13 01 00 [18:58:09]Write to MH i2c: E2 08 00 1F 11 80 13 01 00 00 00 00 00 AD [18:58:09]Write i2c OK [18:58:09]MH_I2C_Read... [18:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:09]Read from MH i2c: E2 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 0E 00 [18:58:09]MH_I2C_Read... [18:58:09]Read from MH i2c: E2 0E 00 1F 11 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 9A [18:58:09]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [18:58:09]wFMCommunicate OK [18:58:09]SAM_PROTO_GetShiftState done [18:58:09]FM_GetShiftState done [18:58:09]req_shift_opened done [18:58:09]requested_item shift.open_date is exist - process it [18:58:09]req_shift_open_date [18:58:09]req_shift_open_date done [18:58:09]produce_requested_data done [18:58:09]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70627,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [18:58:09]process_action_free close_receipt [18:58:09]json_value_free [18:58:09]json_value_free done [18:58:09]process_json_proto returns [18:58:09]Send response to host [18:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70627,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [18:58:09]free response buf [18:58:09]execute_script done [18:58:09]execute_script returns [18:58:09]free content buf [18:58:09]Sock 9.Close socket [18:58:09]Sock 9.Thread stoped [18:58:30]ConnectInit Can't connect to host [18:58:30]CommunicateWithHost connect error [18:58:30]CommunicateWithHost err = -1 [18:58:30]OFD Sender: Server communicate error [18:58:30]OFD Sender: Processing packet 70626 [packets to send 68, broken 66] [18:58:30]ProducePacketName [18:58:30]name=ofd_packets/00070626 [18:58:30]OFD Sender: To server: ‡•öpG, [18:58:30]CommunicateWithHost lk.salyk.kg:30040 [18:58:30]ConnectInit lk.salyk.kg [18:58:31]Connected sock=9 [18:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 F5 D8 07 01 21 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 AB 0D 00 00 00 00 07 04 06 00 84 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 3A 00 00 00 F4 03 04 00 D1 5A BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E2 13 01 00 35 04 06 00 22 E9 AF 4B BE 11 6C 78 C8 52 5E CE 8A CA [18:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 2F 7F 47 00 07 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 39 31 35 10 04 04 00 E2 13 01 00 F4 03 04 00 43 02 BA 66 B6 04 01 00 00 7E FA AC E1 D7 47 2B B2 [18:58:31]CommunicateWithHost err = 0 [18:58:31]CheckOFDResponse [18:58:31]1017 (14) - 77093643461234 [18:58:31]1041 (16) - 0000000000874915 [18:58:31]1040 (4) - 70626 [18:58:31]1012 (4) - 12.08.2024 12:38 [18:58:31]1206 (1) - 0 [18:58:31]OFD Sender: Remove packet 70626 [18:58:31]ProducePacketName [18:58:31]name=ofd_packets/00070626 [18:58:31]NVStorageDeleteData [18:58:31]OFD Sender: Processing packet 70627 [packets to send 67, broken 66] [18:58:31]ProducePacketName [18:58:31]name=ofd_packets/00070627 [18:58:31]OFD Sender: To server: ‡•öpG, [18:58:31]CommunicateWithHost lk.salyk.kg:30040 [18:58:31]ConnectInit lk.salyk.kg [18:58:31]Connected sock=9 [18:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 36 BE 07 01 FB 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 6C 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 83 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 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 30 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3F 5B BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E3 13 01 00 35 04 06 00 38 71 B3 42 8E 4D 3A 8F 5C 2F 8B 55 D7 CB [18:58:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F7 67 47 00 C6 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 39 31 35 10 04 04 00 E3 13 01 00 F4 03 04 00 44 02 BA 66 B6 04 01 00 00 08 32 BE 11 5B 1B B8 FD [18:58:32]CommunicateWithHost err = 0 [18:58:32]CheckOFDResponse [18:58:32]1017 (14) - 77093643461234 [18:58:32]1041 (16) - 0000000000874915 [18:58:32]1040 (4) - 70627 [18:58:32]1012 (4) - 12.08.2024 12:38 [18:58:32]1206 (1) - 0 [18:58:32]OFD Sender: Remove packet 70627 [18:58:32]ProducePacketName [18:58:32]name=ofd_packets/00070627 [18:58:32]NVStorageDeleteData [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]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:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:22]int [19:11:22]Write to MH i2c: 01 00 00 20 11 31 [19:11:22]*** FLAG_PRN_KEY set [19:11:22]Write i2c OK [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 07 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 07 00 20 11 00 08 00 00 00 FF 0F 4E [19:11:22]state=0 [19:11:22]Key pressed [19:11:22]Feed [19:11:22]Write to MH i2c: D8 00 00 21 11 09 [19:11:22]Write i2c OK [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: D8 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: D8 01 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: D8 01 00 21 11 00 0A [19:11:22]int [19:11:22]Write to MH i2c: 01 00 00 22 11 33 [19:11:22]Write i2c OK [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 07 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 07 00 22 11 00 48 00 00 00 3C 00 BE [19:11:22]state=2 [19:11:22]Key pressed [19:11:22]int [19:11:22]Write to MH i2c: 01 00 00 23 11 34 [19:11:22]*** FLAG_PRN_KEY reset [19:11:22]Write i2c OK [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 07 00 [19:11:22]MH_I2C_Read... [19:11:22]Read from MH i2c: 01 07 00 23 11 00 00 00 00 00 F6 0F 40 [19:11:22]state=2 [19:11:22]Stop feed [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:14:59]accept exits with 7 [19:14:59]New connection [19:14:59]New thread 3066699108 created [19:14:59]Thread 3066842468 joined [19:14:59]Waiting for new connection... [19:14:59] Sock 7.Parse request [19:14:59]Sock 7.Check first char [19:14:59]Sock 7.First char is OK [19:14:59]request: POST /json_proto HTTP/1.0 [19:14:59]Method: POST [19:14:59]URL: /json_proto [19:14:59]Method is POST - this is cgi request [19:14:59]url: /json_proto [19:14:59]query_string will be loaded in cgi processing [19:14:59]execute_cgi json_proto POST (null) [19:14:59]execute_cgi path=json_proto method=POST [19:14:59]POST find Content-Length [19:14:59]Host: 172.17.58.67:8080 [19:14:59]Content-Length: 1190 [19:14:59]Content-Type: application/json [19:14:59] [19:14:59]POST finish read [19:14:59]Found Content-Length = 1190 [19:14: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141080\u000A12.08.2024 18:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.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\u000A00319\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:59]execute_script... [19:14: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 39\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)141080\u000A12.08.2024 18:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.90\u000A\u0418\u0422\u041E\u0413: 1977.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\u000A00319\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:59]POST & json_proto [19:14:59]process_json_proto [19:14:59]json parsed OK: [19:14:59]protocol is kg_v1.0 [19:14:59]action value=print_text [19:14:59]process_action print_text [19:14:59]cmd_print_text [19:14:59]ExternCall_PrintAddStr [19:14:59]wPrintStart [19:14:59]Write to MH i2c: 01 00 00 24 11 35 [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 07 00 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 07 00 24 11 00 00 00 00 00 FF 0F 4A [19:14:59]RasterBufferAndPrint [19:14:59]line *****ТОВÐРÐЫЙ ЧЕК***** [19:14:59]line ÐЗС 39 [19:14:59]line Партнер нефть [19:14:59]line 02508201610067 [19:14:59]line КаÑÑир : Мирбек к Ð. [19:14:59]line Счет N : (1)141080 [19:14:59]line 12.08.2024 18:34 [19:14:59]line ПРОДÐЖР[19:14:59]line ТРК (МРК, ГÐК): 31 [19:14:59]line Вид ГСМ : 2710124130 [19:14:59]line Ðи-92-К-5 [19:14:59]line 30.000 x 65.90 [19:14:59]line ИТОГ: 1977.00 [19:14:59]line Тип оплаты: Талоны: Ð¢Ð¾Ð¿Ð»Ð¸Ð²Ð½Ð°Ñ ÐšÐ°Ñ€Ñ‚Ð° [19:14:59]line 00319 [19:14:59]line ______________________ [19:14:59]line (подпиÑÑŒ) [19:14:59]written 0, free lines is 4095 [19:14:59]Write to MH i2c: 01 00 00 38 11 49 [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 07 00 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: 01 07 00 38 11 00 00 00 00 00 12 0E 70 [19:14:59]RasterBufferAndPrint [19:14:59]line [19:14:59]line [19:14:59]line [19:14:59]line [19:14:59]line [19:14:59]written 0, free lines is 3603 [19:14:59]MH_Cut [19:14:59]Write to MH i2c: D1 01 00 3F 11 01 22 [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: D1 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: D1 01 00 [19:14:59]MH_I2C_Read... [19:14:59]Read from MH i2c: D1 01 00 3F 11 00 21 [19:14:59]Write to MH i2c: 01 00 00 40 11 51 [19:14:59]Write i2c OK [19:14:59]MH_I2C_Read... [19:15:00]*** Cut start [19:15:00]*** Purtial cut [19:15:00]*** CUTSNS_PIN = 0 [19:15:00]*** Stage 1: CUTSNS_PIN = 1 [19:15:02]Read from MH i2c: 01 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: 01 07 00 [19:15:02]MH_I2C_Read... [19:15:02]*** Stop cut motor [19:15:02]*** Cut end [19:15:02]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 FF 0F 66 [19:15:02]process_action print_text done [19:15:02]requested_data is exist [19:15:02]produce_requested_data [19:15:02]requested_item fm.sn is exist - process it [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 11 00 00 [19:15:02]Write to MH i2c: E2 08 00 41 11 80 11 00 00 00 00 00 00 CC [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 17 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 17 00 41 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 21 [19:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:15:02]wFMCommunicate OK [19:15:02]requested_item fd.num is exist - process it [19:15:02]SAM_PROTO_GetFieldsCounters [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 13 00 00 [19:15:02]Write to MH i2c: E2 08 00 42 11 80 13 00 00 00 00 00 00 CF [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 62 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 62 00 42 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E3 13 01 00 0E 04 04 00 D1 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 69 [19:15: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E3 13 01 00 0E 04 04 00 D1 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 [19:15:02]wFMCommunicate OK [19:15:02]SAM_PROTO_GetFieldsCounters done [19:15:02]requested_item shift.num is exist - process it [19:15:02]requested_item shift.opened is exist - process it [19:15:02]req_shift_opened [19:15:02]FM_GetShiftState [19:15:02]SAM_PROTO_GetShiftState [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 13 01 00 [19:15:02]Write to MH i2c: E2 08 00 43 11 80 13 01 00 00 00 00 00 D1 [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0E 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0E 00 43 11 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 BE [19:15:02]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:15:02]wFMCommunicate OK [19:15:02]SAM_PROTO_GetShiftState done [19:15:02]FM_GetShiftState done [19:15:02]req_shift_opened done [19:15:02]requested_item shift.open_date is exist - process it [19:15:02]req_shift_open_date [19:15:02]req_shift_open_date done [19:15:02]produce_requested_data done [19:15:02]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70627,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [19:15:02]process_action_free print_text [19:15:02]json_value_free [19:15:02]json_value_free done [19:15:02]process_json_proto returns [19:15:02]Send response to host [19:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70627,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [19:15:02]free response buf [19:15:02]execute_script done [19:15:02]execute_script returns [19:15:02]free content buf [19:15:02]Sock 7.Close socket [19:15:02]Sock 7.Thread stoped [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:34]int [19:15:34]Write to MH i2c: 01 00 00 44 11 55 [19:15:34]*** FLAG_PRN_KEY set [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 07 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 07 00 44 11 00 08 00 00 00 FF 0F 72 [19:15:34]state=0 [19:15:34]Key pressed [19:15:34]Feed [19:15:34]Write to MH i2c: D8 00 00 45 11 2D [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: D8 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: D8 01 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: D8 01 00 45 11 00 2E [19:15:34]int [19:15:34]Write to MH i2c: 01 00 00 46 11 57 [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 07 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 07 00 46 11 00 48 00 00 00 3C 00 E2 [19:15:34]state=2 [19:15:34]Key pressed [19:15:34]int [19:15:34]Write to MH i2c: 01 00 00 47 11 58 [19:15:34]*** FLAG_PRN_KEY reset [19:15:34]Write i2c OK [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 07 00 [19:15:34]MH_I2C_Read... [19:15:34]Read from MH i2c: 01 07 00 47 11 00 00 00 00 00 F6 0F 64 [19:15:34]state=2 [19:15:34]Stop feed [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:28]accept exits with 9 [19:22:28]New connection [19:22:28]New thread 3066842468 created [19:22:28]Thread 3066699108 joined [19:22:28]Waiting for new connection... [19:22:28] Sock 9.Parse request [19:22:28]Sock 9.Check first char [19:22:28]Sock 9.First char is OK [19:22:28]request: POST /json_proto HTTP/1.0 [19:22:28]Method: POST [19:22:28]URL: /json_proto [19:22:28]Method is POST - this is cgi request [19:22:28]url: /json_proto [19:22:28]query_string will be loaded in cgi processing [19:22:28]execute_cgi json_proto POST (null) [19:22:28]execute_cgi path=json_proto method=POST [19:22:28]POST find Content-Length [19:22:28]Host: 172.17.58.67:8080 [19:22:28]Content-Length: 805 [19:22:28]Content-Type: application/json [19:22:28] [19:22:28]POST finish read [19:22:28]Found Content-Length = 805 [19:22:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:28]execute_script... [19:22: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)141081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 26.890, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:28]POST & json_proto [19:22:28]process_json_proto [19:22:28]json parsed OK: [19:22:28]protocol is kg_v1.0 [19:22:28]action value=close_receipt [19:22:28]process_action close_receipt [19:22:28]cmd_close_receipt [19:22:28]MH_GetDate [19:22:28]Write to MH i2c: F0 00 00 48 11 48 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: F0 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: F0 09 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: F0 09 00 48 11 00 F6 60 BA 66 94 51 63 64 73 [19:22:28]GetLastDocTimeStamp 1723489087 [19:22:28]current date 1723490550 [19:22:28]FM_GetShiftState [19:22:28]SAM_PROTO_GetShiftState [19:22:28]wFMCommunicate request_size=4 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 13 01 00 [19:22:28]Write to MH i2c: E2 08 00 49 11 80 13 01 00 00 00 00 00 D7 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:29]Read from MH i2c: E2 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 0E 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 0E 00 49 11 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 C4 [19:22:29]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:22:29]wFMCommunicate OK [19:22:29]SAM_PROTO_GetShiftState done [19:22:29]FM_GetShiftState done [19:22:29]opened in 1723423336 [19:22:29]opened+sec_in_day 1723509736 [19:22:29]quantity*price = 200061 [19:22:29]sum+1 = 200063 [19:22:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.62 ÐСП 1% : 17.70 ÐДС 12% : 212.45 Ðаличными: 0.00 Безнал.: 2000.62 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 60 12.08.2024 19:22 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70628 ФПД: 240897027191670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T192230&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70628&fm=240897027191670&tin=02508201610067®Number=0000000000090913&sum=200062 [19:22:30]StoreToDocumentArchive [19:22:30]shift 465 fd 70628 [19:22:30]save to /storage/0465/doc_00070628 [19:22:30]save last doc name /storage/0465/doc_00070628 to /storage/kkm_last_doc_name [19:22:30]save OK [19:22:30]Clear old archive folders... [19:22:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:22:30]tlvbuf is 01097B80 [19:22:30]SAM_PROTO_ClearQueue [19:22:30]wFMCommunicate request_size=4 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 09 00 00 [19:22:30]Write to MH i2c: E2 08 00 56 11 80 09 00 00 00 00 00 00 D9 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [19:22:30]RAPDU: 90 00 [19:22:30]wFMCommunicate OK [19:22:30]SAM_PROTO_ClearQueue done [19:22:30]KKMCreateOFDPacket [19:22:30]OFDProtocolAddRootSTLVToBuf [19:22:30]FM_MakeSignedData [19:22:30]FM_MakeSignedData [19:22:30]SAM_PROTO_SignData [19:22:30]wFMCommunicate request_size=4 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 0D 01 02 [19:22:30]Write to MH i2c: E2 08 00 57 11 80 0D 01 02 00 00 00 00 E1 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [19:22:30]RAPDU: 90 00 [19:22:30]wFMCommunicate OK [19:22:30]wFMCommunicate request_size=255 [19:22:30]MH_SAM_APDU [19:22: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 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 00 00 00 00 00 00 39 04 06 00 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F6 60 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E4 13 01 00 35 04 06 00 DB 18 35 BB [19:22:30]Write to MH i2c: E2 02 01 58 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 00 00 00 00 00 00 39 04 06 00 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F6 60 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E4 13 01 00 35 04 06 00 DB 18 35 BB 00 00 25 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [19:22:30]RAPDU: 90 00 [19:22:30]wFMCommunicate OK [19:22:30]wFMCommunicate request_size=7 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 0D 02 02 02 B3 76 [19:22:30]Write to MH i2c: E2 0A 00 59 11 80 0D 02 02 02 00 B3 76 00 00 11 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 59 11 00 90 00 DE [19:22:30]RAPDU: 90 00 [19:22:30]wFMCommunicate OK [19:22:30]wFMCommunicate request_size=4 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 0D 03 02 [19:22:30]Write to MH i2c: E2 08 00 5A 11 80 0D 03 02 00 00 00 00 E6 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 0B 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 0B 00 5A 11 00 CE F2 99 E7 40 F4 71 85 90 00 51 [19:22:30]RAPDU: CE F2 99 E7 40 F4 71 85 90 00 [19:22:30]wFMCommunicate OK [19:22:30]SAM_PROTO_SignData done [19:22:30]FM_MakeSignedData done [19:22:30]CreateOFDProtocolMessage [19:22:30]wFMCommunicate request_size=4 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 11 00 00 [19:22:30]Write to MH i2c: E2 08 00 5B 11 80 11 00 00 00 00 00 00 E6 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 17 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 17 00 5B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3B [19:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:22:30]wFMCommunicate OK [19:22:30]CreateOFDProtocolMessage done [19:22:30]OFDSenderStorePacket 70628 [19:22:30]StoreOFDPacket docnum=70628 [19:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 A5 C6 04 01 4A F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 00 00 00 00 00 00 39 04 06 00 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F6 60 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E4 13 01 00 35 04 06 00 DB 18 35 BB B3 76 CE F2 99 E7 40 F4 71 85 [19:22:30]CheckFolder [19:22:30]dirname=/storage/ofd_packets [19:22:30]CheckFolder done [19:22:30]ProducePacketName [19:22:30]name=ofd_packets/00070628 [19:22:30]NVStorageSaveData ofd_packets/00070628 [19:22:30]File name is /storage/ofd_packets/00070628 [19:22:30]Write 298 bytes [19:22:30]NVStorageSaveData done [19:22:30]OFDSenderStorePacket done [19:22:30]KKMCreateOFDPacket done [19:22:30]NVStorageSaveData kkm_last_timestamp [19:22:30]File name is /storage/kkm_last_timestamp [19:22:30]Write 4 bytes [19:22:30]NVStorageSaveData done [19:22:30]ExternCall_PrintAddStr [19:22:30]wPrintStart [19:22:30]Write to MH i2c: 01 00 00 5C 11 6D [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: 01 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: 01 07 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: 01 07 00 5C 11 00 00 00 00 00 FF 0F 82 [19:22:30]RasterBufferAndPrint [19:22:30]line Счет N : (1)141081 [19:22:30]line ИÐÐ: 02508201610067 [19:22:30]line Контрольно-КаÑÑовый Чек [19:22:30]line ПРОДÐЖР[19:22:30]line ТРК (МРК, ГÐК) : 44 [19:22:30]line Товар: 2710194210 [19:22:30]line ДТ-К-5 [19:22:30]line 26.890 * 74.40 [19:22:30]line = 2000.62 [19:22:30]line ÐДС 12% ÐСП 1% [19:22:30]line > о реализуемом товаре [19:22:30]line ИТОГО: 2000.62 [19:22:30]line ÐСП 1% : 17.70 [19:22:30]line ÐДС 12% : 212.45 [19:22:30]line Ðаличными: 0.00 [19:22:30]line Безнал.: 2000.62 [19:22:30]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:22:30]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:22:30]line СÐО: Общий режим [19:22:30]line Чек 60 12.08.2024 19:22 [19:22:30]line Смена: 465 ФФД: 1.0 [19:22:30]line ЗÐМ: 0300000140 [19:22:30]line РÐМ: 0000000000090913 [19:22:30]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:22:30]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:22:30]line ФМ: 0000000000874915 [19:22:30]line ФД: 70628 [19:22:30]line ФПД: 240897027191670 [19:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T192230&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70628&fm=240897027191670&tin=02508201610067®Number=0000000000090913&sum=200062 [19:22:31]OFD Sender: Processing packet 70628 [packets to send 67, broken 66] [19:22:31]ProducePacketName [19:22:31]name=ofd_packets/00070628 [19:22:31]OFD Sender: To server: ‡•öpG, [19:22:31]CommunicateWithHost lk.salyk.kg:30040 [19:22:31]ConnectInit lk.salyk.kg [19:22:31]written 0, free lines is 4095 [19:22:31]Connected sock=11 [19:22: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 39 31 35 0C 01 00 00 A5 C6 04 01 4A F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 69 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 7E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 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 00 00 00 00 00 00 39 04 06 00 7E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 F6 60 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E4 13 01 00 35 04 06 00 DB 18 35 BB B3 76 CE F2 99 E7 40 F4 71 85 [19:22:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F7 54 47 00 18 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E4 13 01 00 F4 03 04 00 E3 07 BA 66 B6 04 01 00 00 5F 38 85 87 E0 74 29 86 [19:22:31]CommunicateWithHost err = 0 [19:22:31]CheckOFDResponse [19:22:31]1017 (14) - 77093643461234 [19:22:31]1041 (16) - 0000000000874915 [19:22:31]1040 (4) - 70628 [19:22:31]1012 (4) - 12.08.2024 13:02 [19:22:31]1206 (1) - 0 [19:22:31]OFD Sender: Remove packet 70628 [19:22:31]ProducePacketName [19:22:31]name=ofd_packets/00070628 [19:22:31]NVStorageDeleteData [19:22:31]Write to MH i2c: 01 00 00 86 11 97 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: 01 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: 01 07 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: 01 07 00 86 11 00 00 00 00 00 FA 0C A4 [19:22:31]RasterBufferAndPrint [19:22:31]line [19:22:31]line [19:22:31]line [19:22:31]line [19:22:31]line [19:22:31]written 0, free lines is 3328 [19:22:31]MH_Cut [19:22:31]Write to MH i2c: D1 01 00 8D 11 01 70 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: D1 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: D1 01 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: D1 01 00 8D 11 00 6F [19:22:31]Write to MH i2c: 01 00 00 8E 11 9F [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]OFD Sender: No OFD packet to send [19:22:32]*** Cut start [19:22:32]*** Purtial cut [19:22:32]*** Stage 1: CUTSNS_PIN = 1 [19:22:32]Read from MH i2c: 01 [19:22:32]MH_I2C_Read... [19:22:32]*** Stop cut motor [19:22:32]*** Cut end [19:22:32]Read from MH i2c: 01 07 00 [19:22:32]MH_I2C_Read... [19:22:32]Read from MH i2c: 01 07 00 8E 11 00 00 00 00 00 FF 0F B4 [19:22:32]process_action close_receipt done [19:22:32]requested_data is exist [19:22:32]produce_requested_data [19:22:32]requested_item fm.sn is exist - process it [19:22:32]wFMCommunicate request_size=4 [19:22:32]MH_SAM_APDU [19:22:32]CAPDU: 80 11 00 00 [19:22:32]Write to MH i2c: E2 08 00 8F 11 80 11 00 00 00 00 00 00 1A [19:22:32]Write i2c OK [19:22:32]MH_I2C_Read... [19:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:32]Read from MH i2c: E2 [19:22:32]MH_I2C_Read... [19:22:32]Read from MH i2c: E2 17 00 [19:22:32]MH_I2C_Read... [19:22:32]Read from MH i2c: E2 17 00 8F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6F [19:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:22:32]wFMCommunicate OK [19:22:32]requested_item fd.num is exist - process it [19:22:32]SAM_PROTO_GetFieldsCounters [19:22:32]wFMCommunicate request_size=4 [19:22:32]MH_SAM_APDU [19:22:32]CAPDU: 80 13 00 00 [19:22:32]Write to MH i2c: E2 08 00 90 11 80 13 00 00 00 00 00 00 1D [19:22:32]Write i2c OK [19:22:32]MH_I2C_Read... [19:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:32]Read from MH i2c: E2 [19:22:32]MH_I2C_Read... [19:22:32]Read from MH i2c: E2 62 00 [19:22:32]MH_I2C_Read... [19:22:32]Read from MH i2c: E2 62 00 90 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E4 13 01 00 0E 04 04 00 D1 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 BB [19:22: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E4 13 01 00 0E 04 04 00 D1 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 [19:22:32]wFMCommunicate OK [19:22:32]SAM_PROTO_GetFieldsCounters done [19:22:32]requested_item shift.num is exist - process it [19:22:32]requested_item shift.opened is exist - process it [19:22:32]req_shift_opened [19:22:32]FM_GetShiftState [19:22:32]SAM_PROTO_GetShiftState [19:22:32]wFMCommunicate request_size=4 [19:22:32]MH_SAM_APDU [19:22:32]CAPDU: 80 13 01 00 [19:22:32]Write to MH i2c: E2 08 00 91 11 80 13 01 00 00 00 00 00 1F [19:22:32]Write i2c OK [19:22:32]MH_I2C_Read... [19:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:32]Read from MH i2c: E2 [19:22:32]MH_I2C_Read... [19:22:32]Read from MH i2c: E2 0E 00 [19:22:32]MH_I2C_Read... [19:22:32]Read from MH i2c: E2 0E 00 91 11 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 0C [19:22:32]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:22:32]wFMCommunicate OK [19:22:32]SAM_PROTO_GetShiftState done [19:22:32]FM_GetShiftState done [19:22:32]req_shift_opened done [19:22:32]requested_item shift.open_date is exist - process it [19:22:32]req_shift_open_date [19:22:32]req_shift_open_date done [19:22:32]produce_requested_data done [19:22:32]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70628,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [19:22:32]process_action_free close_receipt [19:22:32]json_value_free [19:22:32]json_value_free done [19:22:32]process_json_proto returns [19:22:32]Send response to host [19:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70628,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [19:22:32]free response buf [19:22:32]execute_script done [19:22:32]execute_script returns [19:22:32]free content buf [19:22:32]Sock 9.Close socket [19:22:32]Sock 9.Thread stoped [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:16]OFD Sender: No OFD packet to send [19:24:21]OFD Sender: No OFD packet to send [19:24:26]OFD Sender: No OFD packet to send [19:24:31]OFD Sender: No OFD packet to send [19:24:36]OFD Sender: No OFD packet to send [19:24:41]OFD Sender: No OFD packet to send [19:24:46]OFD Sender: No OFD packet to send [19:24:51]OFD Sender: No OFD packet to send [19:24:56]OFD Sender: No OFD packet to send [19:25:01]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:33:57]int [19:33:57]Write to MH i2c: 01 00 00 92 11 A3 [19:33:57]*** FLAG_PRN_KEY set [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 92 11 00 08 00 00 00 FF 0F C0 [19:33:57]state=0 [19:33:57]Key pressed [19:33:57]Feed [19:33:57]Write to MH i2c: D8 00 00 93 11 7B [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: D8 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: D8 01 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: D8 01 00 93 11 00 7C [19:33:57]int [19:33:57]Write to MH i2c: 01 00 00 94 11 A5 [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 94 11 00 48 00 00 00 3C 00 30 [19:33:57]state=2 [19:33:57]Key pressed [19:33:57]int [19:33:57]Write to MH i2c: 01 00 00 95 11 A6 [19:33:57]*** FLAG_PRN_KEY reset [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 95 11 00 00 00 00 00 F6 0F B2 [19:33:57]state=2 [19:33:57]Stop feed [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:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39: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:18]accept exits with 7 [19:43:18]New connection [19:43:18]New thread 3066699108 created [19:43:18]Thread 3066842468 joined [19:43:18]Waiting for new connection... [19:43:18] Sock 7.Parse request [19:43:18]Sock 7.Check first char [19:43:18]Sock 7.First char is OK [19:43:18]request: POST /json_proto HTTP/1.0 [19:43:18]Method: POST [19:43:18]URL: /json_proto [19:43:18]Method is POST - this is cgi request [19:43:18]url: /json_proto [19:43:18]query_string will be loaded in cgi processing [19:43:18]execute_cgi json_proto POST (null) [19:43:18]execute_cgi path=json_proto method=POST [19:43:18]POST find Content-Length [19:43:18]Host: 172.17.58.67:8080 [19:43:18]Content-Length: 623 [19:43:18]Content-Type: application/json [19:43:18] [19:43:18]POST finish read [19:43:18]Found Content-Length = 623 [19:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17469", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:18]execute_script... [19:43:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17469", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:18]POST & json_proto [19:43:18]process_json_proto [19:43:18]json parsed OK: [19:43:18]protocol is kg_v1.0 [19:43:18]action value=close_receipt [19:43:18]process_action close_receipt [19:43:18]cmd_close_receipt [19:43:18]MH_GetDate [19:43:18]Write to MH i2c: F0 00 00 96 11 96 [19:43:18]Write i2c OK [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: F0 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: F0 09 00 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: F0 09 00 96 11 00 D8 65 BA 66 94 51 63 64 A8 [19:43:18]GetLastDocTimeStamp 1723490550 [19:43:18]current date 1723491800 [19:43:18]FM_GetShiftState [19:43:18]SAM_PROTO_GetShiftState [19:43:18]wFMCommunicate request_size=4 [19:43:18]MH_SAM_APDU [19:43:18]CAPDU: 80 13 01 00 [19:43:18]Write to MH i2c: E2 08 00 97 11 80 13 01 00 00 00 00 00 25 [19:43:18]Write i2c OK [19:43:18]MH_I2C_Read... [19:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:18]Read from MH i2c: E2 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: E2 0E 00 [19:43:18]MH_I2C_Read... [19:43:18]Read from MH i2c: E2 0E 00 97 11 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 12 [19:43:18]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:43:18]wFMCommunicate OK [19:43:18]SAM_PROTO_GetShiftState done [19:43:18]FM_GetShiftState done [19:43:18]opened in 1723423336 [19:43:18]opened+sec_in_day 1723509736 [19:43:18]quantity*price = 15100 [19:43:18]sum+1 = 15101 [19:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 ÐСП 1% : 1.34 ÐДС 12% : 16.03 Ðаличными: 151.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 61 12.08.2024 19:43 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70629 ФПД: 189951397728497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194320&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70629&fm=189951397728497&tin=02508201610067®Number=0000000000090913&sum=15100 0 [19:43:19]StoreToDocumentArchive [19:43:19]shift 465 fd 70629 [19:43:19]save to /storage/0465/doc_00070629 [19:43:19]save last doc name /storage/0465/doc_00070629 to /storage/kkm_last_doc_name [19:43:19]save OK [19:43:19]Clear old archive folders... [19:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:43:19]tlvbuf is 0109DD10 [19:43:19]SAM_PROTO_ClearQueue [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 09 00 00 [19:43:19]Write to MH i2c: E2 08 00 A4 11 80 09 00 00 00 00 00 00 27 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]SAM_PROTO_ClearQueue done [19:43:19]KKMCreateOFDPacket [19:43:19]OFDProtocolAddRootSTLVToBuf [19:43:19]FM_MakeSignedData [19:43:19]FM_MakeSignedData [19:43:19]SAM_PROTO_SignData [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 01 02 [19:43:19]Write to MH i2c: E2 08 00 A5 11 80 0D 01 02 00 00 00 00 2F [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]wFMCommunicate request_size=255 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D8 65 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 [19:43:19]Write to MH i2c: E2 02 01 A6 11 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D8 65 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 00 00 EA [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]wFMCommunicate request_size=35 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E5 13 01 00 35 04 06 00 AC C2 81 96 10 F1 [19:43:19]Write to MH i2c: E2 26 00 A7 11 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E5 13 01 00 35 04 06 00 AC C2 81 96 10 F1 00 00 A6 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 03 02 [19:43:19]Write to MH i2c: E2 08 00 A8 11 80 0D 03 02 00 00 00 00 34 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:20]Read from MH i2c: E2 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: E2 0B 00 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: E2 0B 00 A8 11 00 3E 2F 9A 49 23 AC 38 DF 90 00 6B [19:43:20]RAPDU: 3E 2F 9A 49 23 AC 38 DF 90 00 [19:43:20]wFMCommunicate OK [19:43:20]SAM_PROTO_SignData done [19:43:20]FM_MakeSignedData done [19:43:20]CreateOFDProtocolMessage [19:43:20]wFMCommunicate request_size=4 [19:43:20]MH_SAM_APDU [19:43:20]CAPDU: 80 11 00 00 [19:43:20]Write to MH i2c: E2 08 00 A9 11 80 11 00 00 00 00 00 00 34 [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:20]Read from MH i2c: E2 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: E2 17 00 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: E2 17 00 A9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 89 [19:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:43:20]wFMCommunicate OK [19:43:20]CreateOFDProtocolMessage done [19:43:20]OFDSenderStorePacket 70629 [19:43:20]StoreOFDPacket docnum=70629 [19:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 28 01 00 00 47 A0 20 01 BE AA 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D8 65 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E5 13 01 00 35 04 06 00 AC C2 81 96 10 F1 3E 2F 9A 49 23 AC 38 DF [19:43:20]CheckFolder [19:43:20]dirname=/storage/ofd_packets [19:43:20]CheckFolder done [19:43:20]ProducePacketName [19:43:20]name=ofd_packets/00070629 [19:43:20]NVStorageSaveData ofd_packets/00070629 [19:43:20]File name is /storage/ofd_packets/00070629 [19:43:20]Write 326 bytes [19:43:20]NVStorageSaveData done [19:43:20]OFDSenderStorePacket done [19:43:20]KKMCreateOFDPacket done [19:43:20]NVStorageSaveData kkm_last_timestamp [19:43:20]File name is /storage/kkm_last_timestamp [19:43:20]Write 4 bytes [19:43:20]NVStorageSaveData done [19:43:20]ExternCall_PrintAddStr [19:43:20]wPrintStart [19:43:20]Write to MH i2c: 01 00 00 AA 11 BB [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 07 00 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 07 00 AA 11 00 00 00 00 00 FF 0F D0 [19:43:20]RasterBufferAndPrint [19:43:20]line Счет N : (3)17469 [19:43:20]line ИÐÐ: 02508201610067 [19:43:20]line Контрольно-КаÑÑовый Чек [19:43:20]line ПРОДÐЖР[19:43:20]line Товар: 48742245 [19:43:20]line Сигареты Parliament Silver Blue [19:43:20]line 1.000 * 151.00 [19:43:20]line = 151.00 [19:43:20]line ÐДС 12% ÐСП 1% [19:43:20]line > о реализуемом товаре [19:43:20]line ИТОГО: 151.00 [19:43:20]line ÐСП 1% : 1.34 [19:43:20]line ÐДС 12% : 16.03 [19:43:20]line Ðаличными: 151.00 [19:43:20]line Безнал.: 0.00 [19:43:20]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:43:20]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:43:20]line СÐО: Общий режим [19:43:20]line Чек 61 12.08.2024 19:43 [19:43:20]line Смена: 465 ФФД: 1.0 [19:43:20]line ЗÐМ: 0300000140 [19:43:20]line РÐМ: 0000000000090913 [19:43:20]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:43:20]line ФМ: 0000000000874915 [19:43:20]line ФД: 70629 [19:43:20]line ФПД: 189951397728497 [19:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194320&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70629&fm=189951397728497&tin=02508201610067®Number=0000000000090913&sum=15100 [19:43:20]OFD Sender: Processing packet 70629 [packets to send 67, broken 66] [19:43:20]ProducePacketName [19:43:20]name=ofd_packets/00070629 [19:43:20]OFD Sender: To server: ‡•öpG, [19:43:20]CommunicateWithHost lk.salyk.kg:30040 [19:43:20]ConnectInit lk.salyk.kg [19:43:20]line 0 [19:43:20]written 0, free lines is 4095 [19:43:20]Connected sock=10 [19:43: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 39 31 35 28 01 00 00 47 A0 20 01 BE AA 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D8 65 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E5 13 01 00 35 04 06 00 AC C2 81 96 10 F1 3E 2F 9A 49 23 AC 38 DF [19:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 05 ED 47 00 F7 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E5 13 01 00 F4 03 04 00 C4 0C BA 66 B6 04 01 00 00 1F A3 09 25 E2 46 DB E8 [19:43:20]CommunicateWithHost err = 0 [19:43:20]CheckOFDResponse [19:43:20]1017 (14) - 77093643461234 [19:43:20]1041 (16) - 0000000000874915 [19:43:20]1040 (4) - 70629 [19:43:20]1012 (4) - 12.08.2024 13:23 [19:43:20]1206 (1) - 0 [19:43:20]OFD Sender: Remove packet 70629 [19:43:20]ProducePacketName [19:43:20]name=ofd_packets/00070629 [19:43:20]NVStorageDeleteData [19:43:20]Write to MH i2c: 01 00 00 D3 11 E4 [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 07 00 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 07 00 D3 11 00 00 00 00 00 FE 0C F5 [19:43:20]RasterBufferAndPrint [19:43:20]line [19:43:20]line [19:43:20]line [19:43:20]line [19:43:20]line [19:43:20]written 0, free lines is 3331 [19:43:20]MH_Cut [19:43:20]Write to MH i2c: D1 01 00 DA 11 01 BD [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: D1 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: D1 01 00 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: D1 01 00 DA 11 00 BC [19:43:20]Write to MH i2c: 01 00 00 DB 11 EC [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:21]OFD Sender: No OFD packet to send [19:43:21]*** Cut start [19:43:21]*** Purtial cut [19:43:21]*** CUTSNS_PIN = 0 [19:43:21]*** Stage 1: CUTSNS_PIN = 1 [19:43:23]Read from MH i2c: 01 [19:43:23]MH_I2C_Read... [19:43:23]*** Stop cut motor [19:43:23]*** Cut end [19:43:23]Read from MH i2c: 01 07 00 [19:43:23]MH_I2C_Read... [19:43:23]Read from MH i2c: 01 07 00 DB 11 00 00 00 00 00 FF 0F 01 [19:43:23]process_action close_receipt done [19:43:23]requested_data is exist [19:43:23]produce_requested_data [19:43:23]requested_item fm.sn is exist - process it [19:43:23]wFMCommunicate request_size=4 [19:43:23]MH_SAM_APDU [19:43:23]CAPDU: 80 11 00 00 [19:43:23]Write to MH i2c: E2 08 00 DC 11 80 11 00 00 00 00 00 00 67 [19:43:23]Write i2c OK [19:43:23]MH_I2C_Read... [19:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:23]Read from MH i2c: E2 [19:43:23]MH_I2C_Read... [19:43:23]Read from MH i2c: E2 17 00 [19:43:23]MH_I2C_Read... [19:43:23]Read from MH i2c: E2 17 00 DC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 BC [19:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:43:23]wFMCommunicate OK [19:43:23]requested_item fd.num is exist - process it [19:43:23]SAM_PROTO_GetFieldsCounters [19:43:23]wFMCommunicate request_size=4 [19:43:23]MH_SAM_APDU [19:43:23]CAPDU: 80 13 00 00 [19:43:23]Write to MH i2c: E2 08 00 DD 11 80 13 00 00 00 00 00 00 6A [19:43:23]Write i2c OK [19:43:23]MH_I2C_Read... [19:43:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:23]Read from MH i2c: E2 [19:43:23]MH_I2C_Read... [19:43:23]Read from MH i2c: E2 62 00 [19:43:23]MH_I2C_Read... [19:43:23]Read from MH i2c: E2 62 00 DD 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E5 13 01 00 0E 04 04 00 D1 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 0C [19:43: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E5 13 01 00 0E 04 04 00 D1 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 [19:43:23]wFMCommunicate OK [19:43:23]SAM_PROTO_GetFieldsCounters done [19:43:23]requested_item shift.num is exist - process it [19:43:23]requested_item shift.opened is exist - process it [19:43:23]req_shift_opened [19:43:23]FM_GetShiftState [19:43:23]SAM_PROTO_GetShiftState [19:43:23]wFMCommunicate request_size=4 [19:43:23]MH_SAM_APDU [19:43:23]CAPDU: 80 13 01 00 [19:43:23]Write to MH i2c: E2 08 00 DE 11 80 13 01 00 00 00 00 00 6C [19:43:23]Write i2c OK [19:43:23]MH_I2C_Read... [19:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:23]Read from MH i2c: E2 [19:43:23]MH_I2C_Read... [19:43:23]Read from MH i2c: E2 0E 00 [19:43:23]MH_I2C_Read... [19:43:23]Read from MH i2c: E2 0E 00 DE 11 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 59 [19:43:23]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:43:23]wFMCommunicate OK [19:43:23]SAM_PROTO_GetShiftState done [19:43:23]FM_GetShiftState done [19:43:23]req_shift_opened done [19:43:23]requested_item shift.open_date is exist - process it [19:43:23]req_shift_open_date [19:43:23]req_shift_open_date done [19:43:23]produce_requested_data done [19:43:23]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70629,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [19:43:23]process_action_free close_receipt [19:43:23]json_value_free [19:43:23]json_value_free done [19:43:23]process_json_proto returns [19:43:23]Send response to host [19:43:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70629,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [19:43:23]free response buf [19:43:23]execute_script done [19:43:23]execute_script returns [19:43:23]free content buf [19:43:23]Sock 7.Close socket [19:43:23]Sock 7.Thread stoped [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:33]accept exits with 9 [19:43:33]New connection [19:43:33]New thread 3066842468 created [19:43:33]Thread 3066699108 joined [19:43:33]Waiting for new connection... [19:43:33] Sock 9.Parse request [19:43:33]Sock 9.Check first char [19:43:33]Sock 9.First char is OK [19:43:33]request: POST /json_proto HTTP/1.0 [19:43:33]Method: POST [19:43:33]URL: /json_proto [19:43:33]Method is POST - this is cgi request [19:43:33]url: /json_proto [19:43:33]query_string will be loaded in cgi processing [19:43:33]execute_cgi json_proto POST (null) [19:43:33]execute_cgi path=json_proto method=POST [19:43:33]POST find Content-Length [19:43:33]Host: 172.17.58.67:8080 [19:43:33]Content-Length: 805 [19:43:33]Content-Type: application/json [19:43:33] [19:43:33]POST finish read [19:43:33]Found Content-Length = 805 [19:43:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:33]execute_script... [19:43: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)141082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:33]POST & json_proto [19:43:33]process_json_proto [19:43:33]json parsed OK: [19:43:33]protocol is kg_v1.0 [19:43:33]action value=close_receipt [19:43:33]process_action close_receipt [19:43:33]cmd_close_receipt [19:43:33]MH_GetDate [19:43:33]Write to MH i2c: F0 00 00 DF 11 DF [19:43:33]Write i2c OK [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: F0 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: F0 09 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: F0 09 00 DF 11 00 E7 65 BA 66 94 51 63 64 00 [19:43:33]GetLastDocTimeStamp 1723491800 [19:43:33]current date 1723491815 [19:43:33]FM_GetShiftState [19:43:33]SAM_PROTO_GetShiftState [19:43:33]wFMCommunicate request_size=4 [19:43:33]MH_SAM_APDU [19:43:33]CAPDU: 80 13 01 00 [19:43:33]Write to MH i2c: E2 08 00 E0 11 80 13 01 00 00 00 00 00 6E [19:43:33]Write i2c OK [19:43:33]MH_I2C_Read... [19:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:33]Read from MH i2c: E2 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: E2 0E 00 [19:43:33]MH_I2C_Read... [19:43:33]Read from MH i2c: E2 0E 00 E0 11 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 5B [19:43:33]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:43:33]wFMCommunicate OK [19:43:33]SAM_PROTO_GetShiftState done [19:43:33]FM_GetShiftState done [19:43:33]opened in 1723423336 [19:43:33]opened+sec_in_day 1723509736 [19:43:33]quantity*price = 50018 [19:43:33]sum+1 = 50019 [19:43:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 62 12.08.2024 19:43 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70630 ФПД: 91706519453848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194335&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70630&fm=91706519453848&tin=02508201610067®Number=0000000000090913&sum=50018 [19:43:34]StoreToDocumentArchive [19:43:34]shift 465 fd 70630 [19:43:34]save to /storage/0465/doc_00070630 [19:43:34]save last doc name /storage/0465/doc_00070630 to /storage/kkm_last_doc_name [19:43:34]save OK [19:43:34]Clear old archive folders... [19:43:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:34]tlvbuf is 010B56F0 [19:43:34]SAM_PROTO_ClearQueue [19:43:34]wFMCommunicate request_size=4 [19:43:34]MH_SAM_APDU [19:43:34]CAPDU: 80 09 00 00 [19:43:34]Write to MH i2c: E2 08 00 ED 11 80 09 00 00 00 00 00 00 70 [19:43:34]Write i2c OK [19:43:34]MH_I2C_Read... [19:43:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:34]Read from MH i2c: E2 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 03 00 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [19:43:34]RAPDU: 90 00 [19:43:34]wFMCommunicate OK [19:43:34]SAM_PROTO_ClearQueue done [19:43:34]KKMCreateOFDPacket [19:43:34]OFDProtocolAddRootSTLVToBuf [19:43:34]FM_MakeSignedData [19:43:34]FM_MakeSignedData [19:43:34]SAM_PROTO_SignData [19:43:34]wFMCommunicate request_size=4 [19:43:34]MH_SAM_APDU [19:43:34]CAPDU: 80 0D 01 02 [19:43:34]Write to MH i2c: E2 08 00 EE 11 80 0D 01 02 00 00 00 00 78 [19:43:34]Write i2c OK [19:43:34]MH_I2C_Read... [19:43:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:34]Read from MH i2c: E2 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 03 00 [19:43:34]MH_I2C_Read... [19:43:34]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [19:43:34]RAPDU: 90 00 [19:43:34]wFMCommunicate OK [19:43:34]wFMCommunicate request_size=255 [19:43:34]MH_SAM_APDU [19:43:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E7 65 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E6 13 01 00 35 04 06 00 53 [19:43:34]Write to MH i2c: E2 02 01 EF 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E7 65 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E6 13 01 00 35 04 06 00 53 00 00 E3 [19:43:34]Write i2c OK [19:43:34]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [19:43:35]RAPDU: 90 00 [19:43:35]wFMCommunicate OK [19:43:35]wFMCommunicate request_size=10 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 0D 02 02 05 68 16 84 00 98 [19:43:35]Write to MH i2c: E2 0D 00 F0 11 80 0D 02 02 05 00 68 16 84 00 98 00 00 1F [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [19:43:35]RAPDU: 90 00 [19:43:35]wFMCommunicate OK [19:43:35]wFMCommunicate request_size=4 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 0D 03 02 [19:43:35]Write to MH i2c: E2 08 00 F1 11 80 0D 03 02 00 00 00 00 7D [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 0B 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 0B 00 F1 11 00 DD F2 02 98 2C 1B 44 5D 90 00 CF [19:43:35]RAPDU: DD F2 02 98 2C 1B 44 5D 90 00 [19:43:35]wFMCommunicate OK [19:43:35]SAM_PROTO_SignData done [19:43:35]FM_MakeSignedData done [19:43:35]CreateOFDProtocolMessage [19:43:35]wFMCommunicate request_size=4 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 11 00 00 [19:43:35]Write to MH i2c: E2 08 00 F2 11 80 11 00 00 00 00 00 00 7D [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 17 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 17 00 F2 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 D2 [19:43:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:43:35]wFMCommunicate OK [19:43:35]CreateOFDProtocolMessage done [19:43:35]OFDSenderStorePacket 70630 [19:43:35]StoreOFDPacket docnum=70630 [19:43:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 21 B8 07 01 30 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E7 65 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E6 13 01 00 35 04 06 00 53 68 16 84 00 98 DD F2 02 98 2C 1B 44 5D [19:43:35]CheckFolder [19:43:35]dirname=/storage/ofd_packets [19:43:35]CheckFolder done [19:43:35]ProducePacketName [19:43:35]name=ofd_packets/00070630 [19:43:35]NVStorageSaveData ofd_packets/00070630 [19:43:35]File name is /storage/ofd_packets/00070630 [19:43:35]Write 301 bytes [19:43:35]NVStorageSaveData done [19:43:35]OFDSenderStorePacket done [19:43:35]KKMCreateOFDPacket done [19:43:35]NVStorageSaveData kkm_last_timestamp [19:43:35]File name is /storage/kkm_last_timestamp [19:43:35]Write 4 bytes [19:43:35]NVStorageSaveData done [19:43:35]ExternCall_PrintAddStr [19:43:35]wPrintStart [19:43:35]Write to MH i2c: 01 00 00 F3 11 04 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: 01 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: 01 07 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: 01 07 00 F3 11 00 00 00 00 00 FF 0F 19 [19:43:35]RasterBufferAndPrint [19:43:35]line Счет N : (1)141082 [19:43:35]line ИÐÐ: 02508201610067 [19:43:35]line Контрольно-КаÑÑовый Чек [19:43:35]line ПРОДÐЖР[19:43:35]line ТРК (МРК, ГÐК) : 31 [19:43:35]line Товар: 2710124130 [19:43:35]line Ðи-92-К-5 [19:43:35]line 7.590 * 65.90 [19:43:35]line = 500.18 [19:43:35]line ÐДС 12% ÐСП 1% [19:43:35]line > о реализуемом товаре [19:43:35]line ИТОГО: 500.18 [19:43:35]line ÐСП 1% : 4.43 [19:43:35]line ÐДС 12% : 53.12 [19:43:35]line Ðаличными: 0.00 [19:43:35]line Безнал.: 500.18 [19:43:35]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:43:35]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:43:35]line СÐО: Общий режим [19:43:35]line Чек 62 12.08.2024 19:43 [19:43:35]line Смена: 465 ФФД: 1.0 [19:43:35]line ЗÐМ: 0300000140 [19:43:35]line РÐМ: 0000000000090913 [19:43:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:43:35]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:43:35]line ФМ: 0000000000874915 [19:43:35]line ФД: 70630 [19:43:35]line ФПД: 91706519453848 [19:43:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194335&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70630&fm=91706519453848&tin=02508201610067®Number=0000000000090913&sum=50018 [19:43:35]written 0, free lines is 4095 [19:43:35]OFD Sender: Processing packet 70630 [packets to send 67, broken 66] [19:43:35]ProducePacketName [19:43:35]name=ofd_packets/00070630 [19:43:35]OFD Sender: To server: ‡•öpG, [19:43:35]CommunicateWithHost lk.salyk.kg:30040 [19:43:35]ConnectInit lk.salyk.kg [19:43:35]Connected sock=10 [19:43: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 39 31 35 0F 01 00 00 21 B8 07 01 30 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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E7 65 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E6 13 01 00 35 04 06 00 53 68 16 84 00 98 DD F2 02 98 2C 1B 44 5D [19:43:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A4 8A 47 00 12 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 39 31 35 10 04 04 00 E6 13 01 00 F4 03 04 00 D3 0C BA 66 B6 04 01 00 00 99 62 69 96 03 1E 15 11 [19:43:35]CommunicateWithHost err = 0 [19:43:35]CheckOFDResponse [19:43:35]1017 (14) - 77093643461234 [19:43:35]1041 (16) - 0000000000874915 [19:43:35]1040 (4) - 70630 [19:43:35]1012 (4) - 12.08.2024 13:23 [19:43:35]1206 (1) - 0 [19:43:35]OFD Sender: Remove packet 70630 [19:43:35]ProducePacketName [19:43:35]name=ofd_packets/00070630 [19:43:35]NVStorageDeleteData [19:43:35]Write to MH i2c: 01 00 00 1D 12 2F [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: 01 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: 01 07 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: 01 07 00 1D 12 00 00 00 00 00 ED 0C 2F [19:43:35]RasterBufferAndPrint [19:43:35]line [19:43:35]line [19:43:35]line [19:43:35]line [19:43:35]line [19:43:35]written 0, free lines is 3315 [19:43:35]MH_Cut [19:43:35]Write to MH i2c: D1 01 00 24 12 01 08 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: D1 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: D1 01 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: D1 01 00 24 12 00 07 [19:43:35]Write to MH i2c: 01 00 00 25 12 37 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:36]OFD Sender: No OFD packet to send [19:43:36]*** Cut start [19:43:36]*** Purtial cut [19:43:36]*** Stage 1: CUTSNS_PIN = 1 [19:43:36]Read from MH i2c: 01 [19:43:36]MH_I2C_Read... [19:43:36]*** Stop cut motor [19:43:36]*** Cut end [19:43:36]Read from MH i2c: 01 07 00 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: 01 07 00 25 12 00 00 00 00 00 FF 0F 4C [19:43:36]process_action close_receipt done [19:43:36]requested_data is exist [19:43:36]produce_requested_data [19:43:36]requested_item fm.sn is exist - process it [19:43:36]wFMCommunicate request_size=4 [19:43:36]MH_SAM_APDU [19:43:36]CAPDU: 80 11 00 00 [19:43:36]Write to MH i2c: E2 08 00 26 12 80 11 00 00 00 00 00 00 B2 [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:36]Read from MH i2c: E2 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 17 00 [19:43:36]MH_I2C_Read... [19:43:36]Read from MH i2c: E2 17 00 26 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 07 [19:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:43:36]wFMCommunicate OK [19:43:36]requested_item fd.num is exist - process it [19:43:36]SAM_PROTO_GetFieldsCounters [19:43:36]wFMCommunicate request_size=4 [19:43:36]MH_SAM_APDU [19:43:36]CAPDU: 80 13 00 00 [19:43:36]Write to MH i2c: E2 08 00 27 12 80 13 00 00 00 00 00 00 B5 [19:43:36]Write i2c OK [19:43:36]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 62 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 62 00 27 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E6 13 01 00 0E 04 04 00 D1 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 5B [19:43: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E6 13 01 00 0E 04 04 00 D1 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 [19:43:37]wFMCommunicate OK [19:43:37]SAM_PROTO_GetFieldsCounters done [19:43:37]requested_item shift.num is exist - process it [19:43:37]requested_item shift.opened is exist - process it [19:43:37]req_shift_opened [19:43:37]FM_GetShiftState [19:43:37]SAM_PROTO_GetShiftState [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 13 01 00 [19:43:37]Write to MH i2c: E2 08 00 28 12 80 13 01 00 00 00 00 00 B7 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0E 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0E 00 28 12 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 A4 [19:43:37]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:43:37]wFMCommunicate OK [19:43:37]SAM_PROTO_GetShiftState done [19:43:37]FM_GetShiftState done [19:43:37]req_shift_opened done [19:43:37]requested_item shift.open_date is exist - process it [19:43:37]req_shift_open_date [19:43:37]req_shift_open_date done [19:43:37]produce_requested_data done [19:43:37]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70630,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [19:43:37]process_action_free close_receipt [19:43:37]json_value_free [19:43:37]json_value_free done [19:43:37]process_json_proto returns [19:43:37]Send response to host [19:43:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70630,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [19:43:37]free response buf [19:43:37]execute_script done [19:43:37]execute_script returns [19:43:37]free content buf [19:43:37]Sock 9.Close socket [19:43:37]Sock 9.Thread stoped [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:44:58]int [19:44:58]Write to MH i2c: 01 00 00 29 12 3B [19:44:58]*** FLAG_PRN_KEY set [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 29 12 00 08 00 00 00 FF 0F 58 [19:44:58]state=0 [19:44:58]Key pressed [19:44:58]Feed [19:44:58]Write to MH i2c: D8 00 00 2A 12 13 [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D8 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D8 01 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: D8 01 00 2A 12 00 14 [19:44:58]int [19:44:58]Write to MH i2c: 01 00 00 2B 12 3D [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 2B 12 00 48 00 00 00 3C 00 C8 [19:44:58]state=2 [19:44:58]Key pressed [19:44:58]int [19:44:58]Write to MH i2c: 01 00 00 2C 12 3E [19:44:58]*** FLAG_PRN_KEY reset [19:44:58]Write i2c OK [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 [19:44:58]MH_I2C_Read... [19:44:58]Read from MH i2c: 01 07 00 2C 12 00 00 00 00 00 F6 0F 4A [19:44:58]state=2 [19:44:58]Stop feed [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:10]accept exits with 7 [19:46:10]New connection [19:46:10]New thread 3066699108 created [19:46:10]Thread 3066842468 joined [19:46:10]Waiting for new connection... [19:46:10] Sock 7.Parse request [19:46:10]Sock 7.Check first char [19:46:10]Sock 7.First char is OK [19:46:10]request: POST /json_proto HTTP/1.0 [19:46:10]Method: POST [19:46:10]URL: /json_proto [19:46:10]Method is POST - this is cgi request [19:46:10]url: /json_proto [19:46:10]query_string will be loaded in cgi processing [19:46:10]execute_cgi json_proto POST (null) [19:46:10]execute_cgi path=json_proto method=POST [19:46:10]POST find Content-Length [19:46:10]Host: 172.17.58.67:8080 [19:46:10]Content-Length: 620 [19:46:10]Content-Type: application/json [19:46:10] [19:46:10]POST finish read [19:46:10]Found Content-Length = 620 [19:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17470", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:10]execute_script... [19:46:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)17470", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:10]POST & json_proto [19:46:10]process_json_proto [19:46:10]json parsed OK: [19:46:10]protocol is kg_v1.0 [19:46:10]action value=close_receipt [19:46:10]process_action close_receipt [19:46:10]cmd_close_receipt [19:46:10]MH_GetDate [19:46:10]Write to MH i2c: F0 00 00 2D 12 2E [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: F0 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: F0 09 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: F0 09 00 2D 12 00 84 66 BA 66 94 51 63 64 ED [19:46:10]GetLastDocTimeStamp 1723491815 [19:46:10]current date 1723491972 [19:46:10]FM_GetShiftState [19:46:10]SAM_PROTO_GetShiftState [19:46:10]wFMCommunicate request_size=4 [19:46:10]MH_SAM_APDU [19:46:10]CAPDU: 80 13 01 00 [19:46:10]Write to MH i2c: E2 08 00 2E 12 80 13 01 00 00 00 00 00 BD [19:46:10]Write i2c OK [19:46:10]MH_I2C_Read... [19:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:10]Read from MH i2c: E2 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 0E 00 [19:46:10]MH_I2C_Read... [19:46:10]Read from MH i2c: E2 0E 00 2E 12 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 AA [19:46:10]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:46:10]wFMCommunicate OK [19:46:10]SAM_PROTO_GetShiftState done [19:46:10]FM_GetShiftState done [19:46:10]opened in 1723423336 [19:46:10]opened+sec_in_day 1723509736 [19:46:10]quantity*price = 14000 [19:46:10]sum+1 = 14001 [19:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 ÐСП 1% : 1.24 ÐДС 12% : 14.87 Ðаличными: 140.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 63 12.08.2024 19:46 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70631 ФПД: 148374331055268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194612&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70631&fm=148374331055268&tin=02508201610067®Number=0000000000090913&sum=14000 0 [19:46:11]StoreToDocumentArchive [19:46:11]shift 465 fd 70631 [19:46:11]save to /storage/0465/doc_00070631 [19:46:11]save last doc name /storage/0465/doc_00070631 to /storage/kkm_last_doc_name [19:46:11]save OK [19:46:11]Clear old archive folders... [19:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:46:11]tlvbuf is 010E25C0 [19:46:11]SAM_PROTO_ClearQueue [19:46:11]wFMCommunicate request_size=4 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 09 00 00 [19:46:11]Write to MH i2c: E2 08 00 3B 12 80 09 00 00 00 00 00 00 BF [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [19:46:11]RAPDU: 90 00 [19:46:11]wFMCommunicate OK [19:46:11]SAM_PROTO_ClearQueue done [19:46:11]KKMCreateOFDPacket [19:46:11]OFDProtocolAddRootSTLVToBuf [19:46:11]FM_MakeSignedData [19:46:11]FM_MakeSignedData [19:46:11]SAM_PROTO_SignData [19:46:11]wFMCommunicate request_size=4 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 0D 01 02 [19:46:11]Write to MH i2c: E2 08 00 3C 12 80 0D 01 02 00 00 00 00 C7 [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [19:46:11]RAPDU: 90 00 [19:46:11]wFMCommunicate OK [19:46:11]wFMCommunicate request_size=255 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 84 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 [19:46:11]Write to MH i2c: E2 02 01 3D 12 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 84 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 00 00 C0 [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [19:46:11]RAPDU: 90 00 [19:46:11]wFMCommunicate OK [19:46:11]wFMCommunicate request_size=32 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 31 35 10 04 04 00 E7 13 01 00 35 04 06 00 86 F2 17 4B DC A4 [19:46:11]Write to MH i2c: E2 23 00 3E 12 80 0D 02 02 1B 00 30 30 30 38 37 34 39 31 35 10 04 04 00 E7 13 01 00 35 04 06 00 86 F2 17 4B DC A4 00 00 7E [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:11]Read from MH i2c: E2 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 [19:46:11]MH_I2C_Read... [19:46:11]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [19:46:11]RAPDU: 90 00 [19:46:11]wFMCommunicate OK [19:46:11]wFMCommunicate request_size=4 [19:46:11]MH_SAM_APDU [19:46:11]CAPDU: 80 0D 03 02 [19:46:11]Write to MH i2c: E2 08 00 3F 12 80 0D 03 02 00 00 00 00 CC [19:46:11]Write i2c OK [19:46:11]MH_I2C_Read... [19:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:12]Read from MH i2c: E2 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: E2 0B 00 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: E2 0B 00 3F 12 00 34 28 0E BD 00 6A DF C3 90 00 00 [19:46:12]RAPDU: 34 28 0E BD 00 6A DF C3 90 00 [19:46:12]wFMCommunicate OK [19:46:12]SAM_PROTO_SignData done [19:46:12]FM_MakeSignedData done [19:46:12]CreateOFDProtocolMessage [19:46:12]wFMCommunicate request_size=4 [19:46:12]MH_SAM_APDU [19:46:12]CAPDU: 80 11 00 00 [19:46:12]Write to MH i2c: E2 08 00 40 12 80 11 00 00 00 00 00 00 CC [19:46:12]Write i2c OK [19:46:12]MH_I2C_Read... [19:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:12]Read from MH i2c: E2 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: E2 17 00 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: E2 17 00 40 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 21 [19:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:46:12]wFMCommunicate OK [19:46:12]CreateOFDProtocolMessage done [19:46:12]OFDSenderStorePacket 70631 [19:46:12]StoreOFDPacket docnum=70631 [19:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 25 01 00 00 99 A2 1D 01 3C 15 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 84 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E7 13 01 00 35 04 06 00 86 F2 17 4B DC A4 34 28 0E BD 00 6A DF C3 [19:46:12]CheckFolder [19:46:12]dirname=/storage/ofd_packets [19:46:12]CheckFolder done [19:46:12]ProducePacketName [19:46:12]name=ofd_packets/00070631 [19:46:12]NVStorageSaveData ofd_packets/00070631 [19:46:12]File name is /storage/ofd_packets/00070631 [19:46:12]Write 323 bytes [19:46:12]NVStorageSaveData done [19:46:12]OFDSenderStorePacket done [19:46:12]KKMCreateOFDPacket done [19:46:12]NVStorageSaveData kkm_last_timestamp [19:46:12]File name is /storage/kkm_last_timestamp [19:46:12]Write 4 bytes [19:46:12]NVStorageSaveData done [19:46:12]ExternCall_PrintAddStr [19:46:12]wPrintStart [19:46:12]Write to MH i2c: 01 00 00 41 12 53 [19:46:12]Write i2c OK [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: 01 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: 01 07 00 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 FF 0F 68 [19:46:12]RasterBufferAndPrint [19:46:12]line Счет N : (3)17470 [19:46:12]line ИÐÐ: 02508201610067 [19:46:12]line Контрольно-КаÑÑовый Чек [19:46:12]line ПРОДÐЖР[19:46:12]line Товар: 48747059 [19:46:12]line Сигареты Winston Legend Blue [19:46:12]line 1.000 * 140.00 [19:46:12]line = 140.00 [19:46:12]line ÐДС 12% ÐСП 1% [19:46:12]line > о реализуемом товаре [19:46:12]line ИТОГО: 140.00 [19:46:12]line ÐСП 1% : 1.24 [19:46:12]line ÐДС 12% : 14.87 [19:46:12]line Ðаличными: 140.00 [19:46:12]line Безнал.: 0.00 [19:46:12]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:46:12]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:46:12]line СÐО: Общий режим [19:46:12]line Чек 63 12.08.2024 19:46 [19:46:12]line Смена: 465 ФФД: 1.0 [19:46:12]line ЗÐМ: 0300000140 [19:46:12]line РÐМ: 0000000000090913 [19:46:12]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:46:12]line ФМ: 0000000000874915 [19:46:12]line ФД: 70631 [19:46:12]line ФПД: 148374331055268 [19:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194612&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70631&fm=148374331055268&tin=02508201610067®Number=0000000000090913&sum=14000 [19:46:12]line 0 [19:46:12]OFD Sender: Processing packet 70631 [packets to send 67, broken 66] [19:46:12]ProducePacketName [19:46:12]name=ofd_packets/00070631 [19:46:12]OFD Sender: To server: ‡•öpG, [19:46:12]CommunicateWithHost lk.salyk.kg:30040 [19:46:12]ConnectInit lk.salyk.kg [19:46:12]written 0, free lines is 4095 [19:46:12]Connected sock=10 [19:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 25 01 00 00 99 A2 1D 01 3C 15 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 84 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E7 13 01 00 35 04 06 00 86 F2 17 4B DC A4 34 28 0E BD 00 6A DF C3 [19:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 F5 0A 47 00 D7 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E7 13 01 00 F4 03 04 00 70 0D BA 66 B6 04 01 00 00 99 27 D8 3E C5 51 4B BD [19:46:12]CommunicateWithHost err = 0 [19:46:12]CheckOFDResponse [19:46:12]1017 (14) - 77093643461234 [19:46:12]1041 (16) - 0000000000874915 [19:46:12]1040 (4) - 70631 [19:46:12]1012 (4) - 12.08.2024 13:26 [19:46:12]1206 (1) - 0 [19:46:12]OFD Sender: Remove packet 70631 [19:46:12]ProducePacketName [19:46:12]name=ofd_packets/00070631 [19:46:12]NVStorageDeleteData [19:46:12]Write to MH i2c: 01 00 00 6A 12 7C [19:46:12]Write i2c OK [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: 01 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: 01 07 00 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: 01 07 00 6A 12 00 00 00 00 00 F4 0C 83 [19:46:12]RasterBufferAndPrint [19:46:12]line [19:46:12]line [19:46:12]line [19:46:12]line [19:46:12]line [19:46:12]written 0, free lines is 3322 [19:46:12]MH_Cut [19:46:12]Write to MH i2c: D1 01 00 71 12 01 55 [19:46:12]Write i2c OK [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: D1 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: D1 01 00 [19:46:12]MH_I2C_Read... [19:46:12]Read from MH i2c: D1 01 00 71 12 00 54 [19:46:12]Write to MH i2c: 01 00 00 72 12 84 [19:46:12]Write i2c OK [19:46:12]MH_I2C_Read... [19:46:13]OFD Sender: No OFD packet to send [19:46:13]*** Cut start [19:46:13]*** Purtial cut [19:46:13]*** CUTSNS_PIN = 0 [19:46:13]*** Stage 1: CUTSNS_PIN = 1 [19:46:15]Read from MH i2c: 01 [19:46:15]MH_I2C_Read... [19:46:15]*** Stop cut motor [19:46:15]*** Cut end [19:46:15]Read from MH i2c: 01 07 00 [19:46:15]MH_I2C_Read... [19:46:15]Read from MH i2c: 01 07 00 72 12 00 00 00 00 00 FF 0F 99 [19:46:15]process_action close_receipt done [19:46:15]requested_data is exist [19:46:15]produce_requested_data [19:46:15]requested_item fm.sn is exist - process it [19:46:15]wFMCommunicate request_size=4 [19:46:15]MH_SAM_APDU [19:46:15]CAPDU: 80 11 00 00 [19:46:15]Write to MH i2c: E2 08 00 73 12 80 11 00 00 00 00 00 00 FF [19:46:15]Write i2c OK [19:46:15]MH_I2C_Read... [19:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:15]Read from MH i2c: E2 [19:46:15]MH_I2C_Read... [19:46:15]Read from MH i2c: E2 17 00 [19:46:15]MH_I2C_Read... [19:46:15]Read from MH i2c: E2 17 00 73 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 54 [19:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:46:15]wFMCommunicate OK [19:46:15]requested_item fd.num is exist - process it [19:46:15]SAM_PROTO_GetFieldsCounters [19:46:15]wFMCommunicate request_size=4 [19:46:15]MH_SAM_APDU [19:46:15]CAPDU: 80 13 00 00 [19:46:15]Write to MH i2c: E2 08 00 74 12 80 13 00 00 00 00 00 00 02 [19:46:15]Write i2c OK [19:46:15]MH_I2C_Read... [19:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:15]Read from MH i2c: E2 [19:46:15]MH_I2C_Read... [19:46:15]Read from MH i2c: E2 62 00 [19:46:15]MH_I2C_Read... [19:46:15]Read from MH i2c: E2 62 00 74 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E7 13 01 00 0E 04 04 00 D1 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 AC [19:46: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E7 13 01 00 0E 04 04 00 D1 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 [19:46:15]wFMCommunicate OK [19:46:15]SAM_PROTO_GetFieldsCounters done [19:46:15]requested_item shift.num is exist - process it [19:46:15]requested_item shift.opened is exist - process it [19:46:15]req_shift_opened [19:46:15]FM_GetShiftState [19:46:15]SAM_PROTO_GetShiftState [19:46:15]wFMCommunicate request_size=4 [19:46:15]MH_SAM_APDU [19:46:15]CAPDU: 80 13 01 00 [19:46:15]Write to MH i2c: E2 08 00 75 12 80 13 01 00 00 00 00 00 04 [19:46:15]Write i2c OK [19:46:15]MH_I2C_Read... [19:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:15]Read from MH i2c: E2 [19:46:15]MH_I2C_Read... [19:46:15]Read from MH i2c: E2 0E 00 [19:46:15]MH_I2C_Read... [19:46:15]Read from MH i2c: E2 0E 00 75 12 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F1 [19:46:15]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:46:15]wFMCommunicate OK [19:46:15]SAM_PROTO_GetShiftState done [19:46:15]FM_GetShiftState done [19:46:15]req_shift_opened done [19:46:15]requested_item shift.open_date is exist - process it [19:46:15]req_shift_open_date [19:46:15]req_shift_open_date done [19:46:15]produce_requested_data done [19:46:15]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70631,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [19:46:15]process_action_free close_receipt [19:46:15]json_value_free [19:46:15]json_value_free done [19:46:15]process_json_proto returns [19:46:15]Send response to host [19:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70631,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [19:46:15]free response buf [19:46:15]execute_script done [19:46:15]execute_script returns [19:46:15]free content buf [19:46:15]Sock 7.Close socket [19:46:15]Sock 7.Thread stoped [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:47]accept exits with 9 [19:46:47]New connection [19:46:47]New thread 3066842468 created [19:46:47]Thread 3066699108 joined [19:46:47]Waiting for new connection... [19:46:47] Sock 9.Parse request [19:46:47]Sock 9.Check first char [19:46:47]Sock 9.First char is OK [19:46:47]request: POST /json_proto HTTP/1.0 [19:46:47]Method: POST [19:46:47]URL: /json_proto [19:46:47]Method is POST - this is cgi request [19:46:47]url: /json_proto [19:46:47]query_string will be loaded in cgi processing [19:46:47]execute_cgi json_proto POST (null) [19:46:47]execute_cgi path=json_proto method=POST [19:46:47]POST find Content-Length [19:46:47]Host: 172.17.58.67:8080 [19:46:47]Content-Length: 808 [19:46:47]Content-Type: application/json [19:46:47] [19:46:47]POST finish read [19:46:47]Found Content-Length = 808 [19:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:47]execute_script... [19:46: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)141083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:47]POST & json_proto [19:46:47]process_json_proto [19:46:47]json parsed OK: [19:46:47]protocol is kg_v1.0 [19:46:47]action value=close_receipt [19:46:47]process_action close_receipt [19:46:47]cmd_close_receipt [19:46:47]MH_GetDate [19:46:47]Write to MH i2c: F0 00 00 76 12 77 [19:46:47]Write i2c OK [19:46:47]MH_I2C_Read... [19:46:47]Read from MH i2c: F0 [19:46:47]MH_I2C_Read... [19:46:47]Read from MH i2c: F0 09 00 [19:46:47]MH_I2C_Read... [19:46:47]Read from MH i2c: F0 09 00 76 12 00 A8 66 BA 66 94 51 63 64 5A [19:46:47]GetLastDocTimeStamp 1723491972 [19:46:47]current date 1723492008 [19:46:47]FM_GetShiftState [19:46:47]SAM_PROTO_GetShiftState [19:46:47]wFMCommunicate request_size=4 [19:46:47]MH_SAM_APDU [19:46:47]CAPDU: 80 13 01 00 [19:46:47]Write to MH i2c: E2 08 00 77 12 80 13 01 00 00 00 00 00 06 [19:46:47]Write i2c OK [19:46:47]MH_I2C_Read... [19:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:47]Read from MH i2c: E2 [19:46:47]MH_I2C_Read... [19:46:47]Read from MH i2c: E2 0E 00 [19:46:47]MH_I2C_Read... [19:46:47]Read from MH i2c: E2 0E 00 77 12 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 F3 [19:46:47]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:46:47]wFMCommunicate OK [19:46:47]SAM_PROTO_GetShiftState done [19:46:47]FM_GetShiftState done [19:46:47]opened in 1723423336 [19:46:47]opened+sec_in_day 1723509736 [19:46:47]quantity*price = 100036 [19:46:47]sum+1 = 100037 [19:46:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 64 12.08.2024 19:46 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70632 ФПД: 158440738592682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194648&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70632&fm=158440738592682&tin=02508201610067®Number=0000000000090913&sum=100036 [19:46:48]StoreToDocumentArchive [19:46:48]shift 465 fd 70632 [19:46:48]save to /storage/0465/doc_00070632 [19:46:48]save last doc name /storage/0465/doc_00070632 to /storage/kkm_last_doc_name [19:46:48]save OK [19:46:48]Clear old archive folders... [19:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:48]tlvbuf is B6EA60E0 [19:46:48]SAM_PROTO_ClearQueue [19:46:48]wFMCommunicate request_size=4 [19:46:48]MH_SAM_APDU [19:46:48]CAPDU: 80 09 00 00 [19:46:48]Write to MH i2c: E2 08 00 84 12 80 09 00 00 00 00 00 00 08 [19:46:48]Write i2c OK [19:46:48]MH_I2C_Read... [19:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:48]Read from MH i2c: E2 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 03 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [19:46:48]RAPDU: 90 00 [19:46:48]wFMCommunicate OK [19:46:48]SAM_PROTO_ClearQueue done [19:46:48]KKMCreateOFDPacket [19:46:48]OFDProtocolAddRootSTLVToBuf [19:46:48]FM_MakeSignedData [19:46:48]FM_MakeSignedData [19:46:48]SAM_PROTO_SignData [19:46:48]wFMCommunicate request_size=4 [19:46:48]MH_SAM_APDU [19:46:48]CAPDU: 80 0D 01 02 [19:46:48]Write to MH i2c: E2 08 00 85 12 80 0D 01 02 00 00 00 00 10 [19:46:48]Write i2c OK [19:46:48]MH_I2C_Read... [19:46:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:48]Read from MH i2c: E2 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 03 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [19:46:48]RAPDU: 90 00 [19:46:48]wFMCommunicate OK [19:46:48]wFMCommunicate request_size=255 [19:46:48]MH_SAM_APDU [19:46: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 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A8 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E8 13 01 00 35 04 06 00 90 [19:46:48]Write to MH i2c: E2 02 01 86 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A8 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E8 13 01 00 35 04 06 00 90 00 00 44 [19:46:48]Write i2c OK [19:46:48]MH_I2C_Read... [19:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:48]Read from MH i2c: E2 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 03 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [19:46:48]RAPDU: 90 00 [19:46:48]wFMCommunicate OK [19:46:48]wFMCommunicate request_size=10 [19:46:48]MH_SAM_APDU [19:46:48]CAPDU: 80 0D 02 02 05 19 DB F1 17 AA [19:46:48]Write to MH i2c: E2 0D 00 87 12 80 0D 02 02 05 00 19 DB F1 17 AA 00 00 C3 [19:46:48]Write i2c OK [19:46:48]MH_I2C_Read... [19:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:48]Read from MH i2c: E2 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 03 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [19:46:48]RAPDU: 90 00 [19:46:48]wFMCommunicate OK [19:46:48]wFMCommunicate request_size=4 [19:46:48]MH_SAM_APDU [19:46:48]CAPDU: 80 0D 03 02 [19:46:48]Write to MH i2c: E2 08 00 88 12 80 0D 03 02 00 00 00 00 15 [19:46:48]Write i2c OK [19:46:48]MH_I2C_Read... [19:46:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:48]Read from MH i2c: E2 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 0B 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 0B 00 88 12 00 41 26 B4 05 6A D1 56 BE 90 00 85 [19:46:48]RAPDU: 41 26 B4 05 6A D1 56 BE 90 00 [19:46:48]wFMCommunicate OK [19:46:48]SAM_PROTO_SignData done [19:46:48]FM_MakeSignedData done [19:46:48]CreateOFDProtocolMessage [19:46:48]wFMCommunicate request_size=4 [19:46:48]MH_SAM_APDU [19:46:48]CAPDU: 80 11 00 00 [19:46:48]Write to MH i2c: E2 08 00 89 12 80 11 00 00 00 00 00 00 15 [19:46:48]Write i2c OK [19:46:48]MH_I2C_Read... [19:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:48]Read from MH i2c: E2 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 17 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: E2 17 00 89 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 6A [19:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:46:48]wFMCommunicate OK [19:46:48]CreateOFDProtocolMessage done [19:46:48]OFDSenderStorePacket 70632 [19:46:48]StoreOFDPacket docnum=70632 [19:46:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 CD 83 07 01 F2 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A8 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E8 13 01 00 35 04 06 00 90 19 DB F1 17 AA 41 26 B4 05 6A D1 56 BE [19:46:48]CheckFolder [19:46:48]dirname=/storage/ofd_packets [19:46:48]CheckFolder done [19:46:48]ProducePacketName [19:46:48]name=ofd_packets/00070632 [19:46:48]NVStorageSaveData ofd_packets/00070632 [19:46:48]File name is /storage/ofd_packets/00070632 [19:46:48]Write 301 bytes [19:46:48]NVStorageSaveData done [19:46:48]OFDSenderStorePacket done [19:46:48]KKMCreateOFDPacket done [19:46:48]NVStorageSaveData kkm_last_timestamp [19:46:48]File name is /storage/kkm_last_timestamp [19:46:48]Write 4 bytes [19:46:48]NVStorageSaveData done [19:46:48]ExternCall_PrintAddStr [19:46:48]wPrintStart [19:46:48]Write to MH i2c: 01 00 00 8A 12 9C [19:46:48]Write i2c OK [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: 01 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: 01 07 00 [19:46:48]MH_I2C_Read... [19:46:48]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 FF 0F B1 [19:46:48]RasterBufferAndPrint [19:46:48]line Счет N : (1)141083 [19:46:48]line ИÐÐ: 02508201610067 [19:46:48]line Контрольно-КаÑÑовый Чек [19:46:48]line ПРОДÐЖР[19:46:48]line ТРК (МРК, ГÐК) : 41 [19:46:48]line Товар: 2710124130 [19:46:48]line Ðи-92-К-5 [19:46:48]line 15.180 * 65.90 [19:46:48]line = 1000.36 [19:46:48]line ÐДС 12% ÐСП 1% [19:46:48]line > о реализуемом товаре [19:46:48]line ИТОГО: 1000.36 [19:46:48]line ÐСП 1% : 8.85 [19:46:48]line ÐДС 12% : 106.23 [19:46:48]line Ðаличными: 0.00 [19:46:48]line Безнал.: 1000.36 [19:46:48]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:46:48]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:46:48]line СÐО: Общий режим [19:46:48]line Чек 64 12.08.2024 19:46 [19:46:48]line Смена: 465 ФФД: 1.0 [19:46:48]line ЗÐМ: 0300000140 [19:46:48]line РÐМ: 0000000000090913 [19:46:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:46:48]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:46:48]line ФМ: 0000000000874915 [19:46:48]line ФД: 70632 [19:46:48]line ФПД: 158440738592682 [19:46:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194648&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70632&fm=158440738592682&tin=02508201610067®Number=0000000000090913&sum=100036 [19:46:49]OFD Sender: Processing packet 70632 [packets to send 67, broken 66] [19:46:49]ProducePacketName [19:46:49]name=ofd_packets/00070632 [19:46:49]OFD Sender: To server: ‡•öpG, [19:46:49]CommunicateWithHost lk.salyk.kg:30040 [19:46:49]ConnectInit lk.salyk.kg [19:46:49]written 0, free lines is 4095 [19:46:49]Connected sock=10 [19:46: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 39 31 35 0F 01 00 00 CD 83 07 01 F2 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A8 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E8 13 01 00 35 04 06 00 90 19 DB F1 17 AA 41 26 B4 05 6A D1 56 BE [19:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 81 BB 47 00 2E 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 39 31 35 10 04 04 00 E8 13 01 00 F4 03 04 00 95 0D BA 66 B6 04 01 00 00 4F D1 AB 12 36 A1 8D C9 [19:46:49]CommunicateWithHost err = 0 [19:46:49]CheckOFDResponse [19:46:49]1017 (14) - 77093643461234 [19:46:49]1041 (16) - 0000000000874915 [19:46:49]1040 (4) - 70632 [19:46:49]1012 (4) - 12.08.2024 13:26 [19:46:49]1206 (1) - 0 [19:46:49]OFD Sender: Remove packet 70632 [19:46:49]ProducePacketName [19:46:49]name=ofd_packets/00070632 [19:46:49]NVStorageDeleteData [19:46:49]Write to MH i2c: 01 00 00 B4 12 C6 [19:46:49]Write i2c OK [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: 01 [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: 01 07 00 [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: 01 07 00 B4 12 00 00 00 00 00 F2 0C CB [19:46:49]RasterBufferAndPrint [19:46:49]line [19:46:49]line [19:46:49]line [19:46:49]line [19:46:49]line [19:46:49]written 0, free lines is 3320 [19:46:49]MH_Cut [19:46:49]Write to MH i2c: D1 01 00 BB 12 01 9F [19:46:49]Write i2c OK [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: D1 [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: D1 01 00 [19:46:49]MH_I2C_Read... [19:46:49]Read from MH i2c: D1 01 00 BB 12 00 9E [19:46:49]Write to MH i2c: 01 00 00 BC 12 CE [19:46:49]Write i2c OK [19:46:49]MH_I2C_Read... [19:46:49]OFD Sender: No OFD packet to send [19:46:50]*** Cut start [19:46:50]*** Purtial cut [19:46:50]*** Stage 1: CUTSNS_PIN = 1 [19:46:50]Read from MH i2c: 01 [19:46:50]MH_I2C_Read... [19:46:50]*** Stop cut motor [19:46:50]*** Cut end [19:46:50]Read from MH i2c: 01 07 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: 01 07 00 BC 12 00 00 00 00 00 FF 0F E3 [19:46:50]process_action close_receipt done [19:46:50]requested_data is exist [19:46:50]produce_requested_data [19:46:50]requested_item fm.sn is exist - process it [19:46:50]wFMCommunicate request_size=4 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 11 00 00 [19:46:50]Write to MH i2c: E2 08 00 BD 12 80 11 00 00 00 00 00 00 49 [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 17 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 17 00 BD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 9E [19:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:46:50]wFMCommunicate OK [19:46:50]requested_item fd.num is exist - process it [19:46:50]SAM_PROTO_GetFieldsCounters [19:46:50]wFMCommunicate request_size=4 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 13 00 00 [19:46:50]Write to MH i2c: E2 08 00 BE 12 80 13 00 00 00 00 00 00 4C [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 62 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 62 00 BE 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E8 13 01 00 0E 04 04 00 D1 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 FA [19:46: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E8 13 01 00 0E 04 04 00 D1 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 [19:46:50]wFMCommunicate OK [19:46:50]SAM_PROTO_GetFieldsCounters done [19:46:50]requested_item shift.num is exist - process it [19:46:50]requested_item shift.opened is exist - process it [19:46:50]req_shift_opened [19:46:50]FM_GetShiftState [19:46:50]SAM_PROTO_GetShiftState [19:46:50]wFMCommunicate request_size=4 [19:46:50]MH_SAM_APDU [19:46:50]CAPDU: 80 13 01 00 [19:46:50]Write to MH i2c: E2 08 00 BF 12 80 13 01 00 00 00 00 00 4E [19:46:50]Write i2c OK [19:46:50]MH_I2C_Read... [19:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:50]Read from MH i2c: E2 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 0E 00 [19:46:50]MH_I2C_Read... [19:46:50]Read from MH i2c: E2 0E 00 BF 12 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 3B [19:46:50]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:46:50]wFMCommunicate OK [19:46:50]SAM_PROTO_GetShiftState done [19:46:50]FM_GetShiftState done [19:46:50]req_shift_opened done [19:46:50]requested_item shift.open_date is exist - process it [19:46:50]req_shift_open_date [19:46:50]req_shift_open_date done [19:46:50]produce_requested_data done [19:46:50]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70632,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [19:46:50]process_action_free close_receipt [19:46:50]json_value_free [19:46:50]json_value_free done [19:46:50]process_json_proto returns [19:46:50]Send response to host [19:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70632,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [19:46:50]free response buf [19:46:50]execute_script done [19:46:50]execute_script returns [19:46:50]free content buf [19:46:50]Sock 9.Close socket [19:46:50]Sock 9.Thread stoped [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:16]accept exits with 7 [19:47:16]New connection [19:47:16]New thread 3066699108 created [19:47:16]Thread 3066842468 joined [19:47:16]Waiting for new connection... [19:47:16] Sock 7.Parse request [19:47:16]Sock 7.Check first char [19:47:16]Sock 7.First char is OK [19:47:16]request: POST /json_proto HTTP/1.0 [19:47:16]Method: POST [19:47:16]URL: /json_proto [19:47:16]Method is POST - this is cgi request [19:47:16]url: /json_proto [19:47:16]query_string will be loaded in cgi processing [19:47:16]execute_cgi json_proto POST (null) [19:47:16]execute_cgi path=json_proto method=POST [19:47:16]POST find Content-Length [19:47:16]Host: 172.17.58.67:8080 [19:47:16]Content-Length: 805 [19:47:16]Content-Type: application/json [19:47:16] [19:47:16]POST finish read [19:47:16]Found Content-Length = 805 [19:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 25.000, "sum" : 1860.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" : 1860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:16]execute_script... [19:47: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)141084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 25.000, "sum" : 1860.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" : 1860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:16]POST & json_proto [19:47:16]process_json_proto [19:47:16]json parsed OK: [19:47:16]protocol is kg_v1.0 [19:47:16]action value=close_receipt [19:47:16]process_action close_receipt [19:47:16]cmd_close_receipt [19:47:16]MH_GetDate [19:47:16]Write to MH i2c: F0 00 00 C0 12 C1 [19:47:16]Write i2c OK [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: F0 [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: F0 09 00 [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: F0 09 00 C0 12 00 C6 66 BA 66 94 51 63 64 C2 [19:47:16]GetLastDocTimeStamp 1723492008 [19:47:16]current date 1723492038 [19:47:16]FM_GetShiftState [19:47:16]SAM_PROTO_GetShiftState [19:47:16]wFMCommunicate request_size=4 [19:47:16]MH_SAM_APDU [19:47:16]CAPDU: 80 13 01 00 [19:47:16]Write to MH i2c: E2 08 00 C1 12 80 13 01 00 00 00 00 00 50 [19:47:16]Write i2c OK [19:47:16]MH_I2C_Read... [19:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:16]Read from MH i2c: E2 [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: E2 0E 00 [19:47:16]MH_I2C_Read... [19:47:16]Read from MH i2c: E2 0E 00 C1 12 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 3D [19:47:16]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:47:16]wFMCommunicate OK [19:47:16]SAM_PROTO_GetShiftState done [19:47:16]FM_GetShiftState done [19:47:16]opened in 1723423336 [19:47:16]opened+sec_in_day 1723509736 [19:47:16]quantity*price = 186000 [19:47:16]sum+1 = 186001 [19:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1860.00 ÐСП 1% : 16.46 ÐДС 12% : 197.52 Ðаличными: 0.00 Безнал.: 1860.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 65 12.08.2024 19:47 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70633 ФПД: 218364493123117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194718&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70633&fm=218364493123117&tin=02508201610067®Number=0000000000090913&sum=186000 [19:47:18]StoreToDocumentArchive [19:47:18]shift 465 fd 70633 [19:47:18]save to /storage/0465/doc_00070633 [19:47:18]save last doc name /storage/0465/doc_00070633 to /storage/kkm_last_doc_name [19:47:18]save OK [19:47:18]Clear old archive folders... [19:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:47:18]tlvbuf is B6E8D900 [19:47:18]SAM_PROTO_ClearQueue [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 09 00 00 [19:47:18]Write to MH i2c: E2 08 00 CE 12 80 09 00 00 00 00 00 00 52 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]SAM_PROTO_ClearQueue done [19:47:18]KKMCreateOFDPacket [19:47:18]OFDProtocolAddRootSTLVToBuf [19:47:18]FM_MakeSignedData [19:47:18]FM_MakeSignedData [19:47:18]SAM_PROTO_SignData [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 0D 01 02 [19:47:18]Write to MH i2c: E2 08 00 CF 12 80 0D 01 02 00 00 00 00 5A [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 CF 12 00 90 00 55 [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]wFMCommunicate request_size=255 [19:47:18]MH_SAM_APDU [19:47:18]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 A8 61 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 90 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 C6 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E9 13 01 00 35 04 06 00 C6 99 F2 0B [19:47:18]Write to MH i2c: E2 02 01 D0 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 A8 61 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 90 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 C6 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E9 13 01 00 35 04 06 00 C6 99 F2 0B 00 00 C5 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]wFMCommunicate request_size=7 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 0D 02 02 02 4E 2D [19:47:18]Write to MH i2c: E2 0A 00 D1 12 80 0D 02 02 02 00 4E 2D 00 00 DC [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [19:47:18]RAPDU: 90 00 [19:47:18]wFMCommunicate OK [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 0D 03 02 [19:47:18]Write to MH i2c: E2 08 00 D2 12 80 0D 03 02 00 00 00 00 5F [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 0B 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 0B 00 D2 12 00 BB B2 FA D9 66 DB 1A 40 90 00 3B [19:47:18]RAPDU: BB B2 FA D9 66 DB 1A 40 90 00 [19:47:18]wFMCommunicate OK [19:47:18]SAM_PROTO_SignData done [19:47:18]FM_MakeSignedData done [19:47:18]CreateOFDProtocolMessage [19:47:18]wFMCommunicate request_size=4 [19:47:18]MH_SAM_APDU [19:47:18]CAPDU: 80 11 00 00 [19:47:18]Write to MH i2c: E2 08 00 D3 12 80 11 00 00 00 00 00 00 5F [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:18]Read from MH i2c: E2 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 17 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: E2 17 00 D3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B4 [19:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:47:18]wFMCommunicate OK [19:47:18]CreateOFDProtocolMessage done [19:47:18]OFDSenderStorePacket 70633 [19:47:18]StoreOFDPacket docnum=70633 [19:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 F6 5F 04 01 35 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 A8 61 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 90 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 C6 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E9 13 01 00 35 04 06 00 C6 99 F2 0B 4E 2D BB B2 FA D9 66 DB 1A 40 [19:47:18]CheckFolder [19:47:18]dirname=/storage/ofd_packets [19:47:18]CheckFolder done [19:47:18]ProducePacketName [19:47:18]name=ofd_packets/00070633 [19:47:18]NVStorageSaveData ofd_packets/00070633 [19:47:18]File name is /storage/ofd_packets/00070633 [19:47:18]Write 298 bytes [19:47:18]NVStorageSaveData done [19:47:18]OFDSenderStorePacket done [19:47:18]KKMCreateOFDPacket done [19:47:18]NVStorageSaveData kkm_last_timestamp [19:47:18]File name is /storage/kkm_last_timestamp [19:47:18]Write 4 bytes [19:47:18]NVStorageSaveData done [19:47:18]ExternCall_PrintAddStr [19:47:18]wPrintStart [19:47:18]Write to MH i2c: 01 00 00 D4 12 E6 [19:47:18]Write i2c OK [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 07 00 [19:47:18]MH_I2C_Read... [19:47:18]Read from MH i2c: 01 07 00 D4 12 00 00 00 00 00 FF 0F FB [19:47:18]RasterBufferAndPrint [19:47:18]line Счет N : (1)141084 [19:47:18]line ИÐÐ: 02508201610067 [19:47:18]line Контрольно-КаÑÑовый Чек [19:47:18]line ПРОДÐЖР[19:47:18]line ТРК (МРК, ГÐК) : 34 [19:47:18]line Товар: 2710194210 [19:47:18]line ДТ-К-5 [19:47:18]line 25.000 * 74.40 [19:47:18]line = 1860.00 [19:47:18]line ÐДС 12% ÐСП 1% [19:47:18]line > о реализуемом товаре [19:47:18]line ИТОГО: 1860.00 [19:47:18]line ÐСП 1% : 16.46 [19:47:18]line ÐДС 12% : 197.52 [19:47:18]line Ðаличными: 0.00 [19:47:18]line Безнал.: 1860.00 [19:47:18]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:47:18]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:47:18]line СÐО: Общий режим [19:47:18]line Чек 65 12.08.2024 19:47 [19:47:18]line Смена: 465 ФФД: 1.0 [19:47:18]line ЗÐМ: 0300000140 [19:47:18]line РÐМ: 0000000000090913 [19:47:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:47:18]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:47:18]line ФМ: 0000000000874915 [19:47:18]line ФД: 70633 [19:47:18]line ФПД: 218364493123117 [19:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T194718&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70633&fm=218364493123117&tin=02508201610067®Number=0000000000090913&sum=186000 [19:47:18]OFD Sender: Processing packet 70633 [packets to send 67, broken 66] [19:47:18]ProducePacketName [19:47:18]name=ofd_packets/00070633 [19:47:18]OFD Sender: To server: ‡•öpG, [19:47:18]CommunicateWithHost lk.salyk.kg:30040 [19:47:18]ConnectInit lk.salyk.kg [19:47:18]written 0, free lines is 4095 [19:47:19]Connected sock=9 [19:47: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 39 31 35 0C 01 00 00 F6 5F 04 01 35 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 A8 61 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 90 D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 4D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 C6 66 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 E9 13 01 00 35 04 06 00 C6 99 F2 0B 4E 2D BB B2 FA D9 66 DB 1A 40 [19:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 3B 19 47 00 6C 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 39 31 35 10 04 04 00 E9 13 01 00 F4 03 04 00 B3 0D BA 66 B6 04 01 00 00 90 14 49 DD 64 6B 3D 3A [19:47:19]CommunicateWithHost err = 0 [19:47:19]CheckOFDResponse [19:47:19]1017 (14) - 77093643461234 [19:47:19]1041 (16) - 0000000000874915 [19:47:19]1040 (4) - 70633 [19:47:19]1012 (4) - 12.08.2024 13:27 [19:47:19]1206 (1) - 0 [19:47:19]OFD Sender: Remove packet 70633 [19:47:19]ProducePacketName [19:47:19]name=ofd_packets/00070633 [19:47:19]NVStorageDeleteData [19:47:19]Write to MH i2c: 01 00 00 FE 12 10 [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: 01 07 00 FE 12 00 00 00 00 00 E8 0C 0B [19:47:19]RasterBufferAndPrint [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]line [19:47:19]written 0, free lines is 3310 [19:47:19]MH_Cut [19:47:19]Write to MH i2c: D1 01 00 05 13 01 EA [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: D1 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: D1 01 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: D1 01 00 05 13 00 E9 [19:47:19]Write to MH i2c: 01 00 00 06 13 19 [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]OFD Sender: No OFD packet to send [19:47:20]*** Cut start [19:47:20]*** Purtial cut [19:47:20]*** CUTSNS_PIN = 0 [19:47:20]*** Stage 1: CUTSNS_PIN = 1 [19:47:22]Read from MH i2c: 01 [19:47:22]MH_I2C_Read... [19:47:22]*** Stop cut motor [19:47:22]*** Cut end [19:47:22]Read from MH i2c: 01 07 00 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: 01 07 00 06 13 00 00 00 00 00 FF 0F 2E [19:47:22]process_action close_receipt done [19:47:22]requested_data is exist [19:47:22]produce_requested_data [19:47:22]requested_item fm.sn is exist - process it [19:47:22]wFMCommunicate request_size=4 [19:47:22]MH_SAM_APDU [19:47:22]CAPDU: 80 11 00 00 [19:47:22]Write to MH i2c: E2 08 00 07 13 80 11 00 00 00 00 00 00 94 [19:47:22]Write i2c OK [19:47:22]MH_I2C_Read... [19:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:22]Read from MH i2c: E2 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 17 00 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 17 00 07 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E9 [19:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:47:22]wFMCommunicate OK [19:47:22]requested_item fd.num is exist - process it [19:47:22]SAM_PROTO_GetFieldsCounters [19:47:22]wFMCommunicate request_size=4 [19:47:22]MH_SAM_APDU [19:47:22]CAPDU: 80 13 00 00 [19:47:22]Write to MH i2c: E2 08 00 08 13 80 13 00 00 00 00 00 00 97 [19:47:22]Write i2c OK [19:47:22]MH_I2C_Read... [19:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:22]Read from MH i2c: E2 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 62 00 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 62 00 08 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E9 13 01 00 0E 04 04 00 D1 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 49 [19:47: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 E9 13 01 00 0E 04 04 00 D1 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 [19:47:22]wFMCommunicate OK [19:47:22]SAM_PROTO_GetFieldsCounters done [19:47:22]requested_item shift.num is exist - process it [19:47:22]requested_item shift.opened is exist - process it [19:47:22]req_shift_opened [19:47:22]FM_GetShiftState [19:47:22]SAM_PROTO_GetShiftState [19:47:22]wFMCommunicate request_size=4 [19:47:22]MH_SAM_APDU [19:47:22]CAPDU: 80 13 01 00 [19:47:22]Write to MH i2c: E2 08 00 09 13 80 13 01 00 00 00 00 00 99 [19:47:22]Write i2c OK [19:47:22]MH_I2C_Read... [19:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:22]Read from MH i2c: E2 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 0E 00 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 0E 00 09 13 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 86 [19:47:22]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [19:47:22]wFMCommunicate OK [19:47:22]SAM_PROTO_GetShiftState done [19:47:22]FM_GetShiftState done [19:47:22]req_shift_opened done [19:47:22]requested_item shift.open_date is exist - process it [19:47:22]req_shift_open_date [19:47:22]req_shift_open_date done [19:47:22]produce_requested_data done [19:47:22]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70633,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [19:47:22]process_action_free close_receipt [19:47:22]json_value_free [19:47:22]json_value_free done [19:47:22]process_json_proto returns [19:47:22]Send response to host [19:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70633,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [19:47:22]free response buf [19:47:22]execute_script done [19:47:22]execute_script returns [19:47:22]free content buf [19:47:22]Sock 7.Close socket [19:47:22]Sock 7.Thread stoped [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:28]int [19:53:28]Write to MH i2c: 01 00 00 0A 13 1D [19:53:28]*** FLAG_PRN_KEY set [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 0A 13 00 08 00 00 00 FF 0F 3A [19:53:28]state=0 [19:53:28]Key pressed [19:53:28]Feed [19:53:28]Write to MH i2c: D8 00 00 0B 13 F5 [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: D8 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: D8 01 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: D8 01 00 0B 13 00 F6 [19:53:28]int [19:53:28]Write to MH i2c: 01 00 00 0C 13 1F [19:53:28]Write i2c OK [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 [19:53:28]MH_I2C_Read... [19:53:28]Read from MH i2c: 01 07 00 0C 13 00 48 00 00 00 3C 00 AA [19:53:28]state=2 [19:53:28]Key pressed [19:53:29]int [19:53:29]Write to MH i2c: 01 00 00 0D 13 20 [19:53:29]*** FLAG_PRN_KEY reset [19:53:29]Write i2c OK [19:53:29]MH_I2C_Read... [19:53:29]Read from MH i2c: 01 [19:53:29]MH_I2C_Read... [19:53:29]Read from MH i2c: 01 07 00 [19:53:29]MH_I2C_Read... [19:53:29]Read from MH i2c: 01 07 00 0D 13 00 00 00 00 00 F6 0F 2C [19:53:29]state=2 [19:53:29]Stop feed [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:07]accept exits with 10 [19:54:07]New connection [19:54:07]New thread 3066842468 created [19:54:07]Thread 3066699108 joined [19:54:07]Waiting for new connection... [19:54:07] Sock 10.Parse request [19:54:07]Sock 10.Check first char [19:54:07]Sock 10.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.58.67:8080 [19:54:07]Content-Length: 805 [19:54:07]Content-Type: application/json [19:54:07] [19:54:07]POST finish read [19:54:07]Found Content-Length = 805 [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)141085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "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)141085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "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 0E 13 10 [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 0E 13 00 61 68 BA 66 94 51 63 64 AE [19:54:07]GetLastDocTimeStamp 1723492038 [19:54:07]current date 1723492449 [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 0F 13 80 13 01 00 00 00 00 00 9F [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 0F 13 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 8C [19:54:07]RAPDU: 09 00 01 68 5A B9 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 1723423336 [19:54:07]opened+sec_in_day 1723509736 [19:54:07]quantity*price = 50018 [19:54:07]sum+1 = 50019 [19:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 66 12.08.2024 19:54 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70634 ФПД: 232598784775001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T195409&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70634&fm=232598784775001&tin=02508201610067®Number=0000000000090913&sum=50018 [19:54:08]StoreToDocumentArchive [19:54:08]shift 465 fd 70634 [19:54:08]save to /storage/0465/doc_00070634 [19:54:08]save last doc name /storage/0465/doc_00070634 to /storage/kkm_last_doc_name [19:54:08]save OK [19:54:08]Clear old archive folders... [19:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:08]tlvbuf is 0107CF60 [19:54:08]SAM_PROTO_ClearQueue [19:54:08]wFMCommunicate request_size=4 [19:54:08]MH_SAM_APDU [19:54:08]CAPDU: 80 09 00 00 [19:54:08]Write to MH i2c: E2 08 00 1C 13 80 09 00 00 00 00 00 00 A1 [19:54:08]Write i2c OK [19:54:08]MH_I2C_Read... [19:54:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:08]Read from MH i2c: E2 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 03 00 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [19:54:08]RAPDU: 90 00 [19:54:08]wFMCommunicate OK [19:54:08]SAM_PROTO_ClearQueue done [19:54:08]KKMCreateOFDPacket [19:54:08]OFDProtocolAddRootSTLVToBuf [19:54:08]FM_MakeSignedData [19:54:08]FM_MakeSignedData [19:54:08]SAM_PROTO_SignData [19:54:08]wFMCommunicate request_size=4 [19:54:08]MH_SAM_APDU [19:54:08]CAPDU: 80 0D 01 02 [19:54:08]Write to MH i2c: E2 08 00 1D 13 80 0D 01 02 00 00 00 00 A9 [19:54:08]Write i2c OK [19:54:08]MH_I2C_Read... [19:54:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:08]Read from MH i2c: E2 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 03 00 [19:54:08]MH_I2C_Read... [19:54:08]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [19:54:08]RAPDU: 90 00 [19:54:08]wFMCommunicate OK [19:54:08]wFMCommunicate request_size=255 [19:54:08]MH_SAM_APDU [19:54:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 61 68 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EA 13 01 00 35 04 06 00 D3 [19:54:08]Write to MH i2c: E2 02 01 1E 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 61 68 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EA 13 01 00 35 04 06 00 D3 00 00 19 [19:54:08]Write i2c OK [19:54:08]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 1E 13 00 90 00 A5 [19:54:09]RAPDU: 90 00 [19:54:09]wFMCommunicate OK [19:54:09]wFMCommunicate request_size=10 [19:54:09]MH_SAM_APDU [19:54:09]CAPDU: 80 0D 02 02 05 8C 1F F1 13 59 [19:54:09]Write to MH i2c: E2 0D 00 1F 13 80 0D 02 02 05 00 8C 1F F1 13 59 00 00 BE [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 1F 13 00 90 00 A6 [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 20 13 80 0D 03 02 00 00 00 00 AE [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 20 13 00 90 6C 39 EC 3D 55 E8 C7 90 00 11 [19:54:09]RAPDU: 90 6C 39 EC 3D 55 E8 C7 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 21 13 80 11 00 00 00 00 00 00 AE [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 21 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 03 [19:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:54:09]wFMCommunicate OK [19:54:09]CreateOFDProtocolMessage done [19:54:09]OFDSenderStorePacket 70634 [19:54:09]StoreOFDPacket docnum=70634 [19:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 BE 03 07 01 44 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 61 68 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EA 13 01 00 35 04 06 00 D3 8C 1F F1 13 59 90 6C 39 EC 3D 55 E8 C7 [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/00070634 [19:54:09]NVStorageSaveData ofd_packets/00070634 [19:54:09]File name is /storage/ofd_packets/00070634 [19:54:09]Write 301 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 22 13 35 [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 22 13 00 00 00 00 00 FF 0F 4A [19:54:09]RasterBufferAndPrint [19:54:09]line Счет N : (1)141085 [19:54:09]line ИÐÐ: 02508201610067 [19:54:09]line Контрольно-КаÑÑовый Чек [19:54:09]line ПРОДÐЖР[19:54:09]line ТРК (МРК, ГÐК) : 31 [19:54:09]line Товар: 2710124130 [19:54:09]line Ðи-92-К-5 [19:54:09]line 7.590 * 65.90 [19:54:09]line = 500.18 [19:54:09]line ÐДС 12% ÐСП 1% [19:54:09]line > о реализуемом товаре [19:54:09]line ИТОГО: 500.18 [19:54:09]line ÐСП 1% : 4.43 [19:54:09]line ÐДС 12% : 53.12 [19:54:09]line Ðаличными: 0.00 [19:54:09]line Безнал.: 500.18 [19:54:09]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [19:54:09]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [19:54:09]line СÐО: Общий режим [19:54:09]line Чек 66 12.08.2024 19:54 [19:54:09]line Смена: 465 ФФД: 1.0 [19:54:09]line ЗÐМ: 0300000140 [19:54:09]line РÐМ: 0000000000090913 [19:54:09]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:54:09]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [19:54:09]line ФМ: 0000000000874915 [19:54:09]line ФД: 70634 [19:54:09]line ФПД: 232598784775001 [19:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T195409&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70634&fm=232598784775001&tin=02508201610067®Number=0000000000090913&sum=50018 [19:54:09]written 0, free lines is 4095 [19:54:09]OFD Sender: Processing packet 70634 [packets to send 67, broken 66] [19:54:09]ProducePacketName [19:54:09]name=ofd_packets/00070634 [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]Connected sock=9 [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 39 31 35 0F 01 00 00 BE 03 07 01 44 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 61 68 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EA 13 01 00 35 04 06 00 D3 8C 1F F1 13 59 90 6C 39 EC 3D 55 E8 C7 [19:54:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 81 CF 47 00 BE 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EA 13 01 00 F4 03 04 00 4D 0F BA 66 B6 04 01 00 00 69 6E CE 35 6F B3 B8 AB [19:54:09]CommunicateWithHost err = 0 [19:54:09]CheckOFDResponse [19:54:09]1017 (14) - 77093643461234 [19:54:09]1041 (16) - 0000000000874915 [19:54:09]1040 (4) - 70634 [19:54:09]1012 (4) - 12.08.2024 13:34 [19:54:09]1206 (1) - 0 [19:54:09]OFD Sender: Remove packet 70634 [19:54:09]ProducePacketName [19:54:09]name=ofd_packets/00070634 [19:54:09]NVStorageDeleteData [19:54:09]Write to MH i2c: 01 00 00 4C 13 5F [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 4C 13 00 00 00 00 00 F8 0C 6A [19:54:09]RasterBufferAndPrint [19:54:09]line [19:54:09]line [19:54:09]line [19:54:09]line [19:54:09]line [19:54:09]written 0, free lines is 3327 [19:54:09]MH_Cut [19:54:09]Write to MH i2c: D1 01 00 53 13 01 38 [19:54:09]Write i2c OK [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: D1 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: D1 01 00 [19:54:09]MH_I2C_Read... [19:54:09]Read from MH i2c: D1 01 00 53 13 00 37 [19:54:09]Write to MH i2c: 01 00 00 54 13 67 [19:54:09]Write i2c OK [19:54:09]MH_I2C_Read... [19:54:10]OFD Sender: No OFD packet to send [19:54:10]*** Cut start [19:54:10]*** Purtial cut [19:54:10]*** Stage 1: CUTSNS_PIN = 1 [19:54:10]Read from MH i2c: 01 [19:54:10]MH_I2C_Read... [19:54:10]*** Stop cut motor [19:54:10]*** Cut end [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 54 13 00 00 00 00 00 FF 0F 7C [19:54:10]process_action close_receipt done [19:54:10]requested_data is exist [19:54:10]produce_requested_data [19:54:10]requested_item fm.sn is exist - process it [19:54:10]wFMCommunicate request_size=4 [19:54:10]MH_SAM_APDU [19:54:10]CAPDU: 80 11 00 00 [19:54:10]Write to MH i2c: E2 08 00 55 13 80 11 00 00 00 00 00 00 E2 [19:54:10]Write i2c OK [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: E2 [19:54:10]MH_I2C_Read... [19:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:10]Read from MH i2c: E2 17 00 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: E2 17 00 55 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 37 [19:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [19:54:10]wFMCommunicate OK [19:54:10]requested_item fd.num is exist - process it [19:54:10]SAM_PROTO_GetFieldsCounters [19:54:10]wFMCommunicate request_size=4 [19:54:10]MH_SAM_APDU [19:54:10]CAPDU: 80 13 00 00 [19:54:10]Write to MH i2c: E2 08 00 56 13 80 13 00 00 00 00 00 00 E5 [19:54:10]Write i2c OK [19:54:10]MH_I2C_Read... [19:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:10]Read from MH i2c: E2 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: E2 62 00 [19:54:10]MH_I2C_Read... [19:54:10]Read from MH i2c: E2 62 00 56 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EA 13 01 00 0E 04 04 00 D1 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 9B [19:54: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EA 13 01 00 0E 04 04 00 D1 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 [19:54:10]wFMCommunicate OK [19:54:10]SAM_PROTO_GetFieldsCounters done [19:54:10]requested_item shift.num is exist - process it [19:54:10]requested_item shift.opened is exist - process it [19:54:10]req_shift_opened [19:54:10]FM_GetShiftState [19:54:10]SAM_PROTO_GetShiftState [19:54:10]wFMCommunicate request_size=4 [19:54:10]MH_SAM_APDU [19:54:10]CAPDU: 80 13 01 00 [19:54:10]Write to MH i2c: E2 08 00 57 13 80 13 01 00 00 00 00 00 E7 [19:54:10]Write i2c OK [19:54:10]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 57 13 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D4 [19:54:11]RAPDU: 09 00 01 68 5A B9 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":"0000000000874915","fd.num":70634,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [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":"0000000000874915","fd.num":70634,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [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 10.Close socket [19:54:11]Sock 10.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]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:01]accept exits with 7 [20:13:01]New connection [20:13:01]New thread 3066699108 created [20:13:01]Thread 3066842468 joined [20:13:01]Waiting for new connection... [20:13:01] Sock 7.Parse request [20:13:01]Sock 7.Check first char [20:13:01]Sock 7.First char is OK [20:13:01]request: POST /json_proto HTTP/1.0 [20:13:01]Method: POST [20:13:01]URL: /json_proto [20:13:01]Method is POST - this is cgi request [20:13:01]url: /json_proto [20:13:01]query_string will be loaded in cgi processing [20:13:01]execute_cgi json_proto POST (null) [20:13:01]execute_cgi path=json_proto method=POST [20:13:01]POST find Content-Length [20:13:01]Host: 172.17.58.67:8080 [20:13:01]Content-Length: 803 [20:13:01]Content-Type: application/json [20:13:01] [20:13:01]POST finish read [20:13:01]Found Content-Length = 803 [20:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 10.760, "sum" : 800.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:01]execute_script... [20:13:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.40, "quantity" : 10.760, "sum" : 800.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:01]POST & json_proto [20:13:01]process_json_proto [20:13:01]json parsed OK: [20:13:01]protocol is kg_v1.0 [20:13:01]action value=close_receipt [20:13:01]process_action close_receipt [20:13:01]cmd_close_receipt [20:13:01]MH_GetDate [20:13:01]Write to MH i2c: F0 00 00 58 13 5A [20:13:01]Write i2c OK [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: F0 [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: F0 09 00 [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: F0 09 00 58 13 00 CF 6C BA 66 94 51 63 64 6A [20:13:01]GetLastDocTimeStamp 1723492449 [20:13:01]current date 1723493583 [20:13:01]FM_GetShiftState [20:13:01]SAM_PROTO_GetShiftState [20:13:01]wFMCommunicate request_size=4 [20:13:01]MH_SAM_APDU [20:13:01]CAPDU: 80 13 01 00 [20:13:01]Write to MH i2c: E2 08 00 59 13 80 13 01 00 00 00 00 00 E9 [20:13:01]Write i2c OK [20:13:01]MH_I2C_Read... [20:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:01]Read from MH i2c: E2 [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: E2 0E 00 [20:13:01]MH_I2C_Read... [20:13:01]Read from MH i2c: E2 0E 00 59 13 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D6 [20:13:01]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [20:13:01]wFMCommunicate OK [20:13:01]SAM_PROTO_GetShiftState done [20:13:01]FM_GetShiftState done [20:13:01]opened in 1723423336 [20:13:01]opened+sec_in_day 1723509736 [20:13:01]quantity*price = 80054 [20:13:01]sum+1 = 80055 [20:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.54 ÐСП 1% : 7.08 ÐДС 12% : 85.01 Ðаличными: 0.00 Безнал.: 800.54 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 67 12.08.2024 20:13 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70635 ФПД: 167649278605409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T201303&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70635&fm=167649278605409&tin=02508201610067®Number=0000000000090913&sum=80054 [20:13:02]StoreToDocumentArchive [20:13:02]shift 465 fd 70635 [20:13:02]save to /storage/0465/doc_00070635 [20:13:02]save last doc name /storage/0465/doc_00070635 to /storage/kkm_last_doc_name [20:13:02]save OK [20:13:02]Clear old archive folders... [20:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:13:02]tlvbuf is 010E2BB0 [20:13:02]SAM_PROTO_ClearQueue [20:13:02]wFMCommunicate request_size=4 [20:13:02]MH_SAM_APDU [20:13:02]CAPDU: 80 09 00 00 [20:13:02]Write to MH i2c: E2 08 00 66 13 80 09 00 00 00 00 00 00 EB [20:13:02]Write i2c OK [20:13:02]MH_I2C_Read... [20:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:02]Read from MH i2c: E2 [20:13:02]MH_I2C_Read... [20:13:02]Read from MH i2c: E2 03 00 [20:13:02]MH_I2C_Read... [20:13:02]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [20:13:02]RAPDU: 90 00 [20:13:02]wFMCommunicate OK [20:13:02]SAM_PROTO_ClearQueue done [20:13:02]KKMCreateOFDPacket [20:13:02]OFDProtocolAddRootSTLVToBuf [20:13:02]FM_MakeSignedData [20:13:02]FM_MakeSignedData [20:13:02]SAM_PROTO_SignData [20:13:02]wFMCommunicate request_size=4 [20:13:02]MH_SAM_APDU [20:13:02]CAPDU: 80 0D 01 02 [20:13:02]Write to MH i2c: E2 08 00 67 13 80 0D 01 02 00 00 00 00 F3 [20:13:02]Write i2c OK [20:13:02]MH_I2C_Read... [20:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:02]Read from MH i2c: E2 [20:13:02]MH_I2C_Read... [20:13:02]Read from MH i2c: E2 03 00 [20:13:02]MH_I2C_Read... [20:13:02]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [20:13:02]RAPDU: 90 00 [20:13:02]wFMCommunicate OK [20:13:02]wFMCommunicate request_size=255 [20:13:02]MH_SAM_APDU [20:13:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 2A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 B6 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 CF 6C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EB 13 01 00 35 04 06 00 98 79 E3 B2 [20:13:02]Write to MH i2c: E2 02 01 68 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 08 2A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 B6 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 CF 6C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EB 13 01 00 35 04 06 00 98 79 E3 B2 00 00 AC [20:13:02]Write i2c OK [20:13:02]MH_I2C_Read... [20:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:03]Read from MH i2c: E2 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 03 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [20:13:03]RAPDU: 90 00 [20:13:03]wFMCommunicate OK [20:13:03]wFMCommunicate request_size=7 [20:13:03]MH_SAM_APDU [20:13:03]CAPDU: 80 0D 02 02 02 B8 61 [20:13:03]Write to MH i2c: E2 0A 00 69 13 80 0D 02 02 02 00 B8 61 00 00 13 [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:03]Read from MH i2c: E2 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 03 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [20:13:03]RAPDU: 90 00 [20:13:03]wFMCommunicate OK [20:13:03]wFMCommunicate request_size=4 [20:13:03]MH_SAM_APDU [20:13:03]CAPDU: 80 0D 03 02 [20:13:03]Write to MH i2c: E2 08 00 6A 13 80 0D 03 02 00 00 00 00 F8 [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:03]Read from MH i2c: E2 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 0B 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 0B 00 6A 13 00 13 E5 73 CA 1C 56 46 8C 90 00 72 [20:13:03]RAPDU: 13 E5 73 CA 1C 56 46 8C 90 00 [20:13:03]wFMCommunicate OK [20:13:03]SAM_PROTO_SignData done [20:13:03]FM_MakeSignedData done [20:13:03]CreateOFDProtocolMessage [20:13:03]wFMCommunicate request_size=4 [20:13:03]MH_SAM_APDU [20:13:03]CAPDU: 80 11 00 00 [20:13:03]Write to MH i2c: E2 08 00 6B 13 80 11 00 00 00 00 00 00 F8 [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:03]Read from MH i2c: E2 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 17 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 17 00 6B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4D [20:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:13:03]wFMCommunicate OK [20:13:03]CreateOFDProtocolMessage done [20:13:03]OFDSenderStorePacket 70635 [20:13:03]StoreOFDPacket docnum=70635 [20:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0C 01 00 00 DD ED 04 01 AD 8A 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 08 2A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 B6 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 CF 6C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EB 13 01 00 35 04 06 00 98 79 E3 B2 B8 61 13 E5 73 CA 1C 56 46 8C [20:13:03]CheckFolder [20:13:03]dirname=/storage/ofd_packets [20:13:03]CheckFolder done [20:13:03]ProducePacketName [20:13:03]name=ofd_packets/00070635 [20:13:03]NVStorageSaveData ofd_packets/00070635 [20:13:03]File name is /storage/ofd_packets/00070635 [20:13:03]Write 298 bytes [20:13:03]NVStorageSaveData done [20:13:03]OFDSenderStorePacket done [20:13:03]KKMCreateOFDPacket done [20:13:03]NVStorageSaveData kkm_last_timestamp [20:13:03]File name is /storage/kkm_last_timestamp [20:13:03]Write 4 bytes [20:13:03]NVStorageSaveData done [20:13:03]ExternCall_PrintAddStr [20:13:03]wPrintStart [20:13:03]Write to MH i2c: 01 00 00 6C 13 7F [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: 01 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: 01 07 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: 01 07 00 6C 13 00 00 00 00 00 FF 0F 94 [20:13:03]RasterBufferAndPrint [20:13:03]line Счет N : (1)141086 [20:13:03]line ИÐÐ: 02508201610067 [20:13:03]line Контрольно-КаÑÑовый Чек [20:13:03]line ПРОДÐЖР[20:13:03]line ТРК (МРК, ГÐК) : 24 [20:13:03]line Товар: 2710194210 [20:13:03]line ДТ-К-5 [20:13:03]line 10.760 * 74.40 [20:13:03]line = 800.54 [20:13:03]line ÐДС 12% ÐСП 1% [20:13:03]line > о реализуемом товаре [20:13:03]line ИТОГО: 800.54 [20:13:03]line ÐСП 1% : 7.08 [20:13:03]line ÐДС 12% : 85.01 [20:13:03]line Ðаличными: 0.00 [20:13:03]line Безнал.: 800.54 [20:13:03]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [20:13:03]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [20:13:03]line СÐО: Общий режим [20:13:03]line Чек 67 12.08.2024 20:13 [20:13:03]line Смена: 465 ФФД: 1.0 [20:13:03]line ЗÐМ: 0300000140 [20:13:03]line РÐМ: 0000000000090913 [20:13:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [20:13:03]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [20:13:03]line ФМ: 0000000000874915 [20:13:03]line ФД: 70635 [20:13:03]line ФПД: 167649278605409 [20:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T201303&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70635&fm=167649278605409&tin=02508201610067®Number=0000000000090913&sum=80054 [20:13:03]OFD Sender: Processing packet 70635 [packets to send 67, broken 66] [20:13:03]ProducePacketName [20:13:03]name=ofd_packets/00070635 [20:13:03]OFD Sender: To server: ‡•öpG, [20:13:03]CommunicateWithHost lk.salyk.kg:30040 [20:13:03]ConnectInit lk.salyk.kg [20:13:03]written 0, free lines is 4095 [20:13:03]Connected sock=9 [20:13: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 39 31 35 0C 01 00 00 DD ED 04 01 AD 8A 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 08 2A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 B6 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 CF 6C BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EB 13 01 00 35 04 06 00 98 79 E3 B2 B8 61 13 E5 73 CA 1C 56 46 8C [20:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 C2 1C 47 00 0B 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EB 13 01 00 F4 03 04 00 BB 13 BA 66 B6 04 01 00 00 3E DE D2 B1 8A 8C 66 BF [20:13:03]CommunicateWithHost err = 0 [20:13:03]CheckOFDResponse [20:13:03]1017 (14) - 77093643461234 [20:13:03]1041 (16) - 0000000000874915 [20:13:03]1040 (4) - 70635 [20:13:03]1012 (4) - 12.08.2024 13:52 [20:13:03]1206 (1) - 0 [20:13:03]OFD Sender: Remove packet 70635 [20:13:03]ProducePacketName [20:13:03]name=ofd_packets/00070635 [20:13:03]NVStorageDeleteData [20:13:04]Write to MH i2c: 01 00 00 96 13 A9 [20:13:04]Write i2c OK [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: 01 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: 01 07 00 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 EC 0C A8 [20:13:04]RasterBufferAndPrint [20:13:04]line [20:13:04]line [20:13:04]line [20:13:04]line [20:13:04]line [20:13:04]written 0, free lines is 3314 [20:13:04]MH_Cut [20:13:04]Write to MH i2c: D1 01 00 9D 13 01 82 [20:13:04]Write i2c OK [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: D1 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: D1 01 00 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: D1 01 00 9D 13 00 81 [20:13:04]Write to MH i2c: 01 00 00 9E 13 B1 [20:13:04]Write i2c OK [20:13:04]MH_I2C_Read... [20:13:04]OFD Sender: No OFD packet to send [20:13:04]*** Cut start [20:13:04]*** Purtial cut [20:13:04]*** CUTSNS_PIN = 0 [20:13:04]*** Stage 1: CUTSNS_PIN = 1 [20:13:06]Read from MH i2c: 01 [20:13:06]MH_I2C_Read... [20:13:06]*** Stop cut motor [20:13:06]*** Cut end [20:13:06]Read from MH i2c: 01 07 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 07 00 9E 13 00 00 00 00 00 FF 0F C6 [20:13:06]process_action close_receipt done [20:13:06]requested_data is exist [20:13:06]produce_requested_data [20:13:06]requested_item fm.sn is exist - process it [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 11 00 00 [20:13:06]Write to MH i2c: E2 08 00 9F 13 80 11 00 00 00 00 00 00 2C [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 17 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 17 00 9F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 81 [20:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:13:06]wFMCommunicate OK [20:13:06]requested_item fd.num is exist - process it [20:13:06]SAM_PROTO_GetFieldsCounters [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 13 00 00 [20:13:06]Write to MH i2c: E2 08 00 A0 13 80 13 00 00 00 00 00 00 2F [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 62 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 62 00 A0 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EB 13 01 00 0E 04 04 00 D1 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 E9 [20:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EB 13 01 00 0E 04 04 00 D1 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 [20:13:06]wFMCommunicate OK [20:13:06]SAM_PROTO_GetFieldsCounters done [20:13:06]requested_item shift.num is exist - process it [20:13:06]requested_item shift.opened is exist - process it [20:13:06]req_shift_opened [20:13:06]FM_GetShiftState [20:13:06]SAM_PROTO_GetShiftState [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 13 01 00 [20:13:06]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 0E 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 1E [20:13:06]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [20:13:06]wFMCommunicate OK [20:13:06]SAM_PROTO_GetShiftState done [20:13:06]FM_GetShiftState done [20:13:06]req_shift_opened done [20:13:06]requested_item shift.open_date is exist - process it [20:13:06]req_shift_open_date [20:13:06]req_shift_open_date done [20:13:06]produce_requested_data done [20:13:06]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70635,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [20:13:06]process_action_free close_receipt [20:13:06]json_value_free [20:13:06]json_value_free done [20:13:06]process_json_proto returns [20:13:07]Send response to host [20:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70635,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [20:13:07]free response buf [20:13:07]execute_script done [20:13:07]execute_script returns [20:13:07]free content buf [20:13:07]Sock 7.Close socket [20:13:07]Sock 7.Thread stoped [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:56]accept exits with 10 [20:16:56]New connection [20:16:56]New thread 3066842468 created [20:16:56]Thread 3066699108 joined [20:16:56]Waiting for new connection... [20:16:56] Sock 10.Parse request [20:16:56]Sock 10.Check first char [20:16:56]Sock 10.First char is OK [20:16:56]request: POST /json_proto HTTP/1.0 [20:16:56]Method: POST [20:16:56]URL: /json_proto [20:16:56]Method is POST - this is cgi request [20:16:56]url: /json_proto [20:16:56]query_string will be loaded in cgi processing [20:16:56]execute_cgi json_proto POST (null) [20:16:56]execute_cgi path=json_proto method=POST [20:16:56]POST find Content-Length [20:16:56]Host: 172.17.58.67:8080 [20:16:56]Content-Length: 808 [20:16:56]Content-Type: application/json [20:16:56] [20:16:56]POST finish read [20:16:56]Found Content-Length = 808 [20:16:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:56]execute_script... [20:16: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)141087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:56]POST & json_proto [20:16:56]process_json_proto [20:16:56]json parsed OK: [20:16:56]protocol is kg_v1.0 [20:16:56]action value=close_receipt [20:16:56]process_action close_receipt [20:16:56]cmd_close_receipt [20:16:56]MH_GetDate [20:16:56]Write to MH i2c: F0 00 00 A2 13 A4 [20:16:56]Write i2c OK [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: F0 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: F0 09 00 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: F0 09 00 A2 13 00 BA 6D BA 66 94 51 63 64 A0 [20:16:56]GetLastDocTimeStamp 1723493583 [20:16:56]current date 1723493818 [20:16:56]FM_GetShiftState [20:16:56]SAM_PROTO_GetShiftState [20:16:56]wFMCommunicate request_size=4 [20:16:56]MH_SAM_APDU [20:16:56]CAPDU: 80 13 01 00 [20:16:56]Write to MH i2c: E2 08 00 A3 13 80 13 01 00 00 00 00 00 33 [20:16:56]Write i2c OK [20:16:56]MH_I2C_Read... [20:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:56]Read from MH i2c: E2 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: E2 0E 00 [20:16:56]MH_I2C_Read... [20:16:56]Read from MH i2c: E2 0E 00 A3 13 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 20 [20:16:56]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [20:16:56]wFMCommunicate OK [20:16:56]SAM_PROTO_GetShiftState done [20:16:56]FM_GetShiftState done [20:16:56]opened in 1723423336 [20:16:56]opened+sec_in_day 1723509736 [20:16:56]quantity*price = 100036 [20:16:56]sum+1 = 100037 [20:16:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 68 12.08.2024 20:16 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70636 ФПД: 62202010934781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T201658&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70636&fm=62202010934781&tin=02508201610067®Number=0000000000090913&sum=100036 [20:16:57]StoreToDocumentArchive [20:16:57]shift 465 fd 70636 [20:16:57]save to /storage/0465/doc_00070636 [20:16:57]save last doc name /storage/0465/doc_00070636 to /storage/kkm_last_doc_name [20:16:57]save OK [20:16:57]Clear old archive folders... [20:16:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:57]tlvbuf is 010FC370 [20:16:57]SAM_PROTO_ClearQueue [20:16:57]wFMCommunicate request_size=4 [20:16:57]MH_SAM_APDU [20:16:57]CAPDU: 80 09 00 00 [20:16:57]Write to MH i2c: E2 08 00 B0 13 80 09 00 00 00 00 00 00 35 [20:16:57]Write i2c OK [20:16:57]MH_I2C_Read... [20:16:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:57]Read from MH i2c: E2 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 03 00 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [20:16:57]RAPDU: 90 00 [20:16:57]wFMCommunicate OK [20:16:57]SAM_PROTO_ClearQueue done [20:16:57]KKMCreateOFDPacket [20:16:57]OFDProtocolAddRootSTLVToBuf [20:16:57]FM_MakeSignedData [20:16:57]FM_MakeSignedData [20:16:57]SAM_PROTO_SignData [20:16:57]wFMCommunicate request_size=4 [20:16:57]MH_SAM_APDU [20:16:57]CAPDU: 80 0D 01 02 [20:16:57]Write to MH i2c: E2 08 00 B1 13 80 0D 01 02 00 00 00 00 3D [20:16:57]Write i2c OK [20:16:57]MH_I2C_Read... [20:16:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:57]Read from MH i2c: E2 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 03 00 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [20:16:57]RAPDU: 90 00 [20:16:57]wFMCommunicate OK [20:16:57]wFMCommunicate request_size=255 [20:16:57]MH_SAM_APDU [20:16: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 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BA 6D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EC 13 01 00 35 04 06 00 38 [20:16:57]Write to MH i2c: E2 02 01 B2 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BA 6D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EC 13 01 00 35 04 06 00 38 00 00 3A [20:16:57]Write i2c OK [20:16:57]MH_I2C_Read... [20:16:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:57]Read from MH i2c: E2 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 03 00 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [20:16:57]RAPDU: 90 00 [20:16:57]wFMCommunicate OK [20:16:57]wFMCommunicate request_size=10 [20:16:57]MH_SAM_APDU [20:16:57]CAPDU: 80 0D 02 02 05 92 88 C4 1D FD [20:16:57]Write to MH i2c: E2 0D 00 B3 13 80 0D 02 02 05 00 92 88 C4 1D FD 00 00 42 [20:16:57]Write i2c OK [20:16:57]MH_I2C_Read... [20:16:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:57]Read from MH i2c: E2 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 03 00 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [20:16:57]RAPDU: 90 00 [20:16:57]wFMCommunicate OK [20:16:57]wFMCommunicate request_size=4 [20:16:57]MH_SAM_APDU [20:16:57]CAPDU: 80 0D 03 02 [20:16:57]Write to MH i2c: E2 08 00 B4 13 80 0D 03 02 00 00 00 00 42 [20:16:57]Write i2c OK [20:16:57]MH_I2C_Read... [20:16:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:57]Read from MH i2c: E2 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 0B 00 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 0B 00 B4 13 00 A9 9F 0E 91 CB 05 AD 92 90 00 39 [20:16:57]RAPDU: A9 9F 0E 91 CB 05 AD 92 90 00 [20:16:57]wFMCommunicate OK [20:16:57]SAM_PROTO_SignData done [20:16:57]FM_MakeSignedData done [20:16:57]CreateOFDProtocolMessage [20:16:57]wFMCommunicate request_size=4 [20:16:57]MH_SAM_APDU [20:16:57]CAPDU: 80 11 00 00 [20:16:57]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [20:16:57]Write i2c OK [20:16:57]MH_I2C_Read... [20:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:57]Read from MH i2c: E2 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 17 00 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 97 [20:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:16:57]wFMCommunicate OK [20:16:57]CreateOFDProtocolMessage done [20:16:57]OFDSenderStorePacket 70636 [20:16:57]StoreOFDPacket docnum=70636 [20:16:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 5F F3 07 01 1F 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BA 6D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EC 13 01 00 35 04 06 00 38 92 88 C4 1D FD A9 9F 0E 91 CB 05 AD 92 [20:16:57]CheckFolder [20:16:57]dirname=/storage/ofd_packets [20:16:57]CheckFolder done [20:16:57]ProducePacketName [20:16:57]name=ofd_packets/00070636 [20:16:57]NVStorageSaveData ofd_packets/00070636 [20:16:57]File name is /storage/ofd_packets/00070636 [20:16:57]Write 301 bytes [20:16:57]NVStorageSaveData done [20:16:57]OFDSenderStorePacket done [20:16:57]KKMCreateOFDPacket done [20:16:57]NVStorageSaveData kkm_last_timestamp [20:16:57]File name is /storage/kkm_last_timestamp [20:16:57]Write 4 bytes [20:16:57]NVStorageSaveData done [20:16:57]ExternCall_PrintAddStr [20:16:57]wPrintStart [20:16:57]Write to MH i2c: 01 00 00 B6 13 C9 [20:16:57]Write i2c OK [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: 01 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: 01 07 00 [20:16:57]MH_I2C_Read... [20:16:57]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [20:16:57]RasterBufferAndPrint [20:16:57]line Счет N : (1)141087 [20:16:57]line ИÐÐ: 02508201610067 [20:16:57]line Контрольно-КаÑÑовый Чек [20:16:57]line ПРОДÐЖР[20:16:57]line ТРК (МРК, ГÐК) : 41 [20:16:57]line Товар: 2710124130 [20:16:57]line Ðи-92-К-5 [20:16:57]line 15.180 * 65.90 [20:16:57]line = 1000.36 [20:16:57]line ÐДС 12% ÐСП 1% [20:16:57]line > о реализуемом товаре [20:16:57]line ИТОГО: 1000.36 [20:16:57]line ÐСП 1% : 8.85 [20:16:57]line ÐДС 12% : 106.23 [20:16:57]line Ðаличными: 0.00 [20:16:57]line Безнал.: 1000.36 [20:16:57]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [20:16:57]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [20:16:57]line СÐО: Общий режим [20:16:57]line Чек 68 12.08.2024 20:16 [20:16:57]line Смена: 465 ФФД: 1.0 [20:16:57]line ЗÐМ: 0300000140 [20:16:57]line РÐМ: 0000000000090913 [20:16:57]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [20:16:57]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [20:16:57]line ФМ: 0000000000874915 [20:16:57]line ФД: 70636 [20:16:57]line ФПД: 62202010934781 [20:16:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T201658&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70636&fm=62202010934781&tin=02508201610067®Number=0000000000090913&sum=100036 [20:16:57]written 0, free lines is 4095 [20:16:57]OFD Sender: Processing packet 70636 [packets to send 67, broken 66] [20:16:57]ProducePacketName [20:16:57]name=ofd_packets/00070636 [20:16:57]OFD Sender: To server: ‡•öpG, [20:16:57]CommunicateWithHost lk.salyk.kg:30040 [20:16:57]ConnectInit lk.salyk.kg [20:16:57]Connected sock=11 [20:16: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 39 31 35 0F 01 00 00 5F F3 07 01 1F 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BA 6D BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EC 13 01 00 35 04 06 00 38 92 88 C4 1D FD A9 9F 0E 91 CB 05 AD 92 [20:16:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 22 0F 47 00 09 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 39 31 35 10 04 04 00 EC 13 01 00 F4 03 04 00 A6 14 BA 66 B6 04 01 00 00 EC 18 46 E1 6C DB 1A EC [20:16:57]CommunicateWithHost err = 0 [20:16:57]CheckOFDResponse [20:16:57]1017 (14) - 77093643461234 [20:16:57]1041 (16) - 0000000000874915 [20:16:57]1040 (4) - 70636 [20:16:57]1012 (4) - 12.08.2024 13:56 [20:16:57]1206 (1) - 0 [20:16:57]OFD Sender: Remove packet 70636 [20:16:57]ProducePacketName [20:16:57]name=ofd_packets/00070636 [20:16:57]NVStorageDeleteData [20:16:58]Write to MH i2c: 01 00 00 E0 13 F3 [20:16:58]Write i2c OK [20:16:58]MH_I2C_Read... [20:16:58]Read from MH i2c: 01 [20:16:58]MH_I2C_Read... [20:16:58]Read from MH i2c: 01 07 00 [20:16:58]MH_I2C_Read... [20:16:58]Read from MH i2c: 01 07 00 E0 13 00 00 00 00 00 F7 0C FD [20:16:58]RasterBufferAndPrint [20:16:58]line [20:16:58]line [20:16:58]line [20:16:58]line [20:16:58]line [20:16:58]written 0, free lines is 3325 [20:16:58]MH_Cut [20:16:58]Write to MH i2c: D1 01 00 E7 13 01 CC [20:16:58]Write i2c OK [20:16:58]MH_I2C_Read... [20:16:58]Read from MH i2c: D1 [20:16:58]MH_I2C_Read... [20:16:58]Read from MH i2c: D1 01 00 [20:16:58]MH_I2C_Read... [20:16:58]Read from MH i2c: D1 01 00 E7 13 00 CB [20:16:58]Write to MH i2c: 01 00 00 E8 13 FB [20:16:58]Write i2c OK [20:16:58]MH_I2C_Read... [20:16:58]OFD Sender: No OFD packet to send [20:16:58]*** Cut start [20:16:58]*** Purtial cut [20:16:58]*** Stage 1: CUTSNS_PIN = 1 [20:16:59]Read from MH i2c: 01 [20:16:59]MH_I2C_Read... [20:16:59]*** Stop cut motor [20:16:59]*** Cut end [20:16:59]Read from MH i2c: 01 07 00 [20:16:59]MH_I2C_Read... [20:16:59]Read from MH i2c: 01 07 00 E8 13 00 00 00 00 00 FF 0F 10 [20:16:59]process_action close_receipt done [20:16:59]requested_data is exist [20:16:59]produce_requested_data [20:16:59]requested_item fm.sn is exist - process it [20:16:59]wFMCommunicate request_size=4 [20:16:59]MH_SAM_APDU [20:16:59]CAPDU: 80 11 00 00 [20:16:59]Write to MH i2c: E2 08 00 E9 13 80 11 00 00 00 00 00 00 76 [20:16:59]Write i2c OK [20:16:59]MH_I2C_Read... [20:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:59]Read from MH i2c: E2 [20:16:59]MH_I2C_Read... [20:16:59]Read from MH i2c: E2 17 00 [20:16:59]MH_I2C_Read... [20:16:59]Read from MH i2c: E2 17 00 E9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 CB [20:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:16:59]wFMCommunicate OK [20:16:59]requested_item fd.num is exist - process it [20:16:59]SAM_PROTO_GetFieldsCounters [20:16:59]wFMCommunicate request_size=4 [20:16:59]MH_SAM_APDU [20:16:59]CAPDU: 80 13 00 00 [20:16:59]Write to MH i2c: E2 08 00 EA 13 80 13 00 00 00 00 00 00 79 [20:16:59]Write i2c OK [20:16:59]MH_I2C_Read... [20:16:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:59]Read from MH i2c: E2 [20:16:59]MH_I2C_Read... [20:16:59]Read from MH i2c: E2 62 00 [20:16:59]MH_I2C_Read... [20:16:59]Read from MH i2c: E2 62 00 EA 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EC 13 01 00 0E 04 04 00 D1 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 37 [20:16:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EC 13 01 00 0E 04 04 00 D1 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 [20:16:59]wFMCommunicate OK [20:16:59]SAM_PROTO_GetFieldsCounters done [20:16:59]requested_item shift.num is exist - process it [20:16:59]requested_item shift.opened is exist - process it [20:16:59]req_shift_opened [20:16:59]FM_GetShiftState [20:16:59]SAM_PROTO_GetShiftState [20:16:59]wFMCommunicate request_size=4 [20:16:59]MH_SAM_APDU [20:16:59]CAPDU: 80 13 01 00 [20:16:59]Write to MH i2c: E2 08 00 EB 13 80 13 01 00 00 00 00 00 7B [20:16:59]Write i2c OK [20:16:59]MH_I2C_Read... [20:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:59]Read from MH i2c: E2 [20:16:59]MH_I2C_Read... [20:16:59]Read from MH i2c: E2 0E 00 [20:16:59]MH_I2C_Read... [20:16:59]Read from MH i2c: E2 0E 00 EB 13 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 68 [20:16:59]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [20:16:59]wFMCommunicate OK [20:16:59]SAM_PROTO_GetShiftState done [20:16:59]FM_GetShiftState done [20:16:59]req_shift_opened done [20:16:59]requested_item shift.open_date is exist - process it [20:16:59]req_shift_open_date [20:16:59]req_shift_open_date done [20:16:59]produce_requested_data done [20:16:59]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70636,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [20:16:59]process_action_free close_receipt [20:16:59]json_value_free [20:16:59]json_value_free done [20:16:59]process_json_proto returns [20:16:59]Send response to host [20:16:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70636,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [20:16:59]free response buf [20:16:59]execute_script done [20:16:59]execute_script returns [20:16:59]free content buf [20:16:59]Sock 10.Close socket [20:16:59]Sock 10.Thread stoped [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26: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:44]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [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:08]accept exits with 7 [20:37:08]New connection [20:37:08]New thread 3066699108 created [20:37:08]Thread 3066842468 joined [20:37:08]Waiting for new connection... [20:37:08] Sock 7.Parse request [20:37:08]Sock 7.Check first char [20:37:08]Sock 7.First char is OK [20:37:08]request: POST /json_proto HTTP/1.0 [20:37:08]Method: POST [20:37:08]URL: /json_proto [20:37:08]Method is POST - this is cgi request [20:37:08]url: /json_proto [20:37:08]query_string will be loaded in cgi processing [20:37:08]execute_cgi json_proto POST (null) [20:37:08]execute_cgi path=json_proto method=POST [20:37:08]POST find Content-Length [20:37:08]Host: 172.17.58.67:8080 [20:37:08]Content-Length: 805 [20:37:08]Content-Type: application/json [20:37:08] [20:37:08]POST finish read [20:37:08]Found Content-Length = 805 [20:37:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.000, "sum" : 329.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 329.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:08]execute_script... [20:37: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)141088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 5.000, "sum" : 329.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 329.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:08]POST & json_proto [20:37:08]process_json_proto [20:37:08]json parsed OK: [20:37:08]protocol is kg_v1.0 [20:37:08]action value=close_receipt [20:37:08]process_action close_receipt [20:37:08]cmd_close_receipt [20:37:08]MH_GetDate [20:37:08]Write to MH i2c: F0 00 00 EC 13 EE [20:37:08]Write i2c OK [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: F0 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: F0 09 00 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: F0 09 00 EC 13 00 76 72 BA 66 94 51 63 64 AB [20:37:08]GetLastDocTimeStamp 1723493818 [20:37:08]current date 1723495030 [20:37:08]FM_GetShiftState [20:37:08]SAM_PROTO_GetShiftState [20:37:08]wFMCommunicate request_size=4 [20:37:08]MH_SAM_APDU [20:37:08]CAPDU: 80 13 01 00 [20:37:08]Write to MH i2c: E2 08 00 ED 13 80 13 01 00 00 00 00 00 7D [20:37:08]Write i2c OK [20:37:08]MH_I2C_Read... [20:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:08]Read from MH i2c: E2 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 0E 00 [20:37:08]MH_I2C_Read... [20:37:08]Read from MH i2c: E2 0E 00 ED 13 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 6A [20:37:08]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [20:37:08]wFMCommunicate OK [20:37:08]SAM_PROTO_GetShiftState done [20:37:08]FM_GetShiftState done [20:37:08]opened in 1723423336 [20:37:08]opened+sec_in_day 1723509736 [20:37:08]quantity*price = 32950 [20:37:08]sum+1 = 32951 [20:37:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.50 ÐСП 1% : 2.92 ÐДС 12% : 34.99 Ðаличными: 0.00 Безнал.: 329.50 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 69 12.08.2024 20:37 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70637 ФПД: 77832731179799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T203710&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70637&fm=77832731179799&tin=02508201610067®Number=0000000000090913&sum=32950 [20:37:09]StoreToDocumentArchive [20:37:09]shift 465 fd 70637 [20:37:09]save to /storage/0465/doc_00070637 [20:37:09]save last doc name /storage/0465/doc_00070637 to /storage/kkm_last_doc_name [20:37:09]save OK [20:37:09]Clear old archive folders... [20:37:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:37:09]tlvbuf is 0109CA20 [20:37:09]SAM_PROTO_ClearQueue [20:37:09]wFMCommunicate request_size=4 [20:37:09]MH_SAM_APDU [20:37:09]CAPDU: 80 09 00 00 [20:37:09]Write to MH i2c: E2 08 00 FA 13 80 09 00 00 00 00 00 00 7F [20:37:09]Write i2c OK [20:37:09]MH_I2C_Read... [20:37:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:09]Read from MH i2c: E2 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 03 00 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [20:37:09]RAPDU: 90 00 [20:37:09]wFMCommunicate OK [20:37:09]SAM_PROTO_ClearQueue done [20:37:09]KKMCreateOFDPacket [20:37:09]OFDProtocolAddRootSTLVToBuf [20:37:09]FM_MakeSignedData [20:37:09]FM_MakeSignedData [20:37:09]SAM_PROTO_SignData [20:37:09]wFMCommunicate request_size=4 [20:37:09]MH_SAM_APDU [20:37:09]CAPDU: 80 0D 01 02 [20:37:09]Write to MH i2c: E2 08 00 FB 13 80 0D 01 02 00 00 00 00 87 [20:37:09]Write i2c OK [20:37:09]MH_I2C_Read... [20:37:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:09]Read from MH i2c: E2 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 03 00 [20:37:09]MH_I2C_Read... [20:37:09]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [20:37:09]RAPDU: 90 00 [20:37:09]wFMCommunicate OK [20:37:09]wFMCommunicate request_size=255 [20:37:09]MH_SAM_APDU [20:37:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 AB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 76 72 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 ED 13 01 00 35 04 06 00 46 [20:37:09]Write to MH i2c: E2 02 01 FC 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 AB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 76 72 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 ED 13 01 00 35 04 06 00 46 00 00 E7 [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:10]Read from MH i2c: E2 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 03 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [20:37:10]RAPDU: 90 00 [20:37:10]wFMCommunicate OK [20:37:10]wFMCommunicate request_size=10 [20:37:10]MH_SAM_APDU [20:37:10]CAPDU: 80 0D 02 02 05 C9 D8 4B 3B 17 [20:37:10]Write to MH i2c: E2 0D 00 FD 13 80 0D 02 02 05 00 C9 D8 4B 3B 17 00 00 D2 [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:10]Read from MH i2c: E2 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 03 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [20:37:10]RAPDU: 90 00 [20:37:10]wFMCommunicate OK [20:37:10]wFMCommunicate request_size=4 [20:37:10]MH_SAM_APDU [20:37:10]CAPDU: 80 0D 03 02 [20:37:10]Write to MH i2c: E2 08 00 FE 13 80 0D 03 02 00 00 00 00 8C [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:10]Read from MH i2c: E2 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 0B 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 0B 00 FE 13 00 3A E5 18 91 90 E4 7B FF 90 00 43 [20:37:10]RAPDU: 3A E5 18 91 90 E4 7B FF 90 00 [20:37:10]wFMCommunicate OK [20:37:10]SAM_PROTO_SignData done [20:37:10]FM_MakeSignedData done [20:37:10]CreateOFDProtocolMessage [20:37:10]wFMCommunicate request_size=4 [20:37:10]MH_SAM_APDU [20:37:10]CAPDU: 80 11 00 00 [20:37:10]Write to MH i2c: E2 08 00 FF 13 80 11 00 00 00 00 00 00 8C [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:10]Read from MH i2c: E2 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 17 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: E2 17 00 FF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E1 [20:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:37:10]wFMCommunicate OK [20:37:10]CreateOFDProtocolMessage done [20:37:10]OFDSenderStorePacket 70637 [20:37:10]StoreOFDPacket docnum=70637 [20:37:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 E8 8D 07 01 48 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 AB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 76 72 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 ED 13 01 00 35 04 06 00 46 C9 D8 4B 3B 17 3A E5 18 91 90 E4 7B FF [20:37:10]CheckFolder [20:37:10]dirname=/storage/ofd_packets [20:37:10]CheckFolder done [20:37:10]ProducePacketName [20:37:10]name=ofd_packets/00070637 [20:37:10]NVStorageSaveData ofd_packets/00070637 [20:37:10]File name is /storage/ofd_packets/00070637 [20:37:10]Write 301 bytes [20:37:10]NVStorageSaveData done [20:37:10]OFDSenderStorePacket done [20:37:10]KKMCreateOFDPacket done [20:37:10]NVStorageSaveData kkm_last_timestamp [20:37:10]File name is /storage/kkm_last_timestamp [20:37:10]Write 4 bytes [20:37:10]NVStorageSaveData done [20:37:10]ExternCall_PrintAddStr [20:37:10]wPrintStart [20:37:10]Write to MH i2c: 01 00 00 00 14 14 [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 07 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 07 00 00 14 00 00 00 00 00 FF 0F 29 [20:37:10]RasterBufferAndPrint [20:37:10]line Счет N : (1)141088 [20:37:10]line ИÐÐ: 02508201610067 [20:37:10]line Контрольно-КаÑÑовый Чек [20:37:10]line ПРОДÐЖР[20:37:10]line ТРК (МРК, ГÐК) : 31 [20:37:10]line Товар: 2710124130 [20:37:10]line Ðи-92-К-5 [20:37:10]line 5.000 * 65.90 [20:37:10]line = 329.50 [20:37:10]line ÐДС 12% ÐСП 1% [20:37:10]line > о реализуемом товаре [20:37:10]line ИТОГО: 329.50 [20:37:10]line ÐСП 1% : 2.92 [20:37:10]line ÐДС 12% : 34.99 [20:37:10]line Ðаличными: 0.00 [20:37:10]line Безнал.: 329.50 [20:37:10]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [20:37:10]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [20:37:10]line СÐО: Общий режим [20:37:10]line Чек 69 12.08.2024 20:37 [20:37:10]line Смена: 465 ФФД: 1.0 [20:37:10]line ЗÐМ: 0300000140 [20:37:10]line РÐМ: 0000000000090913 [20:37:10]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [20:37:10]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [20:37:10]line ФМ: 0000000000874915 [20:37:10]line ФД: 70637 [20:37:10]line ФПД: 77832731179799 [20:37:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T203710&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70637&fm=77832731179799&tin=02508201610067®Number=0000000000090913&sum=32950 [20:37:10]written 0, free lines is 4095 [20:37:10]OFD Sender: Processing packet 70637 [packets to send 67, broken 66] [20:37:10]ProducePacketName [20:37:10]name=ofd_packets/00070637 [20:37:10]OFD Sender: To server: ‡•öpG, [20:37:10]CommunicateWithHost lk.salyk.kg:30040 [20:37:10]ConnectInit lk.salyk.kg [20:37:10]Connected sock=10 [20:37: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 39 31 35 0F 01 00 00 E8 8D 07 01 48 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 BE 19 00 00 00 00 13 04 06 00 B6 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 AB 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 76 72 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 ED 13 01 00 35 04 06 00 46 C9 D8 4B 3B 17 3A E5 18 91 90 E4 7B FF [20:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 A6 87 47 00 DB 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 ED 13 01 00 F4 03 04 00 62 19 BA 66 B6 04 01 00 00 8F EA 52 06 70 43 92 C8 [20:37:10]CommunicateWithHost err = 0 [20:37:10]CheckOFDResponse [20:37:10]1017 (14) - 77093643461234 [20:37:10]1041 (16) - 0000000000874915 [20:37:10]1040 (4) - 70637 [20:37:10]1012 (4) - 12.08.2024 14:17 [20:37:10]1206 (1) - 0 [20:37:10]OFD Sender: Remove packet 70637 [20:37:10]ProducePacketName [20:37:10]name=ofd_packets/00070637 [20:37:10]NVStorageDeleteData [20:37:10]Write to MH i2c: 01 00 00 2A 14 3E [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 07 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: 01 07 00 2A 14 00 00 00 00 00 F8 0C 49 [20:37:10]RasterBufferAndPrint [20:37:10]line [20:37:10]line [20:37:10]line [20:37:10]line [20:37:10]line [20:37:10]written 0, free lines is 3326 [20:37:10]MH_Cut [20:37:10]Write to MH i2c: D1 01 00 31 14 01 17 [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: D1 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: D1 01 00 [20:37:10]MH_I2C_Read... [20:37:10]Read from MH i2c: D1 01 00 31 14 00 16 [20:37:10]Write to MH i2c: 01 00 00 32 14 46 [20:37:10]Write i2c OK [20:37:10]MH_I2C_Read... [20:37:11]OFD Sender: No OFD packet to send [20:37:11]*** Cut start [20:37:11]*** Purtial cut [20:37:11]*** CUTSNS_PIN = 0 [20:37:11]*** Stage 1: CUTSNS_PIN = 1 [20:37:13]Read from MH i2c: 01 [20:37:13]MH_I2C_Read... [20:37:13]*** Stop cut motor [20:37:13]Read from MH i2c: 01 07 00 [20:37:13]MH_I2C_Read... [20:37:13]*** Cut end [20:37:13]Read from MH i2c: 01 07 00 32 14 00 00 00 00 00 FF 0F 5B [20:37:13]process_action close_receipt done [20:37:13]requested_data is exist [20:37:13]produce_requested_data [20:37:13]requested_item fm.sn is exist - process it [20:37:13]wFMCommunicate request_size=4 [20:37:13]MH_SAM_APDU [20:37:13]CAPDU: 80 11 00 00 [20:37:13]Write to MH i2c: E2 08 00 33 14 80 11 00 00 00 00 00 00 C1 [20:37:13]Write i2c OK [20:37:13]MH_I2C_Read... [20:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:13]Read from MH i2c: E2 [20:37:13]MH_I2C_Read... [20:37:13]Read from MH i2c: E2 17 00 [20:37:13]MH_I2C_Read... [20:37:13]Read from MH i2c: E2 17 00 33 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 16 [20:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [20:37:13]wFMCommunicate OK [20:37:13]requested_item fd.num is exist - process it [20:37:13]SAM_PROTO_GetFieldsCounters [20:37:13]wFMCommunicate request_size=4 [20:37:13]MH_SAM_APDU [20:37:13]CAPDU: 80 13 00 00 [20:37:13]Write to MH i2c: E2 08 00 34 14 80 13 00 00 00 00 00 00 C4 [20:37:13]Write i2c OK [20:37:13]MH_I2C_Read... [20:37:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:13]Read from MH i2c: E2 [20:37:13]MH_I2C_Read... [20:37:13]Read from MH i2c: E2 62 00 [20:37:13]MH_I2C_Read... [20:37:13]Read from MH i2c: E2 62 00 34 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 ED 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [20:37: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 ED 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:13]wFMCommunicate OK [20:37:13]SAM_PROTO_GetFieldsCounters done [20:37:13]requested_item shift.num is exist - process it [20:37:13]requested_item shift.opened is exist - process it [20:37:13]req_shift_opened [20:37:13]FM_GetShiftState [20:37:13]SAM_PROTO_GetShiftState [20:37:13]wFMCommunicate request_size=4 [20:37:13]MH_SAM_APDU [20:37:13]CAPDU: 80 13 01 00 [20:37:13]Write to MH i2c: E2 08 00 35 14 80 13 01 00 00 00 00 00 C6 [20:37:13]Write i2c OK [20:37:13]MH_I2C_Read... [20:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:13]Read from MH i2c: E2 [20:37:13]MH_I2C_Read... [20:37:13]Read from MH i2c: E2 0E 00 [20:37:13]MH_I2C_Read... [20:37:13]Read from MH i2c: E2 0E 00 35 14 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 B3 [20:37:13]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [20:37:13]wFMCommunicate OK [20:37:13]SAM_PROTO_GetShiftState done [20:37:13]FM_GetShiftState done [20:37:13]req_shift_opened done [20:37:13]requested_item shift.open_date is exist - process it [20:37:13]req_shift_open_date [20:37:13]req_shift_open_date done [20:37:13]produce_requested_data done [20:37:13]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70637,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [20:37:13]process_action_free close_receipt [20:37:13]json_value_free [20:37:13]json_value_free done [20:37:13]process_json_proto returns [20:37:13]Send response to host [20:37:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70637,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [20:37:13]free response buf [20:37:13]execute_script done [20:37:13]execute_script returns [20:37:13]free content buf [20:37:13]Sock 7.Close socket [20:37:13]Sock 7.Thread stoped [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07: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: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:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11: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:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:33]int [21:31:33]Write to MH i2c: 01 00 00 36 14 4A [21:31:33]*** FLAG_PRN_KEY set [21:31:33]Write i2c OK [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 36 14 00 08 00 00 00 FF 0F 67 [21:31:33]state=0 [21:31:33]Key pressed [21:31:33]Feed [21:31:33]Write to MH i2c: D8 00 00 37 14 22 [21:31:33]Write i2c OK [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: D8 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: D8 01 00 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: D8 01 00 37 14 00 23 [21:31:33]int [21:31:33]Write to MH i2c: 01 00 00 38 14 4C [21:31:33]Write i2c OK [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 38 14 00 48 00 00 00 3C 00 D7 [21:31:33]state=2 [21:31:33]Key pressed [21:31:33]int [21:31:33]Write to MH i2c: 01 00 00 39 14 4D [21:31:33]*** FLAG_PRN_KEY reset [21:31:33]Write i2c OK [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 39 14 00 00 00 00 00 F6 0F 59 [21:31:33]state=2 [21:31:33]Stop feed [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]accept exits with 9 [21:33:09]New connection [21:33:09]New thread 3066842468 created [21:33:09]Thread 3066699108 joined [21:33:09]Waiting for new connection... [21:33:09] Sock 9.Parse request [21:33:09]Sock 9.Check first char [21:33:09]Sock 9.First char is OK [21:33:09]request: POST /json_proto HTTP/1.0 [21:33:09]Method: POST [21:33:09]URL: /json_proto [21:33:09]Method is POST - this is cgi request [21:33:09]url: /json_proto [21:33:09]query_string will be loaded in cgi processing [21:33:09]execute_cgi json_proto POST (null) [21:33:09]execute_cgi path=json_proto method=POST [21:33:09]POST find Content-Length [21:33:09]Host: 172.17.58.67:8080 [21:33:09]Content-Length: 805 [21:33:09]Content-Type: application/json [21:33:09] [21:33:09]POST finish read [21:33:09]Found Content-Length = 805 [21:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.230, "sum" : 410.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" : 410.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:09]execute_script... [21:33: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)141089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 6.230, "sum" : 410.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" : 410.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:09]POST & json_proto [21:33:09]process_json_proto [21:33:09]json parsed OK: [21:33:09]protocol is kg_v1.0 [21:33:09]action value=close_receipt [21:33:09]process_action close_receipt [21:33:09]cmd_close_receipt [21:33:09]MH_GetDate [21:33:09]Write to MH i2c: F0 00 00 3A 14 3D [21:33:09]Write i2c OK [21:33:09]MH_I2C_Read... [21:33:09]Read from MH i2c: F0 [21:33:09]MH_I2C_Read... [21:33:09]Read from MH i2c: F0 09 00 [21:33:09]MH_I2C_Read... [21:33:09]Read from MH i2c: F0 09 00 3A 14 00 97 7F BA 66 94 51 63 64 28 [21:33:09]GetLastDocTimeStamp 1723495030 [21:33:09]current date 1723498391 [21:33:09]FM_GetShiftState [21:33:09]SAM_PROTO_GetShiftState [21:33:09]wFMCommunicate request_size=4 [21:33:09]MH_SAM_APDU [21:33:09]CAPDU: 80 13 01 00 [21:33:09]Write to MH i2c: E2 08 00 3B 14 80 13 01 00 00 00 00 00 CC [21:33:09]Write i2c OK [21:33:09]MH_I2C_Read... [21:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:09]Read from MH i2c: E2 [21:33:09]MH_I2C_Read... [21:33:09]Read from MH i2c: E2 0E 00 [21:33:09]MH_I2C_Read... [21:33:09]Read from MH i2c: E2 0E 00 3B 14 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 B9 [21:33:09]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [21:33:09]wFMCommunicate OK [21:33:09]SAM_PROTO_GetShiftState done [21:33:09]FM_GetShiftState done [21:33:09]opened in 1723423336 [21:33:09]opened+sec_in_day 1723509736 [21:33:09]quantity*price = 41055 [21:33:09]sum+1 = 41057 [21:33:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 410.56 ÐСП 1% : 3.63 ÐДС 12% : 43.60 Ðаличными: 0.00 Безнал.: 410.56 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 70 12.08.2024 21:33 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70638 ФПД: 51336204956378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T213311&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70638&fm=51336204956378&tin=02508201610067®Number=0000000000090913&sum=41056 [21:33:10]StoreToDocumentArchive [21:33:10]shift 465 fd 70638 [21:33:10]save to /storage/0465/doc_00070638 [21:33:10]save last doc name /storage/0465/doc_00070638 to /storage/kkm_last_doc_name [21:33:10]save OK [21:33:10]Clear old archive folders... [21:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:33:10]tlvbuf is 010E1F60 [21:33:10]SAM_PROTO_ClearQueue [21:33:10]wFMCommunicate request_size=4 [21:33:10]MH_SAM_APDU [21:33:10]CAPDU: 80 09 00 00 [21:33:10]Write to MH i2c: E2 08 00 48 14 80 09 00 00 00 00 00 00 CE [21:33:10]Write i2c OK [21:33:10]MH_I2C_Read... [21:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:10]Read from MH i2c: E2 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 03 00 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [21:33:10]RAPDU: 90 00 [21:33:10]wFMCommunicate OK [21:33:10]SAM_PROTO_ClearQueue done [21:33:10]KKMCreateOFDPacket [21:33:10]OFDProtocolAddRootSTLVToBuf [21:33:10]FM_MakeSignedData [21:33:10]FM_MakeSignedData [21:33:10]SAM_PROTO_SignData [21:33:10]wFMCommunicate request_size=4 [21:33:10]MH_SAM_APDU [21:33:10]CAPDU: 80 0D 01 02 [21:33:10]Write to MH i2c: E2 08 00 49 14 80 0D 01 02 00 00 00 00 D6 [21:33:10]Write i2c OK [21:33:10]MH_I2C_Read... [21:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:10]Read from MH i2c: E2 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 03 00 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [21:33:10]RAPDU: 90 00 [21:33:10]wFMCommunicate OK [21:33:10]wFMCommunicate request_size=255 [21:33:10]MH_SAM_APDU [21:33: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 56 18 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 60 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 A0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 97 7F BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EE 13 01 00 35 04 06 00 2E [21:33:10]Write to MH i2c: E2 02 01 4A 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 60 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 A0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 97 7F BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EE 13 01 00 35 04 06 00 2E 00 00 27 [21:33:10]Write i2c OK [21:33:10]MH_I2C_Read... [21:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:10]Read from MH i2c: E2 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 03 00 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [21:33:10]RAPDU: 90 00 [21:33:10]wFMCommunicate OK [21:33:10]wFMCommunicate request_size=10 [21:33:10]MH_SAM_APDU [21:33:10]CAPDU: 80 0D 02 02 05 B0 A4 42 B2 DA [21:33:10]Write to MH i2c: E2 0D 00 4B 14 80 0D 02 02 05 00 B0 A4 42 B2 DA 00 00 05 [21:33:10]Write i2c OK [21:33:10]MH_I2C_Read... [21:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:10]Read from MH i2c: E2 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 03 00 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 03 00 4B 14 00 90 00 D3 [21:33:10]RAPDU: 90 00 [21:33:10]wFMCommunicate OK [21:33:10]wFMCommunicate request_size=4 [21:33:10]MH_SAM_APDU [21:33:10]CAPDU: 80 0D 03 02 [21:33:10]Write to MH i2c: E2 08 00 4C 14 80 0D 03 02 00 00 00 00 DB [21:33:10]Write i2c OK [21:33:10]MH_I2C_Read... [21:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:10]Read from MH i2c: E2 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 0B 00 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 0B 00 4C 14 00 11 03 2C 71 A6 74 E6 13 90 00 A0 [21:33:10]RAPDU: 11 03 2C 71 A6 74 E6 13 90 00 [21:33:10]wFMCommunicate OK [21:33:10]SAM_PROTO_SignData done [21:33:10]FM_MakeSignedData done [21:33:10]CreateOFDProtocolMessage [21:33:10]wFMCommunicate request_size=4 [21:33:10]MH_SAM_APDU [21:33:10]CAPDU: 80 11 00 00 [21:33:10]Write to MH i2c: E2 08 00 4D 14 80 11 00 00 00 00 00 00 DB [21:33:10]Write i2c OK [21:33:10]MH_I2C_Read... [21:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:10]Read from MH i2c: E2 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 17 00 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: E2 17 00 4D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 30 [21:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:33:10]wFMCommunicate OK [21:33:10]CreateOFDProtocolMessage done [21:33:10]OFDSenderStorePacket 70638 [21:33:10]StoreOFDPacket docnum=70638 [21:33:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 9C 0C 07 01 BB 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 60 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 A0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 97 7F BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EE 13 01 00 35 04 06 00 2E B0 A4 42 B2 DA 11 03 2C 71 A6 74 E6 13 [21:33:10]CheckFolder [21:33:10]dirname=/storage/ofd_packets [21:33:10]CheckFolder done [21:33:10]ProducePacketName [21:33:10]name=ofd_packets/00070638 [21:33:10]NVStorageSaveData ofd_packets/00070638 [21:33:10]File name is /storage/ofd_packets/00070638 [21:33:10]Write 301 bytes [21:33:10]NVStorageSaveData done [21:33:10]OFDSenderStorePacket done [21:33:10]KKMCreateOFDPacket done [21:33:10]NVStorageSaveData kkm_last_timestamp [21:33:10]File name is /storage/kkm_last_timestamp [21:33:10]Write 4 bytes [21:33:10]NVStorageSaveData done [21:33:10]ExternCall_PrintAddStr [21:33:10]wPrintStart [21:33:10]Write to MH i2c: 01 00 00 4E 14 62 [21:33:10]Write i2c OK [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: 01 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: 01 07 00 [21:33:10]MH_I2C_Read... [21:33:10]Read from MH i2c: 01 07 00 4E 14 00 00 00 00 00 FF 0F 77 [21:33:10]RasterBufferAndPrint [21:33:10]line Счет N : (1)141089 [21:33:10]line ИÐÐ: 02508201610067 [21:33:10]line Контрольно-КаÑÑовый Чек [21:33:10]line ПРОДÐЖР[21:33:10]line ТРК (МРК, ГÐК) : 41 [21:33:10]line Товар: 2710124130 [21:33:10]line Ðи-92-К-5 [21:33:10]line 6.230 * 65.90 [21:33:10]line = 410.56 [21:33:10]line ÐДС 12% ÐСП 1% [21:33:10]line > о реализуемом товаре [21:33:10]line ИТОГО: 410.56 [21:33:10]line ÐСП 1% : 3.63 [21:33:10]line ÐДС 12% : 43.60 [21:33:10]line Ðаличными: 0.00 [21:33:10]line Безнал.: 410.56 [21:33:10]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [21:33:10]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [21:33:10]line СÐО: Общий режим [21:33:10]line Чек 70 12.08.2024 21:33 [21:33:10]line Смена: 465 ФФД: 1.0 [21:33:10]line ЗÐМ: 0300000140 [21:33:10]line РÐМ: 0000000000090913 [21:33:10]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [21:33:10]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [21:33:10]line ФМ: 0000000000874915 [21:33:10]line ФД: 70638 [21:33:10]line ФПД: 51336204956378 [21:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T213311&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70638&fm=51336204956378&tin=02508201610067®Number=0000000000090913&sum=41056 [21:33:10]written 0, free lines is 4095 [21:33:10]OFD Sender: Processing packet 70638 [packets to send 67, broken 66] [21:33:10]ProducePacketName [21:33:10]name=ofd_packets/00070638 [21:33:11]OFD Sender: To server: ‡•öpG, [21:33:11]CommunicateWithHost lk.salyk.kg:30040 [21:33:11]ConnectInit lk.salyk.kg [21:33:11]Connected sock=10 [21:33: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 39 31 35 0F 01 00 00 9C 0C 07 01 BB 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 60 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 A0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 97 7F BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EE 13 01 00 35 04 06 00 2E B0 A4 42 B2 DA 11 03 2C 71 A6 74 E6 13 [21:33:11]Write to MH i2c: 01 00 00 78 14 8C [21:33:11]Write i2c OK [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: 01 [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: 01 07 00 [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: 01 07 00 78 14 00 00 00 00 00 F5 0C 94 [21:33:11]RasterBufferAndPrint [21:33:11]line [21:33:11]line [21:33:11]line [21:33:11]line [21:33:11]line [21:33:11]written 0, free lines is 3323 [21:33:11]MH_Cut [21:33:11]Write to MH i2c: D1 01 00 7F 14 01 65 [21:33:11]Write i2c OK [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: D1 [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: D1 01 00 [21:33:11]MH_I2C_Read... [21:33:11]Read from MH i2c: D1 01 00 7F 14 00 64 [21:33:11]Write to MH i2c: 01 00 00 80 14 94 [21:33:11]Write i2c OK [21:33:11]MH_I2C_Read... [21:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 89 20 47 00 94 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 39 31 35 10 04 04 00 EE 13 01 00 F4 03 04 00 83 26 BA 66 B6 04 01 00 00 94 AA D1 C2 20 55 CD 2D [21:33:11]CommunicateWithHost err = 0 [21:33:11]CheckOFDResponse [21:33:11]1017 (14) - 77093643461234 [21:33:11]1041 (16) - 0000000000874915 [21:33:11]1040 (4) - 70638 [21:33:11]1012 (4) - 12.08.2024 15:13 [21:33:11]1206 (1) - 0 [21:33:11]OFD Sender: Remove packet 70638 [21:33:11]ProducePacketName [21:33:11]name=ofd_packets/00070638 [21:33:11]NVStorageDeleteData [21:33:11]OFD Sender: No OFD packet to send [21:33:11]*** Cut start [21:33:11]*** Purtial cut [21:33:11]*** Stage 1: CUTSNS_PIN = 1 [21:33:12]Read from MH i2c: 01 [21:33:12]MH_I2C_Read... [21:33:12]*** Stop cut motor [21:33:12]*** Cut end [21:33:12]Read from MH i2c: 01 07 00 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: 01 07 00 80 14 00 00 00 00 00 FF 0F A9 [21:33:12]process_action close_receipt done [21:33:12]requested_data is exist [21:33:12]produce_requested_data [21:33:12]requested_item fm.sn is exist - process it [21:33:12]wFMCommunicate request_size=4 [21:33:12]MH_SAM_APDU [21:33:12]CAPDU: 80 11 00 00 [21:33:12]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [21:33:12]Write i2c OK [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 [21:33:12]MH_I2C_Read... [21:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:12]Read from MH i2c: E2 17 00 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 64 [21:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:33:12]wFMCommunicate OK [21:33:12]requested_item fd.num is exist - process it [21:33:12]SAM_PROTO_GetFieldsCounters [21:33:12]wFMCommunicate request_size=4 [21:33:12]MH_SAM_APDU [21:33:12]CAPDU: 80 13 00 00 [21:33:12]Write to MH i2c: E2 08 00 82 14 80 13 00 00 00 00 00 00 12 [21:33:12]Write i2c OK [21:33:12]MH_I2C_Read... [21:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:12]Read from MH i2c: E2 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 62 00 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 62 00 82 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EE 13 01 00 0E 04 04 00 D1 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 D8 [21:33: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EE 13 01 00 0E 04 04 00 D1 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 [21:33:12]wFMCommunicate OK [21:33:12]SAM_PROTO_GetFieldsCounters done [21:33:12]requested_item shift.num is exist - process it [21:33:12]requested_item shift.opened is exist - process it [21:33:12]req_shift_opened [21:33:12]FM_GetShiftState [21:33:12]SAM_PROTO_GetShiftState [21:33:12]wFMCommunicate request_size=4 [21:33:12]MH_SAM_APDU [21:33:12]CAPDU: 80 13 01 00 [21:33:12]Write to MH i2c: E2 08 00 83 14 80 13 01 00 00 00 00 00 14 [21:33:12]Write i2c OK [21:33:12]MH_I2C_Read... [21:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:12]Read from MH i2c: E2 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 0E 00 [21:33:12]MH_I2C_Read... [21:33:12]Read from MH i2c: E2 0E 00 83 14 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 01 [21:33:12]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [21:33:12]wFMCommunicate OK [21:33:12]SAM_PROTO_GetShiftState done [21:33:12]FM_GetShiftState done [21:33:12]req_shift_opened done [21:33:12]requested_item shift.open_date is exist - process it [21:33:12]req_shift_open_date [21:33:12]req_shift_open_date done [21:33:12]produce_requested_data done [21:33:12]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70638,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [21:33:12]process_action_free close_receipt [21:33:12]json_value_free [21:33:12]json_value_free done [21:33:12]process_json_proto returns [21:33:12]Send response to host [21:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70638,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [21:33:12]free response buf [21:33:12]execute_script done [21:33:12]execute_script returns [21:33:12]free content buf [21:33:12]Sock 9.Close socket [21:33:12]Sock 9.Thread stoped [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]int [21:39:17]Write to MH i2c: 01 00 00 84 14 98 [21:39:17]*** FLAG_PRN_KEY set [21:39:17]Write i2c OK [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: 01 [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: 01 07 00 [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: 01 07 00 84 14 00 08 00 00 00 FF 0F B5 [21:39:17]state=0 [21:39:17]Key pressed [21:39:17]Feed [21:39:17]Write to MH i2c: D8 00 00 85 14 70 [21:39:17]Write i2c OK [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: D8 [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: D8 01 00 [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: D8 01 00 85 14 00 71 [21:39:17]int [21:39:17]Write to MH i2c: 01 00 00 86 14 9A [21:39:17]Write i2c OK [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: 01 [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: 01 07 00 [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: 01 07 00 86 14 00 48 00 00 00 3C 00 25 [21:39:17]state=2 [21:39:17]Key pressed [21:39:17]int [21:39:17]Write to MH i2c: 01 00 00 87 14 9B [21:39:17]*** FLAG_PRN_KEY reset [21:39:17]Write i2c OK [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: 01 [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: 01 07 00 [21:39:17]MH_I2C_Read... [21:39:17]Read from MH i2c: 01 07 00 87 14 00 00 00 00 00 F6 0F A7 [21:39:17]state=2 [21:39:17]Stop feed [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:51]accept exits with 7 [21:40:51]New connection [21:40:51]New thread 3066699108 created [21:40:51]Thread 3066842468 joined [21:40:51]Waiting for new connection... [21:40:51] Sock 7.Parse request [21:40:51]Sock 7.Check first char [21:40:51]Sock 7.First char is OK [21:40:51]request: POST /json_proto HTTP/1.0 [21:40:51]Method: POST [21:40:51]URL: /json_proto [21:40:51]Method is POST - this is cgi request [21:40:51]url: /json_proto [21:40:51]query_string will be loaded in cgi processing [21:40:51]execute_cgi json_proto POST (null) [21:40:51]execute_cgi path=json_proto method=POST [21:40:51]POST find Content-Length [21:40:51]Host: 172.17.58.67:8080 [21:40:51]Content-Length: 805 [21:40:51]Content-Type: application/json [21:40:51] [21:40:51]POST finish read [21:40:51]Found Content-Length = 805 [21:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:51]execute_script... [21:40: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)141090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:51]POST & json_proto [21:40:51]process_json_proto [21:40:51]json parsed OK: [21:40:51]protocol is kg_v1.0 [21:40:51]action value=close_receipt [21:40:51]process_action close_receipt [21:40:51]cmd_close_receipt [21:40:51]MH_GetDate [21:40:51]Write to MH i2c: F0 00 00 88 14 8B [21:40:51]Write i2c OK [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: F0 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: F0 09 00 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: F0 09 00 88 14 00 65 81 BA 66 94 51 63 64 46 [21:40:51]GetLastDocTimeStamp 1723498391 [21:40:51]current date 1723498853 [21:40:51]FM_GetShiftState [21:40:51]SAM_PROTO_GetShiftState [21:40:51]wFMCommunicate request_size=4 [21:40:51]MH_SAM_APDU [21:40:51]CAPDU: 80 13 01 00 [21:40:51]Write to MH i2c: E2 08 00 89 14 80 13 01 00 00 00 00 00 1A [21:40:51]Write i2c OK [21:40:51]MH_I2C_Read... [21:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:51]Read from MH i2c: E2 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: E2 0E 00 [21:40:51]MH_I2C_Read... [21:40:51]Read from MH i2c: E2 0E 00 89 14 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 07 [21:40:51]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [21:40:51]wFMCommunicate OK [21:40:51]SAM_PROTO_GetShiftState done [21:40:51]FM_GetShiftState done [21:40:51]opened in 1723423336 [21:40:51]opened+sec_in_day 1723509736 [21:40:51]quantity*price = 50018 [21:40:51]sum+1 = 50019 [21:40:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 71 12.08.2024 21:40 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70639 ФПД: 241822945820213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T214053&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70639&fm=241822945820213&tin=02508201610067®Number=0000000000090913&sum=50018 [21:40:52]StoreToDocumentArchive [21:40:52]shift 465 fd 70639 [21:40:52]save to /storage/0465/doc_00070639 [21:40:52]save last doc name /storage/0465/doc_00070639 to /storage/kkm_last_doc_name [21:40:52]save OK [21:40:52]Clear old archive folders... [21:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:52]tlvbuf is B6E8D150 [21:40:52]SAM_PROTO_ClearQueue [21:40:52]wFMCommunicate request_size=4 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 09 00 00 [21:40:52]Write to MH i2c: E2 08 00 96 14 80 09 00 00 00 00 00 00 1C [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 96 14 00 90 00 1E [21:40:52]RAPDU: 90 00 [21:40:52]wFMCommunicate OK [21:40:52]SAM_PROTO_ClearQueue done [21:40:52]KKMCreateOFDPacket [21:40:52]OFDProtocolAddRootSTLVToBuf [21:40:52]FM_MakeSignedData [21:40:52]FM_MakeSignedData [21:40:52]SAM_PROTO_SignData [21:40:52]wFMCommunicate request_size=4 [21:40:52]MH_SAM_APDU [21:40:52]CAPDU: 80 0D 01 02 [21:40:52]Write to MH i2c: E2 08 00 97 14 80 0D 01 02 00 00 00 00 24 [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:52]Read from MH i2c: E2 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 [21:40:52]MH_I2C_Read... [21:40:52]Read from MH i2c: E2 03 00 97 14 00 90 00 1F [21:40:52]RAPDU: 90 00 [21:40:52]wFMCommunicate OK [21:40:52]wFMCommunicate request_size=255 [21:40:52]MH_SAM_APDU [21:40: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 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 65 81 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EF 13 01 00 35 04 06 00 DB [21:40:52]Write to MH i2c: E2 02 01 98 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 65 81 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EF 13 01 00 35 04 06 00 DB 00 00 C3 [21:40:52]Write i2c OK [21:40:52]MH_I2C_Read... [21:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:53]Read from MH i2c: E2 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 98 14 00 90 00 20 [21:40:53]RAPDU: 90 00 [21:40:53]wFMCommunicate OK [21:40:53]wFMCommunicate request_size=10 [21:40:53]MH_SAM_APDU [21:40:53]CAPDU: 80 0D 02 02 05 EF CA C8 BE 35 [21:40:53]Write to MH i2c: E2 0D 00 99 14 80 0D 02 02 05 00 EF CA C8 BE 35 00 00 A5 [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:53]Read from MH i2c: E2 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 03 00 99 14 00 90 00 21 [21:40:53]RAPDU: 90 00 [21:40:53]wFMCommunicate OK [21:40:53]wFMCommunicate request_size=4 [21:40:53]MH_SAM_APDU [21:40:53]CAPDU: 80 0D 03 02 [21:40:53]Write to MH i2c: E2 08 00 9A 14 80 0D 03 02 00 00 00 00 29 [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:53]Read from MH i2c: E2 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 0B 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 0B 00 9A 14 00 37 9D 63 B4 24 AF 86 C4 90 00 32 [21:40:53]RAPDU: 37 9D 63 B4 24 AF 86 C4 90 00 [21:40:53]wFMCommunicate OK [21:40:53]SAM_PROTO_SignData done [21:40:53]FM_MakeSignedData done [21:40:53]CreateOFDProtocolMessage [21:40:53]wFMCommunicate request_size=4 [21:40:53]MH_SAM_APDU [21:40:53]CAPDU: 80 11 00 00 [21:40:53]Write to MH i2c: E2 08 00 9B 14 80 11 00 00 00 00 00 00 29 [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:53]Read from MH i2c: E2 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 17 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: E2 17 00 9B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 7E [21:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:40:53]wFMCommunicate OK [21:40:53]CreateOFDProtocolMessage done [21:40:53]OFDSenderStorePacket 70639 [21:40:53]StoreOFDPacket docnum=70639 [21:40:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 B5 2F 07 01 80 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 65 81 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EF 13 01 00 35 04 06 00 DB EF CA C8 BE 35 37 9D 63 B4 24 AF 86 C4 [21:40:53]CheckFolder [21:40:53]dirname=/storage/ofd_packets [21:40:53]CheckFolder done [21:40:53]ProducePacketName [21:40:53]name=ofd_packets/00070639 [21:40:53]NVStorageSaveData ofd_packets/00070639 [21:40:53]File name is /storage/ofd_packets/00070639 [21:40:53]Write 301 bytes [21:40:53]NVStorageSaveData done [21:40:53]OFDSenderStorePacket done [21:40:53]KKMCreateOFDPacket done [21:40:53]NVStorageSaveData kkm_last_timestamp [21:40:53]File name is /storage/kkm_last_timestamp [21:40:53]Write 4 bytes [21:40:53]NVStorageSaveData done [21:40:53]ExternCall_PrintAddStr [21:40:53]wPrintStart [21:40:53]Write to MH i2c: 01 00 00 9C 14 B0 [21:40:53]Write i2c OK [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: 01 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: 01 07 00 [21:40:53]MH_I2C_Read... [21:40:53]Read from MH i2c: 01 07 00 9C 14 00 00 00 00 00 FF 0F C5 [21:40:53]RasterBufferAndPrint [21:40:53]line Счет N : (1)141090 [21:40:53]line ИÐÐ: 02508201610067 [21:40:53]line Контрольно-КаÑÑовый Чек [21:40:53]line ПРОДÐЖР[21:40:53]line ТРК (МРК, ГÐК) : 41 [21:40:53]line Товар: 2710124130 [21:40:53]line Ðи-92-К-5 [21:40:53]line 7.590 * 65.90 [21:40:53]line = 500.18 [21:40:53]line ÐДС 12% ÐСП 1% [21:40:53]line > о реализуемом товаре [21:40:53]line ИТОГО: 500.18 [21:40:53]line ÐСП 1% : 4.43 [21:40:53]line ÐДС 12% : 53.12 [21:40:53]line Ðаличными: 0.00 [21:40:53]line Безнал.: 500.18 [21:40:53]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [21:40:53]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [21:40:53]line СÐО: Общий режим [21:40:53]line Чек 71 12.08.2024 21:40 [21:40:53]line Смена: 465 ФФД: 1.0 [21:40:53]line ЗÐМ: 0300000140 [21:40:53]line РÐМ: 0000000000090913 [21:40:53]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [21:40:53]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [21:40:53]line ФМ: 0000000000874915 [21:40:53]line ФД: 70639 [21:40:53]line ФПД: 241822945820213 [21:40:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T214053&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70639&fm=241822945820213&tin=02508201610067®Number=0000000000090913&sum=50018 [21:40:53]OFD Sender: Processing packet 70639 [packets to send 67, broken 66] [21:40:53]ProducePacketName [21:40:53]name=ofd_packets/00070639 [21:40:53]OFD Sender: To server: ‡•öpG, [21:40:53]CommunicateWithHost lk.salyk.kg:30040 [21:40:53]ConnectInit lk.salyk.kg [21:40:53]written 0, free lines is 4095 [21:40:53]Connected sock=10 [21:40: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 39 31 35 0F 01 00 00 B5 2F 07 01 80 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 65 81 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 EF 13 01 00 35 04 06 00 DB EF CA C8 BE 35 37 9D 63 B4 24 AF 86 C4 [21:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 EB BE 47 00 75 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 39 31 35 10 04 04 00 EF 13 01 00 F4 03 04 00 52 28 BA 66 B6 04 01 00 00 97 D6 72 B0 63 82 98 16 [21:40:53]CommunicateWithHost err = 0 [21:40:53]CheckOFDResponse [21:40:53]1017 (14) - 77093643461234 [21:40:53]1041 (16) - 0000000000874915 [21:40:53]1040 (4) - 70639 [21:40:53]1012 (4) - 12.08.2024 15:20 [21:40:53]1206 (1) - 0 [21:40:53]OFD Sender: Remove packet 70639 [21:40:53]ProducePacketName [21:40:53]name=ofd_packets/00070639 [21:40:53]NVStorageDeleteData [21:40:54]Write to MH i2c: 01 00 00 C6 14 DA [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: 01 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: 01 07 00 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: 01 07 00 C6 14 00 00 00 00 00 FA 0C E7 [21:40:54]RasterBufferAndPrint [21:40:54]line [21:40:54]line [21:40:54]line [21:40:54]line [21:40:54]line [21:40:54]written 0, free lines is 3331 [21:40:54]MH_Cut [21:40:54]Write to MH i2c: D1 01 00 CD 14 01 B3 [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: D1 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: D1 01 00 [21:40:54]MH_I2C_Read... [21:40:54]Read from MH i2c: D1 01 00 CD 14 00 B2 [21:40:54]Write to MH i2c: 01 00 00 CE 14 E2 [21:40:54]Write i2c OK [21:40:54]MH_I2C_Read... [21:40:54]OFD Sender: No OFD packet to send [21:40:54]*** Cut start [21:40:54]*** Purtial cut [21:40:54]*** CUTSNS_PIN = 0 [21:40:54]*** Stage 1: CUTSNS_PIN = 1 [21:40:56]Read from MH i2c: 01 [21:40:56]MH_I2C_Read... [21:40:56]*** Stop cut motor [21:40:56]*** Cut end [21:40:56]Read from MH i2c: 01 07 00 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: 01 07 00 CE 14 00 00 00 00 00 FF 0F F7 [21:40:56]process_action close_receipt done [21:40:56]requested_data is exist [21:40:56]produce_requested_data [21:40:56]requested_item fm.sn is exist - process it [21:40:56]wFMCommunicate request_size=4 [21:40:56]MH_SAM_APDU [21:40:56]CAPDU: 80 11 00 00 [21:40:56]Write to MH i2c: E2 08 00 CF 14 80 11 00 00 00 00 00 00 5D [21:40:56]Write i2c OK [21:40:56]MH_I2C_Read... [21:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:56]Read from MH i2c: E2 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 17 00 [21:40:56]MH_I2C_Read... [21:40:56]Read from MH i2c: E2 17 00 CF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B2 [21:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:40:56]wFMCommunicate OK [21:40:56]requested_item fd.num is exist - process it [21:40:56]SAM_PROTO_GetFieldsCounters [21:40:56]wFMCommunicate request_size=4 [21:40:56]MH_SAM_APDU [21:40:56]CAPDU: 80 13 00 00 [21:40:56]Write to MH i2c: E2 08 00 D0 14 80 13 00 00 00 00 00 00 60 [21:40:56]Write i2c OK [21:40:56]MH_I2C_Read... [21:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:57]Read from MH i2c: E2 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: E2 62 00 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: E2 62 00 D0 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EF 13 01 00 0E 04 04 00 D1 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 2A [21:40: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 EF 13 01 00 0E 04 04 00 D1 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 [21:40:57]wFMCommunicate OK [21:40:57]SAM_PROTO_GetFieldsCounters done [21:40:57]requested_item shift.num is exist - process it [21:40:57]requested_item shift.opened is exist - process it [21:40:57]req_shift_opened [21:40:57]FM_GetShiftState [21:40:57]SAM_PROTO_GetShiftState [21:40:57]wFMCommunicate request_size=4 [21:40:57]MH_SAM_APDU [21:40:57]CAPDU: 80 13 01 00 [21:40:57]Write to MH i2c: E2 08 00 D1 14 80 13 01 00 00 00 00 00 62 [21:40:57]Write i2c OK [21:40:57]MH_I2C_Read... [21:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:57]Read from MH i2c: E2 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: E2 0E 00 [21:40:57]MH_I2C_Read... [21:40:57]Read from MH i2c: E2 0E 00 D1 14 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 4F [21:40:57]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [21:40:57]wFMCommunicate OK [21:40:57]SAM_PROTO_GetShiftState done [21:40:57]FM_GetShiftState done [21:40:57]req_shift_opened done [21:40:57]requested_item shift.open_date is exist - process it [21:40:57]req_shift_open_date [21:40:57]req_shift_open_date done [21:40:57]produce_requested_data done [21:40:57]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70639,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [21:40:57]process_action_free close_receipt [21:40:57]json_value_free [21:40:57]json_value_free done [21:40:57]process_json_proto returns [21:40:57]Send response to host [21:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70639,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [21:40:57]free response buf [21:40:57]execute_script done [21:40:57]execute_script returns [21:40:57]free content buf [21:40:57]Sock 7.Close socket [21:40:57]Sock 7.Thread stoped [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:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:10]accept exits with 9 [21:45:10]New connection [21:45:10]New thread 3066842468 created [21:45:10]Thread 3066699108 joined [21:45:10]Waiting for new connection... [21:45:10] Sock 9.Parse request [21:45:10]Sock 9.Check first char [21:45:10]Sock 9.First char is OK [21:45:10]request: POST /json_proto HTTP/1.0 [21:45:10]Method: POST [21:45:10]URL: /json_proto [21:45:10]Method is POST - this is cgi request [21:45:10]url: /json_proto [21:45:10]query_string will be loaded in cgi processing [21:45:10]execute_cgi json_proto POST (null) [21:45:10]execute_cgi path=json_proto method=POST [21:45:10]POST find Content-Length [21:45:10]Host: 172.17.58.67:8080 [21:45:10]Content-Length: 677 [21:45:10]Content-Type: application/json [21:45:10] [21:45:10]POST finish read [21:45:10]Found Content-Length = 677 [21:45:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 1.520, "sum" : 100.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:10]execute_script... [21:45: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)141091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 1.520, "sum" : 100.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:10]POST & json_proto [21:45:10]process_json_proto [21:45:10]json parsed OK: [21:45:10]protocol is kg_v1.0 [21:45:10]action value=close_receipt [21:45:10]process_action close_receipt [21:45:10]cmd_close_receipt [21:45:10]MH_GetDate [21:45:10]Write to MH i2c: F0 00 00 D2 14 D5 [21:45:10]Write i2c OK [21:45:10]MH_I2C_Read... [21:45:10]Read from MH i2c: F0 [21:45:10]MH_I2C_Read... [21:45:10]Read from MH i2c: F0 09 00 [21:45:10]MH_I2C_Read... [21:45:10]Read from MH i2c: F0 09 00 D2 14 00 68 82 BA 66 94 51 63 64 94 [21:45:10]GetLastDocTimeStamp 1723498853 [21:45:10]current date 1723499112 [21:45:10]FM_GetShiftState [21:45:10]SAM_PROTO_GetShiftState [21:45:10]wFMCommunicate request_size=4 [21:45:10]MH_SAM_APDU [21:45:10]CAPDU: 80 13 01 00 [21:45:10]Write to MH i2c: E2 08 00 D3 14 80 13 01 00 00 00 00 00 64 [21:45:10]Write i2c OK [21:45:10]MH_I2C_Read... [21:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:10]Read from MH i2c: E2 [21:45:10]MH_I2C_Read... [21:45:10]Read from MH i2c: E2 0E 00 [21:45:10]MH_I2C_Read... [21:45:10]Read from MH i2c: E2 0E 00 D3 14 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 51 [21:45:10]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [21:45:10]wFMCommunicate OK [21:45:10]SAM_PROTO_GetShiftState done [21:45:10]FM_GetShiftState done [21:45:10]opened in 1723423336 [21:45:10]opened+sec_in_day 1723509736 [21:45:10]quantity*price = 10016 [21:45:10]sum+1 = 10018 [21:45:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.17 ИТОГО: 100.00 ВнеÑено: 100.00 СДÐЧÐ: 0.00 ÐСП 1% : 0.89 ÐДС 12% : 10.64 Ðаличными: 100.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 72 12.08.2024 21:45 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000874915 ФД: 70640 ФПД: 141790929242680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T214512&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70640&fm=141790929242680&tin=02508201610067®Number=0000000000090913&sum=10000 [21:45:11]StoreToDocumentArchive [21:45:11]shift 465 fd 70640 [21:45:11]save to /storage/0465/doc_00070640 [21:45:11]save last doc name /storage/0465/doc_00070640 to /storage/kkm_last_doc_name [21:45:11]save OK [21:45:11]Clear old archive folders... [21:45:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:11]tlvbuf is 010FC640 [21:45:11]SAM_PROTO_ClearQueue [21:45:11]wFMCommunicate request_size=4 [21:45:11]MH_SAM_APDU [21:45:11]CAPDU: 80 09 00 00 [21:45:11]Write to MH i2c: E2 08 00 E0 14 80 09 00 00 00 00 00 00 66 [21:45:11]Write i2c OK [21:45:11]MH_I2C_Read... [21:45:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:11]Read from MH i2c: E2 [21:45:11]MH_I2C_Read... [21:45:11]Read from MH i2c: E2 03 00 [21:45:11]MH_I2C_Read... [21:45:11]Read from MH i2c: E2 03 00 E0 14 00 90 00 68 [21:45:11]RAPDU: 90 00 [21:45:11]wFMCommunicate OK [21:45:11]SAM_PROTO_ClearQueue done [21:45:11]KKMCreateOFDPacket [21:45:11]OFDProtocolAddRootSTLVToBuf [21:45:11]FM_MakeSignedData [21:45:11]FM_MakeSignedData [21:45:11]SAM_PROTO_SignData [21:45:11]wFMCommunicate request_size=4 [21:45:11]MH_SAM_APDU [21:45:11]CAPDU: 80 0D 01 02 [21:45:11]Write to MH i2c: E2 08 00 E1 14 80 0D 01 02 00 00 00 00 6E [21:45:11]Write i2c OK [21:45:11]MH_I2C_Read... [21:45:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:11]Read from MH i2c: E2 [21:45:11]MH_I2C_Read... [21:45:11]Read from MH i2c: E2 03 00 [21:45:11]MH_I2C_Read... [21:45:11]Read from MH i2c: E2 03 00 E1 14 00 90 00 69 [21:45:11]RAPDU: 90 00 [21:45:11]wFMCommunicate OK [21:45:11]wFMCommunicate request_size=255 [21:45:11]MH_SAM_APDU [21:45:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 68 82 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F0 13 01 00 35 04 06 00 80 [21:45:11]Write to MH i2c: E2 02 01 E2 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 68 82 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F0 13 01 00 35 04 06 00 80 00 00 26 [21:45:11]Write i2c OK [21:45:11]MH_I2C_Read... [21:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:12]Read from MH i2c: E2 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: E2 03 00 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: E2 03 00 E2 14 00 90 00 6A [21:45:12]RAPDU: 90 00 [21:45:12]wFMCommunicate OK [21:45:12]wFMCommunicate request_size=10 [21:45:12]MH_SAM_APDU [21:45:12]CAPDU: 80 0D 02 02 05 F5 45 F8 4A 38 [21:45:12]Write to MH i2c: E2 0D 00 E3 14 80 0D 02 02 05 00 F5 45 F8 4A 38 00 00 2F [21:45:12]Write i2c OK [21:45:12]MH_I2C_Read... [21:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:12]Read from MH i2c: E2 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: E2 03 00 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: E2 03 00 E3 14 00 90 00 6B [21:45:12]RAPDU: 90 00 [21:45:12]wFMCommunicate OK [21:45:12]wFMCommunicate request_size=4 [21:45:12]MH_SAM_APDU [21:45:12]CAPDU: 80 0D 03 02 [21:45:12]Write to MH i2c: E2 08 00 E4 14 80 0D 03 02 00 00 00 00 73 [21:45:12]Write i2c OK [21:45:12]MH_I2C_Read... [21:45:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:12]Read from MH i2c: E2 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: E2 0B 00 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: E2 0B 00 E4 14 00 2D 2B 09 9A 73 67 78 83 90 00 44 [21:45:12]RAPDU: 2D 2B 09 9A 73 67 78 83 90 00 [21:45:12]wFMCommunicate OK [21:45:12]SAM_PROTO_SignData done [21:45:12]FM_MakeSignedData done [21:45:12]CreateOFDProtocolMessage [21:45:12]wFMCommunicate request_size=4 [21:45:12]MH_SAM_APDU [21:45:12]CAPDU: 80 11 00 00 [21:45:12]Write to MH i2c: E2 08 00 E5 14 80 11 00 00 00 00 00 00 73 [21:45:12]Write i2c OK [21:45:12]MH_I2C_Read... [21:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:12]Read from MH i2c: E2 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: E2 17 00 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: E2 17 00 E5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C8 [21:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:45:12]wFMCommunicate OK [21:45:12]CreateOFDProtocolMessage done [21:45:12]OFDSenderStorePacket 70640 [21:45:12]StoreOFDPacket docnum=70640 [21:45:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 7A AB 07 01 23 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 68 82 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F0 13 01 00 35 04 06 00 80 F5 45 F8 4A 38 2D 2B 09 9A 73 67 78 83 [21:45:12]CheckFolder [21:45:12]dirname=/storage/ofd_packets [21:45:12]CheckFolder done [21:45:12]ProducePacketName [21:45:12]name=ofd_packets/00070640 [21:45:12]NVStorageSaveData ofd_packets/00070640 [21:45:12]File name is /storage/ofd_packets/00070640 [21:45:12]Write 301 bytes [21:45:12]NVStorageSaveData done [21:45:12]OFDSenderStorePacket done [21:45:12]KKMCreateOFDPacket done [21:45:12]NVStorageSaveData kkm_last_timestamp [21:45:12]File name is /storage/kkm_last_timestamp [21:45:12]Write 4 bytes [21:45:12]NVStorageSaveData done [21:45:12]ExternCall_PrintAddStr [21:45:12]wPrintStart [21:45:12]Write to MH i2c: 01 00 00 E6 14 FA [21:45:12]Write i2c OK [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: 01 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: 01 07 00 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: 01 07 00 E6 14 00 00 00 00 00 FF 0F 0F [21:45:12]RasterBufferAndPrint [21:45:12]line Счет N : (1)141091 [21:45:12]line ИÐÐ: 02508201610067 [21:45:12]line Контрольно-КаÑÑовый Чек [21:45:12]line ПРОДÐЖР[21:45:12]line ТРК (МРК, ГÐК) : 41 [21:45:12]line Товар: 2710124130 [21:45:12]line Ðи-92-К-5 [21:45:12]line 1.520 * 65.90 [21:45:12]line = 100.17 [21:45:12]line ÐДС 12% ÐСП 1% [21:45:12]line > о реализуемом товаре [21:45:12]line ОКРУГЛЕÐИЕ: -0.17 [21:45:12]line ИТОГО: 100.00 [21:45:12]line ВнеÑено: 100.00 [21:45:12]line СДÐЧÐ: 0.00 [21:45:12]line ÐСП 1% : 0.89 [21:45:12]line ÐДС 12% : 10.64 [21:45:12]line Ðаличными: 100.00 [21:45:12]line Безнал.: 0.00 [21:45:12]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [21:45:12]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [21:45:12]line СÐО: Общий режим [21:45:12]line Чек 72 12.08.2024 21:45 [21:45:12]line Смена: 465 ФФД: 1.0 [21:45:12]line ЗÐМ: 0300000140 [21:45:12]line РÐМ: 0000000000090913 [21:45:12]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [21:45:12]line ФМ: 0000000000874915 [21:45:12]line ФД: 70640 [21:45:12]line ФПД: 141790929242680 [21:45:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T214512&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70640&fm=141790929242680&tin=02508201610067®Number=0000000000090913&sum=10000 [21:45:12]written 0, free lines is 4095 [21:45:12]OFD Sender: Processing packet 70640 [packets to send 67, broken 66] [21:45:12]ProducePacketName [21:45:12]name=ofd_packets/00070640 [21:45:12]OFD Sender: To server: ‡•öpG, [21:45:12]CommunicateWithHost lk.salyk.kg:30040 [21:45:12]ConnectInit lk.salyk.kg [21:45:12]Connected sock=11 [21:45: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 39 31 35 0F 01 00 00 7A AB 07 01 23 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 21 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 68 82 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F0 13 01 00 35 04 06 00 80 F5 45 F8 4A 38 2D 2B 09 9A 73 67 78 83 [21:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 78 60 47 00 61 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F0 13 01 00 F4 03 04 00 55 29 BA 66 B6 04 01 00 00 13 5C 85 51 04 E4 95 DC [21:45:12]CommunicateWithHost err = 0 [21:45:12]CheckOFDResponse [21:45:12]1017 (14) - 77093643461234 [21:45:12]1041 (16) - 0000000000874915 [21:45:12]1040 (4) - 70640 [21:45:12]1012 (4) - 12.08.2024 15:25 [21:45:12]1206 (1) - 0 [21:45:12]OFD Sender: Remove packet 70640 [21:45:12]ProducePacketName [21:45:12]name=ofd_packets/00070640 [21:45:12]NVStorageDeleteData [21:45:12]Write to MH i2c: 01 00 00 11 15 26 [21:45:12]Write i2c OK [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: 01 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: 01 07 00 [21:45:12]MH_I2C_Read... [21:45:12]Read from MH i2c: 01 07 00 11 15 00 00 00 00 00 D5 0C 0E [21:45:12]RasterBufferAndPrint [21:45:12]line [21:45:12]line [21:45:12]line [21:45:12]line [21:45:12]line [21:45:12]written 0, free lines is 3291 [21:45:13]MH_Cut [21:45:13]Write to MH i2c: D1 01 00 18 15 01 FF [21:45:13]Write i2c OK [21:45:13]MH_I2C_Read... [21:45:13]Read from MH i2c: D1 [21:45:13]MH_I2C_Read... [21:45:13]Read from MH i2c: D1 01 00 [21:45:13]MH_I2C_Read... [21:45:13]Read from MH i2c: D1 01 00 18 15 00 FE [21:45:13]Write to MH i2c: 01 00 00 19 15 2E [21:45:13]Write i2c OK [21:45:13]MH_I2C_Read... [21:45:13]OFD Sender: No OFD packet to send [21:45:13]*** Cut start [21:45:13]*** Purtial cut [21:45:13]*** Stage 1: CUTSNS_PIN = 1 [21:45:13]Read from MH i2c: 01 [21:45:13]MH_I2C_Read... [21:45:13]*** Stop cut motor [21:45:13]*** Cut end [21:45:13]Read from MH i2c: 01 07 00 [21:45:13]MH_I2C_Read... [21:45:13]Read from MH i2c: 01 07 00 19 15 00 00 00 00 00 FF 0F 43 [21:45:13]process_action close_receipt done [21:45:13]requested_data is exist [21:45:13]produce_requested_data [21:45:13]requested_item fm.sn is exist - process it [21:45:13]wFMCommunicate request_size=4 [21:45:13]MH_SAM_APDU [21:45:13]CAPDU: 80 11 00 00 [21:45:13]Write to MH i2c: E2 08 00 1A 15 80 11 00 00 00 00 00 00 A9 [21:45:13]Write i2c OK [21:45:13]MH_I2C_Read... [21:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:14]Read from MH i2c: E2 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 17 00 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 17 00 1A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FE [21:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [21:45:14]wFMCommunicate OK [21:45:14]requested_item fd.num is exist - process it [21:45:14]SAM_PROTO_GetFieldsCounters [21:45:14]wFMCommunicate request_size=4 [21:45:14]MH_SAM_APDU [21:45:14]CAPDU: 80 13 00 00 [21:45:14]Write to MH i2c: E2 08 00 1B 15 80 13 00 00 00 00 00 00 AC [21:45:14]Write i2c OK [21:45:14]MH_I2C_Read... [21:45:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:14]Read from MH i2c: E2 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 62 00 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 62 00 1B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F0 13 01 00 0E 04 04 00 D1 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 7A [21:45: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F0 13 01 00 0E 04 04 00 D1 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 [21:45:14]wFMCommunicate OK [21:45:14]SAM_PROTO_GetFieldsCounters done [21:45:14]requested_item shift.num is exist - process it [21:45:14]requested_item shift.opened is exist - process it [21:45:14]req_shift_opened [21:45:14]FM_GetShiftState [21:45:14]SAM_PROTO_GetShiftState [21:45:14]wFMCommunicate request_size=4 [21:45:14]MH_SAM_APDU [21:45:14]CAPDU: 80 13 01 00 [21:45:14]Write to MH i2c: E2 08 00 1C 15 80 13 01 00 00 00 00 00 AE [21:45:14]Write i2c OK [21:45:14]MH_I2C_Read... [21:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:14]Read from MH i2c: E2 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 0E 00 [21:45:14]MH_I2C_Read... [21:45:14]Read from MH i2c: E2 0E 00 1C 15 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 9B [21:45:14]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [21:45:14]wFMCommunicate OK [21:45:14]SAM_PROTO_GetShiftState done [21:45:14]FM_GetShiftState done [21:45:14]req_shift_opened done [21:45:14]requested_item shift.open_date is exist - process it [21:45:14]req_shift_open_date [21:45:14]req_shift_open_date done [21:45:14]produce_requested_data done [21:45:14]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70640,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [21:45:14]process_action_free close_receipt [21:45:14]json_value_free [21:45:14]json_value_free done [21:45:14]process_json_proto returns [21:45:14]Send response to host [21:45:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70640,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [21:45:14]free response buf [21:45:14]execute_script done [21:45:14]execute_script returns [21:45:14]free content buf [21:45:14]Sock 9.Close socket [21:45:14]Sock 9.Thread stoped [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]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:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54: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:02]int [22:55:02]Write to MH i2c: 01 00 00 1D 15 32 [22:55:02]*** FLAG_PRN_KEY set [22:55:02]Write i2c OK [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 07 00 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 07 00 1D 15 00 08 00 00 00 FF 0F 4F [22:55:02]state=0 [22:55:02]Key pressed [22:55:02]Feed [22:55:02]Write to MH i2c: D8 00 00 1E 15 0A [22:55:02]Write i2c OK [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: D8 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: D8 01 00 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: D8 01 00 1E 15 00 0B [22:55:02]int [22:55:02]Write to MH i2c: 01 00 00 1F 15 34 [22:55:02]Write i2c OK [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 07 00 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 07 00 1F 15 00 48 00 00 00 3C 00 BF [22:55:02]state=2 [22:55:02]Key pressed [22:55:02]int [22:55:02]Write to MH i2c: 01 00 00 20 15 35 [22:55:02]*** FLAG_PRN_KEY reset [22:55:02]Write i2c OK [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 07 00 [22:55:02]MH_I2C_Read... [22:55:02]Read from MH i2c: 01 07 00 20 15 00 00 00 00 00 FB 0F 46 [22:55:02]state=2 [22:55:02]Stop feed [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:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:48]OFD Sender: No OFD packet to send [23:10:53]OFD Sender: No OFD packet to send [23:10:58]OFD Sender: No OFD packet to send [23:11:03]OFD Sender: No OFD packet to send [23:11:08]OFD Sender: No OFD packet to send [23:11:13]OFD Sender: No OFD packet to send [23:11:18]OFD Sender: No OFD packet to send [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:53]OFD Sender: No OFD packet to send [23:11:58]OFD Sender: No OFD packet to send [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:23]OFD Sender: No OFD packet to send [23:14:28]OFD Sender: No OFD packet to send [23:14:33]OFD Sender: No OFD packet to send [23:14:38]OFD Sender: No OFD packet to send [23:14:43]OFD Sender: No OFD packet to send [23:14:48]OFD Sender: No OFD packet to send [23:14:53]OFD Sender: No OFD packet to send [23:14:58]OFD Sender: No OFD packet to send [23:15:03]OFD Sender: No OFD packet to send [23:15:08]OFD Sender: No OFD packet to send [23:15:13]OFD Sender: No OFD packet to send [23:15:18]OFD Sender: No OFD packet to send [23:15:23]OFD Sender: No OFD packet to send [23:15:28]OFD Sender: No OFD packet to send [23:15:33]OFD Sender: No OFD packet to send [23:15:38]OFD Sender: No OFD packet to send [23:15:43]OFD Sender: No OFD packet to send [23:15:48]OFD Sender: No OFD packet to send [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:29]accept exits with 7 [23:19:29]New connection [23:19:29]New thread 3066699108 created [23:19:29]Thread 3066842468 joined [23:19:29]Waiting for new connection... [23:19:29] Sock 7.Parse request [23:19:29]Sock 7.Check first char [23:19:29]Sock 7.First char is OK [23:19:29]request: POST /json_proto HTTP/1.0 [23:19:29]Method: POST [23:19:29]URL: /json_proto [23:19:29]Method is POST - this is cgi request [23:19:29]url: /json_proto [23:19:29]query_string will be loaded in cgi processing [23:19:29]execute_cgi json_proto POST (null) [23:19:29]execute_cgi path=json_proto method=POST [23:19:29]POST find Content-Length [23:19:29]Host: 172.17.58.67:8080 [23:19:29]Content-Length: 805 [23:19:29]Content-Type: application/json [23:19:29] [23:19:29]POST finish read [23:19:29]Found Content-Length = 805 [23:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:29]execute_script... [23:19: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)141092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 7.590, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:29]POST & json_proto [23:19:29]process_json_proto [23:19:29]json parsed OK: [23:19:29]protocol is kg_v1.0 [23:19:29]action value=close_receipt [23:19:29]process_action close_receipt [23:19:29]cmd_close_receipt [23:19:29]MH_GetDate [23:19:29]Write to MH i2c: F0 00 00 21 15 25 [23:19:29]Write i2c OK [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: F0 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: F0 09 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: F0 09 00 21 15 00 83 98 BA 66 94 51 63 64 15 [23:19:29]GetLastDocTimeStamp 1723499112 [23:19:29]current date 1723504771 [23:19:29]FM_GetShiftState [23:19:29]SAM_PROTO_GetShiftState [23:19:29]wFMCommunicate request_size=4 [23:19:29]MH_SAM_APDU [23:19:29]CAPDU: 80 13 01 00 [23:19:29]Write to MH i2c: E2 08 00 22 15 80 13 01 00 00 00 00 00 B4 [23:19:29]Write i2c OK [23:19:29]MH_I2C_Read... [23:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:29]Read from MH i2c: E2 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 0E 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 0E 00 22 15 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 A1 [23:19:29]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [23:19:29]wFMCommunicate OK [23:19:29]SAM_PROTO_GetShiftState done [23:19:29]FM_GetShiftState done [23:19:29]opened in 1723423336 [23:19:29]opened+sec_in_day 1723509736 [23:19:29]quantity*price = 50018 [23:19:29]sum+1 = 50019 [23:19:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 ÐСП 1% : 4.43 ÐДС 12% : 53.12 Ðаличными: 0.00 Безнал.: 500.18 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 73 12.08.2024 23:19 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70641 ФПД: 39415449927086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T231931&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70641&fm=39415449927086&tin=02508201610067®Number=0000000000090913&sum=50018 [23:19:30]StoreToDocumentArchive [23:19:30]shift 465 fd 70641 [23:19:30]save to /storage/0465/doc_00070641 [23:19:30]save last doc name /storage/0465/doc_00070641 to /storage/kkm_last_doc_name [23:19:30]save OK [23:19:30]Clear old archive folders... [23:19:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:30]tlvbuf is 01106530 [23:19:30]SAM_PROTO_ClearQueue [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 09 00 00 [23:19:30]Write to MH i2c: E2 08 00 2F 15 80 09 00 00 00 00 00 00 B6 [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 03 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 03 00 2F 15 00 90 00 B8 [23:19:30]RAPDU: 90 00 [23:19:30]wFMCommunicate OK [23:19:30]SAM_PROTO_ClearQueue done [23:19:30]KKMCreateOFDPacket [23:19:30]OFDProtocolAddRootSTLVToBuf [23:19:30]FM_MakeSignedData [23:19:30]FM_MakeSignedData [23:19:30]SAM_PROTO_SignData [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 0D 01 02 [23:19:30]Write to MH i2c: E2 08 00 30 15 80 0D 01 02 00 00 00 00 BE [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 03 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 03 00 30 15 00 90 00 B9 [23:19:30]RAPDU: 90 00 [23:19:30]wFMCommunicate OK [23:19:30]wFMCommunicate request_size=255 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 83 98 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F1 13 01 00 35 04 06 00 23 [23:19:30]Write to MH i2c: E2 02 01 31 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 83 98 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F1 13 01 00 35 04 06 00 23 00 00 DE [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 03 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 03 00 31 15 00 90 00 BA [23:19:30]RAPDU: 90 00 [23:19:30]wFMCommunicate OK [23:19:30]wFMCommunicate request_size=10 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 0D 02 02 05 D9 1F E4 3D AE [23:19:30]Write to MH i2c: E2 0D 00 32 15 80 0D 02 02 05 00 D9 1F E4 3D AE 00 00 92 [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 03 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 03 00 32 15 00 90 00 BB [23:19:30]RAPDU: 90 00 [23:19:30]wFMCommunicate OK [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 0D 03 02 [23:19:30]Write to MH i2c: E2 08 00 33 15 80 0D 03 02 00 00 00 00 C3 [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 0B 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 0B 00 33 15 00 99 58 97 DF 28 F6 C0 B5 90 00 BE [23:19:30]RAPDU: 99 58 97 DF 28 F6 C0 B5 90 00 [23:19:30]wFMCommunicate OK [23:19:30]SAM_PROTO_SignData done [23:19:30]FM_MakeSignedData done [23:19:30]CreateOFDProtocolMessage [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 11 00 00 [23:19:30]Write to MH i2c: E2 08 00 34 15 80 11 00 00 00 00 00 00 C3 [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 17 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 17 00 34 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 18 [23:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:19:30]wFMCommunicate OK [23:19:30]CreateOFDProtocolMessage done [23:19:30]OFDSenderStorePacket 70641 [23:19:30]StoreOFDPacket docnum=70641 [23:19:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 FB 79 07 01 64 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 83 98 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F1 13 01 00 35 04 06 00 23 D9 1F E4 3D AE 99 58 97 DF 28 F6 C0 B5 [23:19:30]CheckFolder [23:19:30]dirname=/storage/ofd_packets [23:19:30]CheckFolder done [23:19:30]ProducePacketName [23:19:30]name=ofd_packets/00070641 [23:19:30]NVStorageSaveData ofd_packets/00070641 [23:19:30]File name is /storage/ofd_packets/00070641 [23:19:30]Write 301 bytes [23:19:30]NVStorageSaveData done [23:19:30]OFDSenderStorePacket done [23:19:30]KKMCreateOFDPacket done [23:19:30]NVStorageSaveData kkm_last_timestamp [23:19:30]File name is /storage/kkm_last_timestamp [23:19:30]Write 4 bytes [23:19:30]NVStorageSaveData done [23:19:30]ExternCall_PrintAddStr [23:19:30]wPrintStart [23:19:30]Write to MH i2c: 01 00 00 35 15 4A [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: 01 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: 01 07 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 FF 0F 5F [23:19:30]RasterBufferAndPrint [23:19:30]line Счет N : (1)141092 [23:19:30]line ИÐÐ: 02508201610067 [23:19:30]line Контрольно-КаÑÑовый Чек [23:19:30]line ПРОДÐЖР[23:19:30]line ТРК (МРК, ГÐК) : 31 [23:19:30]line Товар: 2710124130 [23:19:30]line Ðи-92-К-5 [23:19:30]line 7.590 * 65.90 [23:19:30]line = 500.18 [23:19:30]line ÐДС 12% ÐСП 1% [23:19:30]line > о реализуемом товаре [23:19:30]line ИТОГО: 500.18 [23:19:30]line ÐСП 1% : 4.43 [23:19:30]line ÐДС 12% : 53.12 [23:19:30]line Ðаличными: 0.00 [23:19:30]line Безнал.: 500.18 [23:19:30]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [23:19:30]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [23:19:30]line СÐО: Общий режим [23:19:30]line Чек 73 12.08.2024 23:19 [23:19:30]line Смена: 465 ФФД: 1.0 [23:19:30]line ЗÐМ: 0300000140 [23:19:30]line РÐМ: 0000000000090913 [23:19:30]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [23:19:30]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [23:19:30]line ФМ: 0000000000874915 [23:19:30]line ФД: 70641 [23:19:30]line ФПД: 39415449927086 [23:19:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240812T231931&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70641&fm=39415449927086&tin=02508201610067®Number=0000000000090913&sum=50018 [23:19:30]written 0, free lines is 4095 [23:19:30]OFD Sender: Processing packet 70641 [packets to send 67, broken 66] [23:19:30]ProducePacketName [23:19:30]name=ofd_packets/00070641 [23:19:31]OFD Sender: To server: ‡•öpG, [23:19:31]CommunicateWithHost lk.salyk.kg:30040 [23:19:31]ConnectInit lk.salyk.kg [23:19:31]Connected sock=10 [23:19: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 39 31 35 0F 01 00 00 FB 79 07 01 64 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 1D 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 83 98 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F1 13 01 00 35 04 06 00 23 D9 1F E4 3D AE 99 58 97 DF 28 F6 C0 B5 [23:19:31]Write to MH i2c: 01 00 00 5F 15 74 [23:19:31]Write i2c OK [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: 01 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: 01 07 00 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 FA 0C 81 [23:19:31]RasterBufferAndPrint [23:19:31]line [23:19:31]line [23:19:31]line [23:19:31]line [23:19:31]line [23:19:31]written 0, free lines is 3328 [23:19:31]MH_Cut [23:19:31]Write to MH i2c: D1 01 00 66 15 01 4D [23:19:31]Write i2c OK [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: D1 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: D1 01 00 [23:19:31]MH_I2C_Read... [23:19:31]Read from MH i2c: D1 01 00 66 15 00 4C [23:19:31]Write to MH i2c: 01 00 00 67 15 7C [23:19:31]Write i2c OK [23:19:31]MH_I2C_Read... [23:19:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 56 5C 47 00 E9 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 39 31 35 10 04 04 00 F1 13 01 00 F4 03 04 00 70 3F BA 66 B6 04 01 00 00 D4 5F C9 2A 56 DC E7 18 [23:19:31]CommunicateWithHost err = 0 [23:19:31]CheckOFDResponse [23:19:31]1017 (14) - 77093643461234 [23:19:31]1041 (16) - 0000000000874915 [23:19:31]1040 (4) - 70641 [23:19:31]1012 (4) - 12.08.2024 16:59 [23:19:31]1206 (1) - 0 [23:19:31]OFD Sender: Remove packet 70641 [23:19:31]ProducePacketName [23:19:31]name=ofd_packets/00070641 [23:19:31]NVStorageDeleteData [23:19:32]OFD Sender: No OFD packet to send [23:19:32]*** Cut start [23:19:32]*** Purtial cut [23:19:32]*** CUTSNS_PIN = 0 [23:19:32]*** Stage 1: CUTSNS_PIN = 1 [23:19:34]Read from MH i2c: 01 [23:19:34]MH_I2C_Read... [23:19:34]*** Stop cut motor [23:19:34]*** Cut end [23:19:34]Read from MH i2c: 01 07 00 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: 01 07 00 67 15 00 00 00 00 00 FF 0F 91 [23:19:34]process_action close_receipt done [23:19:34]requested_data is exist [23:19:34]produce_requested_data [23:19:34]requested_item fm.sn is exist - process it [23:19:34]wFMCommunicate request_size=4 [23:19:34]MH_SAM_APDU [23:19:34]CAPDU: 80 11 00 00 [23:19:34]Write to MH i2c: E2 08 00 68 15 80 11 00 00 00 00 00 00 F7 [23:19:34]Write i2c OK [23:19:34]MH_I2C_Read... [23:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:34]Read from MH i2c: E2 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: E2 17 00 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: E2 17 00 68 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 4C [23:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [23:19:34]wFMCommunicate OK [23:19:34]requested_item fd.num is exist - process it [23:19:34]SAM_PROTO_GetFieldsCounters [23:19:34]wFMCommunicate request_size=4 [23:19:34]MH_SAM_APDU [23:19:34]CAPDU: 80 13 00 00 [23:19:34]Write to MH i2c: E2 08 00 69 15 80 13 00 00 00 00 00 00 FA [23:19:34]Write i2c OK [23:19:34]MH_I2C_Read... [23:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:34]Read from MH i2c: E2 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: E2 62 00 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: E2 62 00 69 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F1 13 01 00 0E 04 04 00 D1 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 CC [23:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F1 13 01 00 0E 04 04 00 D1 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 [23:19:34]wFMCommunicate OK [23:19:34]SAM_PROTO_GetFieldsCounters done [23:19:34]requested_item shift.num is exist - process it [23:19:34]requested_item shift.opened is exist - process it [23:19:34]req_shift_opened [23:19:34]FM_GetShiftState [23:19:34]SAM_PROTO_GetShiftState [23:19:34]wFMCommunicate request_size=4 [23:19:34]MH_SAM_APDU [23:19:34]CAPDU: 80 13 01 00 [23:19:34]Write to MH i2c: E2 08 00 6A 15 80 13 01 00 00 00 00 00 FC [23:19:34]Write i2c OK [23:19:34]MH_I2C_Read... [23:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:34]Read from MH i2c: E2 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: E2 0E 00 [23:19:34]MH_I2C_Read... [23:19:34]Read from MH i2c: E2 0E 00 6A 15 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 E9 [23:19:34]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [23:19:34]wFMCommunicate OK [23:19:34]SAM_PROTO_GetShiftState done [23:19:34]FM_GetShiftState done [23:19:34]req_shift_opened done [23:19:34]requested_item shift.open_date is exist - process it [23:19:34]req_shift_open_date [23:19:34]req_shift_open_date done [23:19:34]produce_requested_data done [23:19:34]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70641,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [23:19:34]process_action_free close_receipt [23:19:34]json_value_free [23:19:34]json_value_free done [23:19:34]process_json_proto returns [23:19:34]Send response to host [23:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70641,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [23:19:34]free response buf [23:19:34]execute_script done [23:19:34]execute_script returns [23:19:34]free content buf [23:19:34]Sock 7.Close socket [23:19:34]Sock 7.Thread stoped [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]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:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]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:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:10]int [23:53:10]Write to MH i2c: 01 00 00 6B 15 80 [23:53:10]*** FLAG_PRN_KEY set [23:53:10]Write i2c OK [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 07 00 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 07 00 6B 15 00 08 00 00 00 FF 0F 9D [23:53:10]state=0 [23:53:10]Key pressed [23:53:10]Feed [23:53:10]Write to MH i2c: D8 00 00 6C 15 58 [23:53:10]Write i2c OK [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: D8 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: D8 01 00 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: D8 01 00 6C 15 00 59 [23:53:10]int [23:53:10]Write to MH i2c: 01 00 00 6D 15 82 [23:53:10]Write i2c OK [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 07 00 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 07 00 6D 15 00 48 00 00 00 3C 00 0D [23:53:10]state=2 [23:53:10]Key pressed [23:53:10]int [23:53:10]Write to MH i2c: 01 00 00 6E 15 83 [23:53:10]*** FLAG_PRN_KEY reset [23:53:10]Write i2c OK [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 07 00 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: 01 07 00 6E 15 00 00 00 00 00 F6 0F 8F [23:53:10]state=2 [23:53:10]Stop feed [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:55]accept exits with 9 [00:06:55]New connection [00:06:55]New thread 3066842468 created [00:06:55]Thread 3066699108 joined [00:06:55]Waiting for new connection... [00:06:55] Sock 9.Parse request [00:06:55]Sock 9.Check first char [00:06:55]Sock 9.First char is OK [00:06:55]request: POST /json_proto HTTP/1.0 [00:06:55]Method: POST [00:06:55]URL: /json_proto [00:06:55]Method is POST - this is cgi request [00:06:55]url: /json_proto [00:06:55]query_string will be loaded in cgi processing [00:06:55]execute_cgi json_proto POST (null) [00:06:55]execute_cgi path=json_proto method=POST [00:06:55]POST find Content-Length [00:06:55]Host: 172.17.58.67:8080 [00:06:55]Content-Length: 805 [00:06:55]Content-Type: application/json [00:06:55] [00:06:55]POST finish read [00:06:55]Found Content-Length = 805 [00:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:55]execute_script... [00:06: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)141093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:55]POST & json_proto [00:06:55]process_json_proto [00:06:55]json parsed OK: [00:06:55]protocol is kg_v1.0 [00:06:55]action value=close_receipt [00:06:55]process_action close_receipt [00:06:55]cmd_close_receipt [00:06:55]MH_GetDate [00:06:55]Write to MH i2c: F0 00 00 6F 15 73 [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: F0 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: F0 09 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: F0 09 00 6F 15 00 A2 A3 BA 66 94 51 63 64 8D [00:06:55]GetLastDocTimeStamp 1723504771 [00:06:55]current date 1723507618 [00:06:55]FM_GetShiftState [00:06:55]SAM_PROTO_GetShiftState [00:06:55]wFMCommunicate request_size=4 [00:06:55]MH_SAM_APDU [00:06:55]CAPDU: 80 13 01 00 [00:06:55]Write to MH i2c: E2 08 00 70 15 80 13 01 00 00 00 00 00 02 [00:06:55]Write i2c OK [00:06:55]MH_I2C_Read... [00:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:55]Read from MH i2c: E2 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 0E 00 [00:06:55]MH_I2C_Read... [00:06:55]Read from MH i2c: E2 0E 00 70 15 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 EF [00:06:55]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:06:55]wFMCommunicate OK [00:06:55]SAM_PROTO_GetShiftState done [00:06:55]FM_GetShiftState done [00:06:55]opened in 1723423336 [00:06:55]opened+sec_in_day 1723509736 [00:06:55]quantity*price = 20033 [00:06:55]sum+1 = 20035 [00:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.34 ÐСП 1% : 1.77 ÐДС 12% : 21.27 Ðаличными: 0.00 Безнал.: 200.34 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 74 13.08.2024 00:06 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70642 ФПД: 34173307522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T000658&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70642&fm=34173307522&tin=02508201610067®Number=0000000000090913&sum=20034 [00:06:56]StoreToDocumentArchive [00:06:56]shift 465 fd 70642 [00:06:56]save to /storage/0465/doc_00070642 [00:06:56]save last doc name /storage/0465/doc_00070642 to /storage/kkm_last_doc_name [00:06:56]save OK [00:06:56]Clear old archive folders... [00:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:06:56]tlvbuf is 010E2D80 [00:06:56]SAM_PROTO_ClearQueue [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 09 00 00 [00:06:56]Write to MH i2c: E2 08 00 7D 15 80 09 00 00 00 00 00 00 04 [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 03 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 03 00 7D 15 00 90 00 06 [00:06:56]RAPDU: 90 00 [00:06:56]wFMCommunicate OK [00:06:56]SAM_PROTO_ClearQueue done [00:06:56]KKMCreateOFDPacket [00:06:56]OFDProtocolAddRootSTLVToBuf [00:06:56]FM_MakeSignedData [00:06:56]FM_MakeSignedData [00:06:56]SAM_PROTO_SignData [00:06:56]wFMCommunicate request_size=4 [00:06:56]MH_SAM_APDU [00:06:56]CAPDU: 80 0D 01 02 [00:06:56]Write to MH i2c: E2 08 00 7E 15 80 0D 01 02 00 00 00 00 0C [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:56]Read from MH i2c: E2 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 03 00 [00:06:56]MH_I2C_Read... [00:06:56]Read from MH i2c: E2 03 00 7E 15 00 90 00 07 [00:06:56]RAPDU: 90 00 [00:06:56]wFMCommunicate OK [00:06:56]wFMCommunicate request_size=255 [00:06:56]MH_SAM_APDU [00:06: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 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A2 A3 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F2 13 01 00 35 04 06 00 00 [00:06:56]Write to MH i2c: E2 02 01 7F 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A2 A3 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F2 13 01 00 35 04 06 00 00 00 00 16 [00:06:56]Write i2c OK [00:06:56]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 03 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 03 00 7F 15 00 90 00 08 [00:06:57]RAPDU: 90 00 [00:06:57]wFMCommunicate OK [00:06:57]wFMCommunicate request_size=10 [00:06:57]MH_SAM_APDU [00:06:57]CAPDU: 80 0D 02 02 05 07 F4 E3 4A 82 [00:06:57]Write to MH i2c: E2 0D 00 80 15 80 0D 02 02 05 00 07 F4 E3 4A 82 00 00 C3 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 03 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 03 00 80 15 00 90 00 09 [00:06:57]RAPDU: 90 00 [00:06:57]wFMCommunicate OK [00:06:57]wFMCommunicate request_size=4 [00:06:57]MH_SAM_APDU [00:06:57]CAPDU: 80 0D 03 02 [00:06:57]Write to MH i2c: E2 08 00 81 15 80 0D 03 02 00 00 00 00 11 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 0B 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 0B 00 81 15 00 EB 13 02 7E 7D 4E 33 F3 90 00 81 [00:06:57]RAPDU: EB 13 02 7E 7D 4E 33 F3 90 00 [00:06:57]wFMCommunicate OK [00:06:57]SAM_PROTO_SignData done [00:06:57]FM_MakeSignedData done [00:06:57]CreateOFDProtocolMessage [00:06:57]wFMCommunicate request_size=4 [00:06:57]MH_SAM_APDU [00:06:57]CAPDU: 80 11 00 00 [00:06:57]Write to MH i2c: E2 08 00 82 15 80 11 00 00 00 00 00 00 11 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:57]Read from MH i2c: E2 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 17 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: E2 17 00 82 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 66 [00:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:06:57]wFMCommunicate OK [00:06:57]CreateOFDProtocolMessage done [00:06:57]OFDSenderStorePacket 70642 [00:06:57]StoreOFDPacket docnum=70642 [00:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 43 13 07 01 CA 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A2 A3 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F2 13 01 00 35 04 06 00 00 07 F4 E3 4A 82 EB 13 02 7E 7D 4E 33 F3 [00:06:57]CheckFolder [00:06:57]dirname=/storage/ofd_packets [00:06:57]CheckFolder done [00:06:57]ProducePacketName [00:06:57]name=ofd_packets/00070642 [00:06:57]NVStorageSaveData ofd_packets/00070642 [00:06:57]File name is /storage/ofd_packets/00070642 [00:06:57]Write 301 bytes [00:06:57]NVStorageSaveData done [00:06:57]OFDSenderStorePacket done [00:06:57]KKMCreateOFDPacket done [00:06:57]NVStorageSaveData kkm_last_timestamp [00:06:57]File name is /storage/kkm_last_timestamp [00:06:57]Write 4 bytes [00:06:57]NVStorageSaveData done [00:06:57]ExternCall_PrintAddStr [00:06:57]wPrintStart [00:06:57]Write to MH i2c: 01 00 00 83 15 98 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: 01 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: 01 07 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: 01 07 00 83 15 00 00 00 00 00 FF 0F AD [00:06:57]RasterBufferAndPrint [00:06:57]line Счет N : (1)141093 [00:06:57]line ИÐÐ: 02508201610067 [00:06:57]line Контрольно-КаÑÑовый Чек [00:06:57]line ПРОДÐЖР[00:06:57]line ТРК (МРК, ГÐК) : 31 [00:06:57]line Товар: 2710124130 [00:06:57]line Ðи-92-К-5 [00:06:57]line 3.040 * 65.90 [00:06:57]line = 200.34 [00:06:57]line ÐДС 12% ÐСП 1% [00:06:57]line > о реализуемом товаре [00:06:57]line ИТОГО: 200.34 [00:06:57]line ÐСП 1% : 1.77 [00:06:57]line ÐДС 12% : 21.27 [00:06:57]line Ðаличными: 0.00 [00:06:57]line Безнал.: 200.34 [00:06:57]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [00:06:57]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [00:06:57]line СÐО: Общий режим [00:06:57]line Чек 74 13.08.2024 00:06 [00:06:57]line Смена: 465 ФФД: 1.0 [00:06:57]line ЗÐМ: 0300000140 [00:06:57]line РÐМ: 0000000000090913 [00:06:57]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [00:06:57]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [00:06:57]line ФМ: 0000000000874915 [00:06:57]line ФД: 70642 [00:06:57]line ФПД: 34173307522 [00:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T000658&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70642&fm=34173307522&tin=02508201610067®Number=0000000000090913&sum=20034 [00:06:57]written 0, free lines is 4095 [00:06:57]OFD Sender: Processing packet 70642 [packets to send 67, broken 66] [00:06:57]ProducePacketName [00:06:57]name=ofd_packets/00070642 [00:06:57]OFD Sender: To server: ‡•öpG, [00:06:57]CommunicateWithHost lk.salyk.kg:30040 [00:06:57]ConnectInit lk.salyk.kg [00:06:57]Connected sock=10 [00:06: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 39 31 35 0F 01 00 00 43 13 07 01 CA 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A2 A3 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F2 13 01 00 35 04 06 00 00 07 F4 E3 4A 82 EB 13 02 7E 7D 4E 33 F3 [00:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 22 48 47 00 64 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F2 13 01 00 F4 03 04 00 8E 4A BA 66 B6 04 01 00 00 4B 1D AC E1 2C E8 94 6A [00:06:57]CommunicateWithHost err = 0 [00:06:57]CheckOFDResponse [00:06:57]1017 (14) - 77093643461234 [00:06:57]1041 (16) - 0000000000874915 [00:06:57]1040 (4) - 70642 [00:06:57]1012 (4) - 12.08.2024 17:46 [00:06:57]1206 (1) - 0 [00:06:57]OFD Sender: Remove packet 70642 [00:06:57]ProducePacketName [00:06:57]name=ofd_packets/00070642 [00:06:57]NVStorageDeleteData [00:06:57]Write to MH i2c: 01 00 00 AD 15 C2 [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: 01 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: 01 07 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: 01 07 00 AD 15 00 00 00 00 00 FE 0C D3 [00:06:57]RasterBufferAndPrint [00:06:57]line [00:06:57]line [00:06:57]line [00:06:57]line [00:06:57]line [00:06:57]written 0, free lines is 3332 [00:06:57]MH_Cut [00:06:57]Write to MH i2c: D1 01 00 B4 15 01 9B [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: D1 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: D1 01 00 [00:06:57]MH_I2C_Read... [00:06:57]Read from MH i2c: D1 01 00 B4 15 00 9A [00:06:57]Write to MH i2c: 01 00 00 B5 15 CA [00:06:57]Write i2c OK [00:06:57]MH_I2C_Read... [00:06:58]OFD Sender: No OFD packet to send [00:06:58]*** Cut start [00:06:58]*** Purtial cut [00:06:58]*** Stage 1: CUTSNS_PIN = 1 [00:06:58]Read from MH i2c: 01 [00:06:58]MH_I2C_Read... [00:06:58]*** Stop cut motor [00:06:58]*** Cut end [00:06:58]Read from MH i2c: 01 07 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: 01 07 00 B5 15 00 00 00 00 00 FF 0F DF [00:06:58]process_action close_receipt done [00:06:58]requested_data is exist [00:06:58]produce_requested_data [00:06:58]requested_item fm.sn is exist - process it [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 11 00 00 [00:06:58]Write to MH i2c: E2 08 00 B6 15 80 11 00 00 00 00 00 00 45 [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 17 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 17 00 B6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 9A [00:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:06:58]wFMCommunicate OK [00:06:58]requested_item fd.num is exist - process it [00:06:58]SAM_PROTO_GetFieldsCounters [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 13 00 00 [00:06:58]Write to MH i2c: E2 08 00 B7 15 80 13 00 00 00 00 00 00 48 [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 62 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 62 00 B7 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F2 13 01 00 0E 04 04 00 D1 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 1E [00:06: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F2 13 01 00 0E 04 04 00 D1 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 [00:06:58]wFMCommunicate OK [00:06:58]SAM_PROTO_GetFieldsCounters done [00:06:58]requested_item shift.num is exist - process it [00:06:58]requested_item shift.opened is exist - process it [00:06:58]req_shift_opened [00:06:58]FM_GetShiftState [00:06:58]SAM_PROTO_GetShiftState [00:06:58]wFMCommunicate request_size=4 [00:06:58]MH_SAM_APDU [00:06:58]CAPDU: 80 13 01 00 [00:06:58]Write to MH i2c: E2 08 00 B8 15 80 13 01 00 00 00 00 00 4A [00:06:58]Write i2c OK [00:06:58]MH_I2C_Read... [00:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:58]Read from MH i2c: E2 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 0E 00 [00:06:58]MH_I2C_Read... [00:06:58]Read from MH i2c: E2 0E 00 B8 15 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 37 [00:06:58]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:06:58]wFMCommunicate OK [00:06:58]SAM_PROTO_GetShiftState done [00:06:58]FM_GetShiftState done [00:06:58]req_shift_opened done [00:06:58]requested_item shift.open_date is exist - process it [00:06:58]req_shift_open_date [00:06:58]req_shift_open_date done [00:06:58]produce_requested_data done [00:06:58]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70642,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [00:06:58]process_action_free close_receipt [00:06:58]json_value_free [00:06:58]json_value_free done [00:06:58]process_json_proto returns [00:06:58]Send response to host [00:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70642,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [00:06:58]free response buf [00:06:58]execute_script done [00:06:58]execute_script returns [00:06:58]free content buf [00:06:58]Sock 9.Close socket [00:06:58]Sock 9.Thread stoped [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]accept exits with 7 [00:07:28]New connection [00:07:28]New thread 3066699108 created [00:07:28]Thread 3066842468 joined [00:07:28]Waiting for new connection... [00:07:28] Sock 7.Parse request [00:07:28]Sock 7.Check first char [00:07:28]Sock 7.First char is OK [00:07:28]request: POST /json_proto HTTP/1.0 [00:07:28]Method: POST [00:07:28]URL: /json_proto [00:07:28]Method is POST - this is cgi request [00:07:28]url: /json_proto [00:07:28]query_string will be loaded in cgi processing [00:07:28]execute_cgi json_proto POST (null) [00:07:28]execute_cgi path=json_proto method=POST [00:07:28]POST find Content-Length [00:07:28]Host: 172.17.58.67:8080 [00:07:28]Content-Length: 805 [00:07:28]Content-Type: application/json [00:07:28] [00:07:28]POST finish read [00:07:28]Found Content-Length = 805 [00:07:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:28]execute_script... [00:07: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)141094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 3.040, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:28]POST & json_proto [00:07:28]process_json_proto [00:07:28]json parsed OK: [00:07:28]protocol is kg_v1.0 [00:07:28]action value=close_receipt [00:07:28]process_action close_receipt [00:07:28]cmd_close_receipt [00:07:28]MH_GetDate [00:07:28]Write to MH i2c: F0 00 00 B9 15 BD [00:07:28]Write i2c OK [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: F0 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: F0 09 00 [00:07:28]MH_I2C_Read... [00:07:28]OFD Sender: No OFD packet to send [00:07:28]Read from MH i2c: F0 09 00 B9 15 00 C2 A3 BA 66 94 51 63 64 F7 [00:07:28]GetLastDocTimeStamp 1723507618 [00:07:28]current date 1723507650 [00:07:28]FM_GetShiftState [00:07:28]SAM_PROTO_GetShiftState [00:07:28]wFMCommunicate request_size=4 [00:07:28]MH_SAM_APDU [00:07:28]CAPDU: 80 13 01 00 [00:07:28]Write to MH i2c: E2 08 00 BA 15 80 13 01 00 00 00 00 00 4C [00:07:28]Write i2c OK [00:07:28]MH_I2C_Read... [00:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:28]Read from MH i2c: E2 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 0E 00 [00:07:28]MH_I2C_Read... [00:07:28]Read from MH i2c: E2 0E 00 BA 15 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 39 [00:07:28]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:07:28]wFMCommunicate OK [00:07:28]SAM_PROTO_GetShiftState done [00:07:28]FM_GetShiftState done [00:07:28]opened in 1723423336 [00:07:28]opened+sec_in_day 1723509736 [00:07:28]quantity*price = 20033 [00:07:28]sum+1 = 20035 [00:07:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.34 ÐСП 1% : 1.77 ÐДС 12% : 21.27 Ðаличными: 0.00 Безнал.: 200.34 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 75 13.08.2024 00:07 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70643 ФПД: 31699861764933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T000730&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70643&fm=31699861764933&tin=02508201610067®Number=0000000000090913&sum=20034 [00:07:29]StoreToDocumentArchive [00:07:29]shift 465 fd 70643 [00:07:29]save to /storage/0465/doc_00070643 [00:07:29]save last doc name /storage/0465/doc_00070643 to /storage/kkm_last_doc_name [00:07:29]save OK [00:07:29]Clear old archive folders... [00:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:07:29]tlvbuf is B6E8D630 [00:07:29]SAM_PROTO_ClearQueue [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 09 00 00 [00:07:29]Write to MH i2c: E2 08 00 C7 15 80 09 00 00 00 00 00 00 4E [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 03 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 03 00 C7 15 00 90 00 50 [00:07:29]RAPDU: 90 00 [00:07:29]wFMCommunicate OK [00:07:29]SAM_PROTO_ClearQueue done [00:07:29]KKMCreateOFDPacket [00:07:29]OFDProtocolAddRootSTLVToBuf [00:07:29]FM_MakeSignedData [00:07:29]FM_MakeSignedData [00:07:29]SAM_PROTO_SignData [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 0D 01 02 [00:07:29]Write to MH i2c: E2 08 00 C8 15 80 0D 01 02 00 00 00 00 56 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 03 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 03 00 C8 15 00 90 00 51 [00:07:29]RAPDU: 90 00 [00:07:29]wFMCommunicate OK [00:07:29]wFMCommunicate request_size=255 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 C2 A3 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F3 13 01 00 35 04 06 00 1C [00:07:29]Write to MH i2c: E2 02 01 C9 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 C2 A3 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F3 13 01 00 35 04 06 00 1C 00 00 9E [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 03 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 03 00 C9 15 00 90 00 52 [00:07:29]RAPDU: 90 00 [00:07:29]wFMCommunicate OK [00:07:29]wFMCommunicate request_size=10 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 0D 02 02 05 D4 B2 FF FB 45 [00:07:29]Write to MH i2c: E2 0D 00 CA 15 80 0D 02 02 05 00 D4 B2 FF FB 45 00 00 28 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 03 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 03 00 CA 15 00 90 00 53 [00:07:29]RAPDU: 90 00 [00:07:29]wFMCommunicate OK [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 0D 03 02 [00:07:29]Write to MH i2c: E2 08 00 CB 15 80 0D 03 02 00 00 00 00 5B [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 0B 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 0B 00 CB 15 00 13 F3 D6 01 26 F5 8E C2 90 00 A4 [00:07:29]RAPDU: 13 F3 D6 01 26 F5 8E C2 90 00 [00:07:29]wFMCommunicate OK [00:07:29]SAM_PROTO_SignData done [00:07:29]FM_MakeSignedData done [00:07:29]CreateOFDProtocolMessage [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 11 00 00 [00:07:29]Write to MH i2c: E2 08 00 CC 15 80 11 00 00 00 00 00 00 5B [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 17 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 17 00 CC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 B0 [00:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:07:29]wFMCommunicate OK [00:07:29]CreateOFDProtocolMessage done [00:07:29]OFDSenderStorePacket 70643 [00:07:29]StoreOFDPacket docnum=70643 [00:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 4A 97 07 01 C3 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 C2 A3 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F3 13 01 00 35 04 06 00 1C D4 B2 FF FB 45 13 F3 D6 01 26 F5 8E C2 [00:07:29]CheckFolder [00:07:29]dirname=/storage/ofd_packets [00:07:29]CheckFolder done [00:07:29]ProducePacketName [00:07:29]name=ofd_packets/00070643 [00:07:29]NVStorageSaveData ofd_packets/00070643 [00:07:29]File name is /storage/ofd_packets/00070643 [00:07:29]Write 301 bytes [00:07:29]NVStorageSaveData done [00:07:29]OFDSenderStorePacket done [00:07:29]KKMCreateOFDPacket done [00:07:29]NVStorageSaveData kkm_last_timestamp [00:07:29]File name is /storage/kkm_last_timestamp [00:07:29]Write 4 bytes [00:07:29]NVStorageSaveData done [00:07:29]ExternCall_PrintAddStr [00:07:29]wPrintStart [00:07:29]Write to MH i2c: 01 00 00 CD 15 E2 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: 01 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: 01 07 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: 01 07 00 CD 15 00 00 00 00 00 FF 0F F7 [00:07:29]RasterBufferAndPrint [00:07:29]line Счет N : (1)141094 [00:07:29]line ИÐÐ: 02508201610067 [00:07:29]line Контрольно-КаÑÑовый Чек [00:07:29]line ПРОДÐЖР[00:07:29]line ТРК (МРК, ГÐК) : 41 [00:07:29]line Товар: 2710124130 [00:07:29]line Ðи-92-К-5 [00:07:29]line 3.040 * 65.90 [00:07:29]line = 200.34 [00:07:29]line ÐДС 12% ÐСП 1% [00:07:29]line > о реализуемом товаре [00:07:29]line ИТОГО: 200.34 [00:07:29]line ÐСП 1% : 1.77 [00:07:29]line ÐДС 12% : 21.27 [00:07:29]line Ðаличными: 0.00 [00:07:29]line Безнал.: 200.34 [00:07:29]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [00:07:29]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [00:07:29]line СÐО: Общий режим [00:07:29]line Чек 75 13.08.2024 00:07 [00:07:29]line Смена: 465 ФФД: 1.0 [00:07:29]line ЗÐМ: 0300000140 [00:07:29]line РÐМ: 0000000000090913 [00:07:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [00:07:29]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [00:07:29]line ФМ: 0000000000874915 [00:07:29]line ФД: 70643 [00:07:29]line ФПД: 31699861764933 [00:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T000730&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70643&fm=31699861764933&tin=02508201610067®Number=0000000000090913&sum=20034 [00:07:29]written 0, free lines is 4095 [00:07:29]OFD Sender: Processing packet 70643 [packets to send 67, broken 66] [00:07:29]ProducePacketName [00:07:29]name=ofd_packets/00070643 [00:07:30]OFD Sender: To server: ‡•öpG, [00:07:30]CommunicateWithHost lk.salyk.kg:30040 [00:07:30]ConnectInit lk.salyk.kg [00:07:30]Connected sock=10 [00:07: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 39 31 35 0F 01 00 00 4A 97 07 01 C3 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 C2 A3 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F3 13 01 00 35 04 06 00 1C D4 B2 FF FB 45 13 F3 D6 01 26 F5 8E C2 [00:07:30]Write to MH i2c: 01 00 00 F7 15 0C [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: 01 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: 01 07 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: 01 07 00 F7 15 00 00 00 00 00 02 0D 22 [00:07:30]RasterBufferAndPrint [00:07:30]line [00:07:30]line [00:07:30]line [00:07:30]line [00:07:30]line [00:07:30]written 0, free lines is 3336 [00:07:30]MH_Cut [00:07:30]Write to MH i2c: D1 01 00 FE 15 01 E5 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: D1 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: D1 01 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: D1 01 00 FE 15 00 E4 [00:07:30]Write to MH i2c: 01 00 00 FF 15 14 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 CC E1 47 00 AC 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 39 31 35 10 04 04 00 F3 13 01 00 F4 03 04 00 AE 4A BA 66 B6 04 01 00 00 5A B0 18 4A 81 A8 30 AB [00:07:30]CommunicateWithHost err = 0 [00:07:30]CheckOFDResponse [00:07:30]1017 (14) - 77093643461234 [00:07:30]1041 (16) - 0000000000874915 [00:07:30]1040 (4) - 70643 [00:07:30]1012 (4) - 12.08.2024 17:47 [00:07:30]1206 (1) - 0 [00:07:30]OFD Sender: Remove packet 70643 [00:07:30]ProducePacketName [00:07:30]name=ofd_packets/00070643 [00:07:30]NVStorageDeleteData [00:07:30]OFD Sender: No OFD packet to send [00:07:30]*** Cut start [00:07:30]*** Purtial cut [00:07:30]*** CUTSNS_PIN = 0 [00:07:31]*** Stage 1: CUTSNS_PIN = 1 [00:07:32]Read from MH i2c: 01 [00:07:32]MH_I2C_Read... [00:07:32]*** Stop cut motor [00:07:33]*** Cut end [00:07:33]Read from MH i2c: 01 07 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: 01 07 00 FF 15 00 00 00 00 00 FF 0F 29 [00:07:33]process_action close_receipt done [00:07:33]requested_data is exist [00:07:33]produce_requested_data [00:07:33]requested_item fm.sn is exist - process it [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 11 00 00 [00:07:33]Write to MH i2c: E2 08 00 00 16 80 11 00 00 00 00 00 00 90 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 17 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 17 00 00 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 E5 [00:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:07:33]wFMCommunicate OK [00:07:33]requested_item fd.num is exist - process it [00:07:33]SAM_PROTO_GetFieldsCounters [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 13 00 00 [00:07:33]Write to MH i2c: E2 08 00 01 16 80 13 00 00 00 00 00 00 93 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 62 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 62 00 01 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F3 13 01 00 0E 04 04 00 D1 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 6D [00:07: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F3 13 01 00 0E 04 04 00 D1 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 [00:07:33]wFMCommunicate OK [00:07:33]SAM_PROTO_GetFieldsCounters done [00:07:33]requested_item shift.num is exist - process it [00:07:33]requested_item shift.opened is exist - process it [00:07:33]req_shift_opened [00:07:33]FM_GetShiftState [00:07:33]SAM_PROTO_GetShiftState [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 13 01 00 [00:07:33]Write to MH i2c: E2 08 00 02 16 80 13 01 00 00 00 00 00 95 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 0E 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 0E 00 02 16 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 82 [00:07:33]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:07:33]wFMCommunicate OK [00:07:33]SAM_PROTO_GetShiftState done [00:07:33]FM_GetShiftState done [00:07:33]req_shift_opened done [00:07:33]requested_item shift.open_date is exist - process it [00:07:33]req_shift_open_date [00:07:33]req_shift_open_date done [00:07:33]produce_requested_data done [00:07:33]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70643,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [00:07:33]process_action_free close_receipt [00:07:33]json_value_free [00:07:33]json_value_free done [00:07:33]process_json_proto returns [00:07:33]Send response to host [00:07:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70643,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [00:07:33]free response buf [00:07:33]execute_script done [00:07:33]execute_script returns [00:07:33]free content buf [00:07:33]Sock 7.Close socket [00:07:33]Sock 7.Thread stoped [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:31]int [00:09:31]Write to MH i2c: 01 00 00 03 16 19 [00:09:31]*** FLAG_PRN_KEY set [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 07 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 07 00 03 16 00 08 00 00 00 FF 0F 36 [00:09:31]state=0 [00:09:31]Key pressed [00:09:31]Feed [00:09:31]Write to MH i2c: D8 00 00 04 16 F1 [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: D8 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: D8 01 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: D8 01 00 04 16 00 F2 [00:09:31]int [00:09:31]Write to MH i2c: 01 00 00 05 16 1B [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 07 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 07 00 05 16 00 48 00 00 00 3C 00 A6 [00:09:31]state=2 [00:09:31]Key pressed [00:09:31]int [00:09:31]Write to MH i2c: 01 00 00 06 16 1C [00:09:31]*** FLAG_PRN_KEY reset [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 07 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 07 00 06 16 00 00 00 00 00 F5 0F 27 [00:09:31]state=2 [00:09:31]Stop feed [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:10:58]accept exits with 9 [00:10:58]New connection [00:10:58]New thread 3066842468 created [00:10:58] Sock 9.Parse request [00:10:58]Thread 3066699108 joined [00:10:58]Sock 9.Check first char [00:10:58]Waiting for new connection... [00:10:58]Sock 9.First char is OK [00:10:58]request: POST /json_proto HTTP/1.0 [00:10:58]Method: POST [00:10:58]URL: /json_proto [00:10:58]Method is POST - this is cgi request [00:10:58]url: /json_proto [00:10:58]query_string will be loaded in cgi processing [00:10:58]execute_cgi json_proto POST (null) [00:10:58]execute_cgi path=json_proto method=POST [00:10:58]POST find Content-Length [00:10:58]Host: 172.17.58.67:8080 [00:10:58]Content-Length: 808 [00:10:58]Content-Type: application/json [00:10:58] [00:10:58]POST finish read [00:10:58]Found Content-Length = 808 [00:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)141096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:58]execute_script... [00:10: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)141096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 15.180, "sum" : 1000.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:58]POST & json_proto [00:10:58]process_json_proto [00:10:58]json parsed OK: [00:10:58]protocol is kg_v1.0 [00:10:58]action value=close_receipt [00:10:58]process_action close_receipt [00:10:58]cmd_close_receipt [00:10:58]MH_GetDate [00:10:58]Write to MH i2c: F0 00 00 07 16 0C [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: F0 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: F0 09 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: F0 09 00 07 16 00 95 A4 BA 66 94 51 63 64 1A [00:10:58]GetLastDocTimeStamp 1723507650 [00:10:58]current date 1723507861 [00:10:58]FM_GetShiftState [00:10:58]SAM_PROTO_GetShiftState [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 13 01 00 [00:10:58]Write to MH i2c: E2 08 00 08 16 80 13 01 00 00 00 00 00 9B [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 0E 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 0E 00 08 16 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 88 [00:10:58]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:10:58]wFMCommunicate OK [00:10:58]SAM_PROTO_GetShiftState done [00:10:58]FM_GetShiftState done [00:10:58]opened in 1723423336 [00:10:58]opened+sec_in_day 1723509736 [00:10:58]quantity*price = 100036 [00:10:58]sum+1 = 100037 [00:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.36 ÐСП 1% : 8.85 ÐДС 12% : 106.23 Ðаличными: 0.00 Безнал.: 1000.36 МеÑто: ÐЗС â„– 39 "Партнер Ðефть" ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 СÐО: Общий режим Чек 76 13.08.2024 00:11 Смена: 465 ФФД: 1.0 ЗÐМ: 0300000140 РÐМ: 0000000000090913 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги ФМ: 0000000000874915 ФД: 70644 ФПД: 196989480155209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T001101&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70644&fm=196989480155209&tin=02508201610067®Number=0000000000090913&sum=100036 [00:10:59]StoreToDocumentArchive [00:10:59]shift 465 fd 70644 [00:10:59]save to /storage/0465/doc_00070644 [00:10:59]save last doc name /storage/0465/doc_00070644 to /storage/kkm_last_doc_name [00:10:59]save OK [00:10:59]Clear old archive folders... [00:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:10:59]tlvbuf is B6D8D710 [00:10:59]SAM_PROTO_ClearQueue [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 09 00 00 [00:10:59]Write to MH i2c: E2 08 00 15 16 80 09 00 00 00 00 00 00 9D [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 03 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 03 00 15 16 00 90 00 9F [00:10:59]RAPDU: 90 00 [00:10:59]wFMCommunicate OK [00:10:59]SAM_PROTO_ClearQueue done [00:10:59]KKMCreateOFDPacket [00:10:59]OFDProtocolAddRootSTLVToBuf [00:10:59]FM_MakeSignedData [00:10:59]FM_MakeSignedData [00:10:59]SAM_PROTO_SignData [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 0D 01 02 [00:10:59]Write to MH i2c: E2 08 00 16 16 80 0D 01 02 00 00 00 00 A5 [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 03 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 03 00 16 16 00 90 00 A0 [00:10:59]RAPDU: 90 00 [00:10:59]wFMCommunicate OK [00:10:59]wFMCommunicate request_size=255 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 95 A4 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F4 13 01 00 35 04 06 00 B3 [00:10:59]Write to MH i2c: E2 02 01 17 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 95 A4 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F4 13 01 00 35 04 06 00 B3 00 00 3F [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 03 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 03 00 17 16 00 90 00 A1 [00:11:00]RAPDU: 90 00 [00:11:00]wFMCommunicate OK [00:11:00]wFMCommunicate request_size=10 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 0D 02 02 05 29 2F FD 38 49 [00:11:00]Write to MH i2c: E2 0D 00 18 16 80 0D 02 02 05 00 29 2F FD 38 49 00 00 88 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 03 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [00:11:00]RAPDU: 90 00 [00:11:00]wFMCommunicate OK [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 0D 03 02 [00:11:00]Write to MH i2c: E2 08 00 19 16 80 0D 03 02 00 00 00 00 AA [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 0B 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 0B 00 19 16 00 E3 81 EF FD 88 A5 27 BB 90 00 0A [00:11:00]RAPDU: E3 81 EF FD 88 A5 27 BB 90 00 [00:11:00]wFMCommunicate OK [00:11:00]SAM_PROTO_SignData done [00:11:00]FM_MakeSignedData done [00:11:00]CreateOFDProtocolMessage [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 11 00 00 [00:11:00]Write to MH i2c: E2 08 00 1A 16 80 11 00 00 00 00 00 00 AA [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 17 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 17 00 1A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FF [00:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:11:00]wFMCommunicate OK [00:11:00]CreateOFDProtocolMessage done [00:11:00]OFDSenderStorePacket 70644 [00:11:00]StoreOFDPacket docnum=70644 [00:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0F 01 00 00 CD 6D 07 01 A6 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 95 A4 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F4 13 01 00 35 04 06 00 B3 29 2F FD 38 49 E3 81 EF FD 88 A5 27 BB [00:11:00]CheckFolder [00:11:00]dirname=/storage/ofd_packets [00:11:00]CheckFolder done [00:11:00]ProducePacketName [00:11:00]name=ofd_packets/00070644 [00:11:00]NVStorageSaveData ofd_packets/00070644 [00:11:00]File name is /storage/ofd_packets/00070644 [00:11:00]Write 301 bytes [00:11:00]NVStorageSaveData done [00:11:00]OFDSenderStorePacket done [00:11:00]KKMCreateOFDPacket done [00:11:00]NVStorageSaveData kkm_last_timestamp [00:11:00]File name is /storage/kkm_last_timestamp [00:11:00]Write 4 bytes [00:11:00]NVStorageSaveData done [00:11:00]ExternCall_PrintAddStr [00:11:00]wPrintStart [00:11:00]Write to MH i2c: 01 00 00 1B 16 31 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 07 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 07 00 1B 16 00 00 00 00 00 FF 0F 46 [00:11:00]RasterBufferAndPrint [00:11:00]line Счет N : (1)141096 [00:11:00]line ИÐÐ: 02508201610067 [00:11:00]line Контрольно-КаÑÑовый Чек [00:11:00]line ПРОДÐЖР[00:11:00]line ТРК (МРК, ГÐК) : 31 [00:11:00]line Товар: 2710124130 [00:11:00]line Ðи-92-К-5 [00:11:00]line 15.180 * 65.90 [00:11:00]line = 1000.36 [00:11:00]line ÐДС 12% ÐСП 1% [00:11:00]line > о реализуемом товаре [00:11:00]line ИТОГО: 1000.36 [00:11:00]line ÐСП 1% : 8.85 [00:11:00]line ÐДС 12% : 106.23 [00:11:00]line Ðаличными: 0.00 [00:11:00]line Безнал.: 1000.36 [00:11:00]line МеÑто: ÐЗС â„– 39 "Партнер Ðефть" [00:11:00]line ÐдреÑ: 720001, г. Кант, ул. ЦемзаводÑÐºÐ°Ñ 9 Ð, 42.889357, 74.840313 [00:11:00]line СÐО: Общий режим [00:11:00]line Чек 76 13.08.2024 00:11 [00:11:00]line Смена: 465 ФФД: 1.0 [00:11:00]line ЗÐМ: 0300000140 [00:11:00]line РÐМ: 0000000000090913 [00:11:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [00:11:00]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: О! деньги [00:11:00]line ФМ: 0000000000874915 [00:11:00]line ФД: 70644 [00:11:00]line ФПД: 196989480155209 [00:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240813T001101&type=1&operation_type=1&fn_number=0000000000874915&fd_number=70644&fm=196989480155209&tin=02508201610067®Number=0000000000090913&sum=100036 [00:11:00]written 0, free lines is 4095 [00:11:00]OFD Sender: Processing packet 70644 [packets to send 67, broken 66] [00:11:00]ProducePacketName [00:11:00]name=ofd_packets/00070644 [00:11:00]OFD Sender: To server: ‡•öpG, [00:11:00]CommunicateWithHost lk.salyk.kg:30040 [00:11:00]ConnectInit lk.salyk.kg [00:11:00]Connected sock=10 [00:11: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 39 31 35 0F 01 00 00 CD 6D 07 01 A6 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 3B 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 C4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 95 A4 BA 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F4 13 01 00 35 04 06 00 B3 29 2F FD 38 49 E3 81 EF FD 88 A5 27 BB [00:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 60 D2 47 00 06 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F4 13 01 00 F4 03 04 00 81 4B BA 66 B6 04 01 00 00 45 24 93 61 38 B0 09 84 [00:11:00]CommunicateWithHost err = 0 [00:11:00]CheckOFDResponse [00:11:00]1017 (14) - 77093643461234 [00:11:00]1041 (16) - 0000000000874915 [00:11:00]1040 (4) - 70644 [00:11:00]1012 (4) - 12.08.2024 17:50 [00:11:00]1206 (1) - 0 [00:11:00]OFD Sender: Remove packet 70644 [00:11:00]ProducePacketName [00:11:00]name=ofd_packets/00070644 [00:11:00]NVStorageDeleteData [00:11:00]Write to MH i2c: 01 00 00 45 16 5B [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 07 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 07 00 45 16 00 00 00 00 00 FF 0C 6D [00:11:00]RasterBufferAndPrint [00:11:00]line [00:11:00]line [00:11:00]line [00:11:00]line [00:11:00]line [00:11:00]written 0, free lines is 3335 [00:11:01]MH_Cut [00:11:01]Write to MH i2c: D1 01 00 4C 16 01 34 [00:11:01]Write i2c OK [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: D1 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: D1 01 00 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: D1 01 00 4C 16 00 33 [00:11:01]Write to MH i2c: 01 00 00 4D 16 63 [00:11:01]Write i2c OK [00:11:01]MH_I2C_Read... [00:11:01]OFD Sender: No OFD packet to send [00:11:01]*** Cut start [00:11:01]*** Purtial cut [00:11:01]*** Stage 1: CUTSNS_PIN = 1 [00:11:01]Read from MH i2c: 01 [00:11:01]MH_I2C_Read... [00:11:01]*** Stop cut motor [00:11:01]*** Cut end [00:11:01]Read from MH i2c: 01 07 00 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: 01 07 00 4D 16 00 00 00 00 00 FF 0F 78 [00:11:01]process_action close_receipt done [00:11:01]requested_data is exist [00:11:01]produce_requested_data [00:11:01]requested_item fm.sn is exist - process it [00:11:01]wFMCommunicate request_size=4 [00:11:01]MH_SAM_APDU [00:11:01]CAPDU: 80 11 00 00 [00:11:01]Write to MH i2c: E2 08 00 4E 16 80 11 00 00 00 00 00 00 DE [00:11:01]Write i2c OK [00:11:01]MH_I2C_Read... [00:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 17 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 17 00 4E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 33 [00:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:11:02]wFMCommunicate OK [00:11:02]requested_item fd.num is exist - process it [00:11:02]SAM_PROTO_GetFieldsCounters [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 13 00 00 [00:11:02]Write to MH i2c: E2 08 00 4F 16 80 13 00 00 00 00 00 00 E1 [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 62 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 62 00 4F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 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 BF [00:11: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:02]wFMCommunicate OK [00:11:02]SAM_PROTO_GetFieldsCounters done [00:11:02]requested_item shift.num is exist - process it [00:11:02]requested_item shift.opened is exist - process it [00:11:02]req_shift_opened [00:11:02]FM_GetShiftState [00:11:02]SAM_PROTO_GetShiftState [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 13 01 00 [00:11:02]Write to MH i2c: E2 08 00 50 16 80 13 01 00 00 00 00 00 E3 [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 0E 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 0E 00 50 16 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D0 [00:11:02]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:11:02]wFMCommunicate OK [00:11:02]SAM_PROTO_GetShiftState done [00:11:02]FM_GetShiftState done [00:11:02]req_shift_opened done [00:11:02]requested_item shift.open_date is exist - process it [00:11:02]req_shift_open_date [00:11:02]req_shift_open_date done [00:11:02]produce_requested_data done [00:11:02]produce_requested_data return {"fm.sn":"0000000000874915","fd.num":70644,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [00:11:02]process_action_free close_receipt [00:11:02]json_value_free [00:11:02]json_value_free done [00:11:02]process_json_proto returns [00:11:02]Send response to host [00:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874915","fd.num":70644,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [00:11:02]free response buf [00:11:02]execute_script done [00:11:02]execute_script returns [00:11:02]free content buf [00:11:02]Sock 9.Close socket [00:11:02]Sock 9.Thread stoped [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:15]int [00:20:15]Write to MH i2c: 01 00 00 51 16 67 [00:20:15]*** FLAG_PRN_KEY set [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 51 16 00 08 00 00 00 FF 0F 84 [00:20:15]state=0 [00:20:15]Key pressed [00:20:15]Feed [00:20:15]Write to MH i2c: D8 00 00 52 16 3F [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: D8 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: D8 01 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: D8 01 00 52 16 00 40 [00:20:15]int [00:20:15]Write to MH i2c: 01 00 00 53 16 69 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 53 16 00 48 00 00 00 3C 00 F4 [00:20:15]state=2 [00:20:15]Key pressed [00:20:15]int [00:20:15]Write to MH i2c: 01 00 00 54 16 6A [00:20:15]*** FLAG_PRN_KEY reset [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 54 16 00 00 00 00 00 F6 0F 76 [00:20:15]state=2 [00:20:15]Stop feed [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:49]accept exits with 7 [00:20:49]New connection [00:20:49]New thread 3066699108 created [00:20:49]Thread 3066842468 joined [00:20:49]Waiting for new connection... [00:20:49] Sock 7.Parse request [00:20:49]Sock 7.Check first char [00:20:49]Sock 7.First char is OK [00:20:49]request: POST /json_proto HTTP/1.0 [00:20:49]Method: POST [00:20:49]URL: /json_proto [00:20:49]Method is POST - this is cgi request [00:20:49]url: /json_proto [00:20:49]query_string will be loaded in cgi processing [00:20:49]execute_cgi json_proto POST (null) [00:20:49]execute_cgi path=json_proto method=POST [00:20:49]POST find Content-Length [00:20:49]Host: 172.17.58.67:8080 [00:20:49]Content-Length: 215 [00:20:49]Content-Type: application/json [00:20:49] [00:20:49]POST finish read [00:20:49]Found Content-Length = 215 [00:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:49]execute_script... [00:20:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:49]POST & json_proto [00:20:49]process_json_proto [00:20:49]json parsed OK: [00:20:49]protocol is kg_v1.0 [00:20:49]action value=get_value [00:20:49]process_action get_value [00:20:49]cmd_get_value [00:20:49]process_action get_value done [00:20:49]requested_data is exist [00:20:49]produce_requested_data [00:20:49]requested_item kkm.sn is exist - process it [00:20:49]requested_item kkm.ver is exist - process it [00:20:49]requested_item fm.sn is exist - process it [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 11 00 00 [00:20:49]Write to MH i2c: E2 08 00 55 16 80 11 00 00 00 00 00 00 E5 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 17 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 17 00 55 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 3A [00:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:20:49]wFMCommunicate OK [00:20:49]requested_item fd.num is exist - process it [00:20:49]SAM_PROTO_GetFieldsCounters [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 13 00 00 [00:20:49]Write to MH i2c: E2 08 00 56 16 80 13 00 00 00 00 00 00 E8 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 62 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 62 00 56 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 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 C6 [00:20: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:49]wFMCommunicate OK [00:20:49]SAM_PROTO_GetFieldsCounters done [00:20:49]requested_item shift.num is exist - process it [00:20:49]requested_item shift.opened is exist - process it [00:20:49]req_shift_opened [00:20:49]FM_GetShiftState [00:20:49]SAM_PROTO_GetShiftState [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 13 01 00 [00:20:49]Write to MH i2c: E2 08 00 57 16 80 13 01 00 00 00 00 00 EA [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 0E 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 0E 00 57 16 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 D7 [00:20:49]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:20:49]wFMCommunicate OK [00:20:49]SAM_PROTO_GetShiftState done [00:20:49]FM_GetShiftState done [00:20:49]req_shift_opened done [00:20:49]requested_item shift.open_date is exist - process it [00:20:49]req_shift_open_date [00:20:49]req_shift_open_date done [00:20:49]produce_requested_data done [00:20:49]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70644,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [00:20:49]process_action_free get_value [00:20:49]json_value_free [00:20:49]json_value_free done [00:20:49]process_json_proto returns [00:20:49]Send response to host [00:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70644,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [00:20:49]free response buf [00:20:49]execute_script done [00:20:49]execute_script returns [00:20:49]free content buf [00:20:49]Sock 7.Close socket [00:20:49]Sock 7.Thread stoped [00:20:49]accept exits with 9 [00:20:49]New connection [00:20:49]New thread 3066842468 created [00:20:49]Thread 3066699108 joined [00:20:49]Waiting for new connection... [00:20:49] Sock 9.Parse request [00:20:49]Sock 9.Check first char [00:20:49]Sock 9.First char is OK [00:20:49]request: POST /json_proto HTTP/1.0 [00:20:49]Method: POST [00:20:49]URL: /json_proto [00:20:49]Method is POST - this is cgi request [00:20:49]url: /json_proto [00:20:49]query_string will be loaded in cgi processing [00:20:49]execute_cgi json_proto POST (null) [00:20:49]execute_cgi path=json_proto method=POST [00:20:49]POST find Content-Length [00:20:49]Host: 172.17.58.67:8080 [00:20:49]Content-Length: 331 [00:20:49]Content-Type: application/json [00:20:49] [00:20:49]POST finish read [00:20:49]Found Content-Length = 331 [00:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:49]execute_script... [00:20:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:49]POST & json_proto [00:20:49]process_json_proto [00:20:49]json parsed OK: [00:20:49]protocol is kg_v1.0 [00:20:49]action value=get_value [00:20:49]process_action get_value [00:20:49]cmd_get_value [00:20:49]process_action get_value done [00:20:49]requested_data is exist [00:20:49]produce_requested_data [00:20:49]requested_item fm.sale.total is exist - process it [00:20:49]SAM_PROTO_GetFMData [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 13 03 00 [00:20:49]Write to MH i2c: E2 08 00 58 16 80 13 03 00 00 00 00 00 ED [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 58 16 00 C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 CE [00:20:50]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 [00:20:50]wFMCommunicate OK [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 17 00 00 [00:20:50]Write to MH i2c: E2 08 00 59 16 80 17 00 00 00 00 00 00 EF [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 59 16 00 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F [00:20:50]RAPDU: 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50]wFMCommunicate OK [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 17 00 00 [00:20:50]Write to MH i2c: E2 08 00 5A 16 80 17 00 00 00 00 00 00 F0 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 5A 16 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [00:20:50]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:50]wFMCommunicate OK [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 17 00 00 [00:20:50]Write to MH i2c: E2 08 00 5B 16 80 17 00 00 00 00 00 00 F1 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 5B 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 69 [00:20:50]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:50]wFMCommunicate OK [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 17 00 00 [00:20:50]Write to MH i2c: E2 08 00 5C 16 80 17 00 00 00 00 00 00 F2 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:20:51]Read from MH i2c: E2 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 E5 00 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 E5 00 5C 16 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 D6 [00:20:51]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:51]wFMCommunicate OK [00:20:51]SAM_PROTO_GetFMData done [00:20:51]requested_item fm.sale_refund.total is exist - process it [00:20:51]requested_item fm.buy.total is exist - process it [00:20:51]requested_item shift.sale.total is exist - process it [00:20:51]SAM_PROTO_GetShiftData [00:20:51]wFMCommunicate request_size=4 [00:20:51]MH_SAM_APDU [00:20:51]CAPDU: 80 13 02 00 [00:20:51]Write to MH i2c: E2 08 00 5D 16 80 13 02 00 00 00 00 00 F1 [00:20:51]Write i2c OK [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 [00:20:51]MH_I2C_Read... [00:20:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:51]Read from MH i2c: E2 FD 00 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 FD 00 5D 16 00 B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 A5 [00:20:51]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:20:51]wFMCommunicate OK [00:20:51]wFMCommunicate request_size=4 [00:20:51]MH_SAM_APDU [00:20:51]CAPDU: 80 17 00 00 [00:20:51]Write to MH i2c: E2 08 00 5E 16 80 17 00 00 00 00 00 00 F4 [00:20:51]Write i2c OK [00:20:51]MH_I2C_Read... [00:20:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:51]Read from MH i2c: E2 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 FD 00 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 FD 00 5E 16 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 D9 [00:20:51]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 [00:20:51]wFMCommunicate OK [00:20:51]wFMCommunicate request_size=4 [00:20:51]MH_SAM_APDU [00:20:51]CAPDU: 80 17 00 00 [00:20:51]Write to MH i2c: E2 08 00 5F 16 80 17 00 00 00 00 00 00 F5 [00:20:51]OFD Sender: No OFD packet to send [00:20:51]Write i2c OK [00:20:51]MH_I2C_Read... [00:20:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:52]Read from MH i2c: E2 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 5F 16 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1D [00:20:52]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:52]wFMCommunicate OK [00:20:52]wFMCommunicate request_size=4 [00:20:52]MH_SAM_APDU [00:20:52]CAPDU: 80 17 00 00 [00:20:52]Write to MH i2c: E2 08 00 60 16 80 17 00 00 00 00 00 00 F6 [00:20:52]Write i2c OK [00:20:52]MH_I2C_Read... [00:20:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:52]Read from MH i2c: E2 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 60 16 00 EF 03 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 90 00 6E [00:20:52]RAPDU: EF 03 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 90 00 [00:20:52]wFMCommunicate OK [00:20:52]wFMCommunicate request_size=4 [00:20:52]MH_SAM_APDU [00:20:52]CAPDU: 80 17 00 00 [00:20:52]Write to MH i2c: E2 08 00 61 16 80 17 00 00 00 00 00 00 F7 [00:20:52]Write i2c OK [00:20:52]MH_I2C_Read... [00:20:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:20:52]Read from MH i2c: E2 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 D6 00 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 D6 00 61 16 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D9 [00:20:52]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52]wFMCommunicate OK [00:20:52]SAM_PROTO_GetShiftData done [00:20:52]requested_item shift.sale.total_cash is exist - process it [00:20:52]requested_item shift.sale_refund.total is exist - process it [00:20:52]requested_item shift.sale_refund.total_cash is exist - process it [00:20:52]requested_item shift.buy.total is exist - process it [00:20:52]requested_item shift.buy.total_cash is exist - process it [00:20:52]produce_requested_data done [00:20:52]produce_requested_data return {"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":111467.05,"shift.sale.total_cash":14869.00,"shift.sale_refund.total":3500.00,"shift.sale_refund.total_cash":3500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:52]process_action_free get_value [00:20:52]json_value_free [00:20:52]json_value_free done [00:20:52]process_json_proto returns [00:20:52]Send response to host [00:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":111467.05,"shift.sale.total_cash":14869.00,"shift.sale_refund.total":3500.00,"shift.sale_refund.total_cash":3500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:52]free response buf [00:20:52]execute_script done [00:20:52]execute_script returns [00:20:52]free content buf [00:20:52]Sock 9.Close socket [00:20:52]Sock 9.Thread stoped [00:20:52]accept exits with 7 [00:20:52]New connection [00:20:52]New thread 3066699108 created [00:20:52]Thread 3066842468 joined [00:20:52]Waiting for new connection... [00:20:52] Sock 7.Parse request [00:20:52]Sock 7.Check first char [00:20:52]Sock 7.First char is OK [00:20:52]request: POST /json_proto HTTP/1.0 [00:20:52]Method: POST [00:20:52]URL: /json_proto [00:20:52]Method is POST - this is cgi request [00:20:52]url: /json_proto [00:20:52]query_string will be loaded in cgi processing [00:20:52]execute_cgi json_proto POST (null) [00:20:52]execute_cgi path=json_proto method=POST [00:20:52]POST find Content-Length [00:20:52]Host: 172.17.58.67:8080 [00:20:52]Content-Length: 331 [00:20:52]Content-Type: application/json [00:20:52] [00:20:52]POST finish read [00:20:52]Found Content-Length = 331 [00:20:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:52]execute_script... [00:20:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:52]POST & json_proto [00:20:52]process_json_proto [00:20:52]json parsed OK: [00:20:52]protocol is kg_v1.0 [00:20:52]action value=get_value [00:20:52]process_action get_value [00:20:52]cmd_get_value [00:20:52]process_action get_value done [00:20:52]requested_data is exist [00:20:52]produce_requested_data [00:20:52]requested_item fm.sale.total is exist - process it [00:20:52]SAM_PROTO_GetFMData [00:20:52]wFMCommunicate request_size=4 [00:20:52]MH_SAM_APDU [00:20:52]CAPDU: 80 13 03 00 [00:20:52]Write to MH i2c: E2 08 00 62 16 80 13 03 00 00 00 00 00 F7 [00:20:52]Write i2c OK [00:20:52]MH_I2C_Read... [00:20:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:53]Read from MH i2c: E2 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 62 16 00 C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 D8 [00:20:53]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 [00:20:53]wFMCommunicate OK [00:20:53]wFMCommunicate request_size=4 [00:20:53]MH_SAM_APDU [00:20:53]CAPDU: 80 17 00 00 [00:20:53]Write to MH i2c: E2 08 00 63 16 80 17 00 00 00 00 00 00 F9 [00:20:53]Write i2c OK [00:20:53]MH_I2C_Read... [00:20:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:53]Read from MH i2c: E2 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 63 16 00 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 79 [00:20:53]RAPDU: 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:53]wFMCommunicate OK [00:20:53]wFMCommunicate request_size=4 [00:20:53]MH_SAM_APDU [00:20:53]CAPDU: 80 17 00 00 [00:20:53]Write to MH i2c: E2 08 00 64 16 80 17 00 00 00 00 00 00 FA [00:20:53]Write i2c OK [00:20:53]MH_I2C_Read... [00:20:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:54]Read from MH i2c: E2 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 FD 00 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 FD 00 64 16 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D2 [00:20:54]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:54]wFMCommunicate OK [00:20:54]wFMCommunicate request_size=4 [00:20:54]MH_SAM_APDU [00:20:54]CAPDU: 80 17 00 00 [00:20:54]Write to MH i2c: E2 08 00 65 16 80 17 00 00 00 00 00 00 FB [00:20:54]Write i2c OK [00:20:54]MH_I2C_Read... [00:20:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:54]Read from MH i2c: E2 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 FD 00 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 FD 00 65 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 73 [00:20:54]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:54]wFMCommunicate OK [00:20:54]wFMCommunicate request_size=4 [00:20:54]MH_SAM_APDU [00:20:54]CAPDU: 80 17 00 00 [00:20:54]Write to MH i2c: E2 08 00 66 16 80 17 00 00 00 00 00 00 FC [00:20:54]Write i2c OK [00:20:54]MH_I2C_Read... [00:20:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:20:54]Read from MH i2c: E2 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 E5 00 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 E5 00 66 16 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 E0 [00:20:54]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:54]wFMCommunicate OK [00:20:54]SAM_PROTO_GetFMData done [00:20:54]requested_item fm.sale_refund.total is exist - process it [00:20:54]requested_item fm.buy.total is exist - process it [00:20:54]requested_item shift.sale.total is exist - process it [00:20:54]SAM_PROTO_GetShiftData [00:20:54]wFMCommunicate request_size=4 [00:20:54]MH_SAM_APDU [00:20:54]CAPDU: 80 13 02 00 [00:20:54]Write to MH i2c: E2 08 00 67 16 80 13 02 00 00 00 00 00 FB [00:20:54]Write i2c OK [00:20:54]MH_I2C_Read... [00:20:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:55]Read from MH i2c: E2 [00:20:55]MH_I2C_Read... [00:20:55]Read from MH i2c: E2 FD 00 [00:20:55]MH_I2C_Read... [00:20:55]Read from MH i2c: E2 FD 00 67 16 00 B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 AF [00:20:55]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:20:55]wFMCommunicate OK [00:20:55]wFMCommunicate request_size=4 [00:20:55]MH_SAM_APDU [00:20:55]CAPDU: 80 17 00 00 [00:20:55]Write to MH i2c: E2 08 00 68 16 80 17 00 00 00 00 00 00 FE [00:20:55]Write i2c OK [00:20:55]MH_I2C_Read... [00:20:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:55]Read from MH i2c: E2 [00:20:55]MH_I2C_Read... [00:20:55]Read from MH i2c: E2 FD 00 [00:20:55]MH_I2C_Read... [00:20:55]Read from MH i2c: E2 FD 00 68 16 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 E3 [00:20:55]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 [00:20:55]wFMCommunicate OK [00:20:55]wFMCommunicate request_size=4 [00:20:55]MH_SAM_APDU [00:20:55]CAPDU: 80 17 00 00 [00:20:55]Write to MH i2c: E2 08 00 69 16 80 17 00 00 00 00 00 00 FF [00:20:55]Write i2c OK [00:20:55]MH_I2C_Read... [00:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:56]Read from MH i2c: E2 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 FD 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 FD 00 69 16 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [00:20:56]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:56]wFMCommunicate OK [00:20:56]wFMCommunicate request_size=4 [00:20:56]MH_SAM_APDU [00:20:56]CAPDU: 80 17 00 00 [00:20:56]Write to MH i2c: E2 08 00 6A 16 80 17 00 00 00 00 00 00 00 [00:20:56]Write i2c OK [00:20:56]MH_I2C_Read... [00:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:56]Read from MH i2c: E2 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 FD 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 FD 00 6A 16 00 EF 03 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 90 00 78 [00:20:56]RAPDU: EF 03 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 90 00 [00:20:56]wFMCommunicate OK [00:20:56]wFMCommunicate request_size=4 [00:20:56]MH_SAM_APDU [00:20:56]CAPDU: 80 17 00 00 [00:20:56]Write to MH i2c: E2 08 00 6B 16 80 17 00 00 00 00 00 00 01 [00:20:56]Write i2c OK [00:20:56]MH_I2C_Read... [00:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:20:56]Read from MH i2c: E2 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 D6 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 D6 00 6B 16 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E3 [00:20:56]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:57]wFMCommunicate OK [00:20:57]SAM_PROTO_GetShiftData done [00:20:57]requested_item shift.sale.total_cash is exist - process it [00:20:57]requested_item shift.sale_refund.total is exist - process it [00:20:57]requested_item shift.sale_refund.total_cash is exist - process it [00:20:57]requested_item shift.buy.total is exist - process it [00:20:57]requested_item shift.buy.total_cash is exist - process it [00:20:57]produce_requested_data done [00:20:57]produce_requested_data return {"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":111467.05,"shift.sale.total_cash":14869.00,"shift.sale_refund.total":3500.00,"shift.sale_refund.total_cash":3500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:20:57]process_action_free get_value [00:20:57]json_value_free [00:20:57]json_value_free done [00:20:57]process_json_proto returns [00:20:57]Send response to host [00:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":111467.05,"shift.sale.total_cash":14869.00,"shift.sale_refund.total":3500.00,"shift.sale_refund.total_cash":3500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:20:57]free response buf [00:20:57]execute_script done [00:20:57]execute_script returns [00:20:57]free content buf [00:20:57]Sock 7.Close socket [00:20:57]Sock 7.Thread stoped [00:20:57]accept exits with 9 [00:20:57]New connection [00:20:57]New thread 3066842468 created [00:20:57]Thread 3066699108 joined [00:20:57]Waiting for new connection... [00:20:57] Sock 9.Parse request [00:20:57]Sock 9.Check first char [00:20:57]Sock 9.First char is OK [00:20:57]request: POST /json_proto HTTP/1.0 [00:20:57]Method: POST [00:20:57]URL: /json_proto [00:20:57]Method is POST - this is cgi request [00:20:57]url: /json_proto [00:20:57]query_string will be loaded in cgi processing [00:20:57]execute_cgi json_proto POST (null) [00:20:57]execute_cgi path=json_proto method=POST [00:20:57]POST find Content-Length [00:20:57]Host: 172.17.58.67:8080 [00:20:57]Content-Length: 252 [00:20:57]Content-Type: application/json [00:20:57] [00:20:57]POST finish read [00:20:57]Found Content-Length = 252 [00:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:57]execute_script... [00:20:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:57]POST & json_proto [00:20:57]process_json_proto [00:20:57]json parsed OK: [00:20:57]protocol is kg_v1.0 [00:20:57]action value=x_report [00:20:57]process_action x_report [00:20:57]cmd_x_report [00:20:57]MH_GetDate [00:20:57]Write to MH i2c: F0 00 00 6C 16 71 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: F0 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: F0 09 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: F0 09 00 6C 16 00 EB A6 BA 66 94 51 63 64 D7 [00:20:57]GetLastDocTimeStamp 1723507861 [00:20:57]current date 1723508459 [00:20:57]FM_GetShiftState [00:20:57]SAM_PROTO_GetShiftState [00:20:57]wFMCommunicate request_size=4 [00:20:57]MH_SAM_APDU [00:20:57]CAPDU: 80 13 01 00 [00:20:57]Write to MH i2c: E2 08 00 6D 16 80 13 01 00 00 00 00 00 00 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]OFD Sender: No OFD packet to send [00:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 0E 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 0E 00 6D 16 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 ED [00:20:57]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:20:57]wFMCommunicate OK [00:20:57]SAM_PROTO_GetShiftState done [00:20:57]FM_GetShiftState done [00:20:57]KKMCreateXReportDocument [00:20:57]Load OK [00:20:57]Malloc new data [00:20:57]MH_GetDate [00:20:57]Write to MH i2c: F0 00 00 6E 16 73 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: F0 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: F0 09 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: F0 09 00 6E 16 00 EB A6 BA 66 94 51 63 64 D9 [00:20:57]Malloc new data [00:20:57]Malloc new data [00:20:57]wFMCommunicate request_size=4 [00:20:57]MH_SAM_APDU [00:20:57]CAPDU: 80 11 00 00 [00:20:57]Write to MH i2c: E2 08 00 6F 16 80 11 00 00 00 00 00 00 FF [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 17 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 17 00 6F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 54 [00:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:20:57]wFMCommunicate OK [00:20:57]SAM_PROTO_GetFieldsCounters [00:20:57]wFMCommunicate request_size=4 [00:20:57]MH_SAM_APDU [00:20:57]CAPDU: 80 13 00 00 [00:20:57]Write to MH i2c: E2 08 00 70 16 80 13 00 00 00 00 00 00 02 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 62 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 62 00 70 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 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 E0 [00:20: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:57]wFMCommunicate OK [00:20:57]SAM_PROTO_GetFieldsCounters done [00:20:57]Malloc new data [00:20:57]Malloc new data [00:20:57]Malloc new data [00:20:57]KKMCreateXReportDocument OK [00:20:57]KKMSetXReportData OK [00:20:57]KKMPrepareXReportFMData [00:20:57]SAM_PROTO_GetShiftData [00:20:57]wFMCommunicate request_size=4 [00:20:57]MH_SAM_APDU [00:20:57]CAPDU: 80 13 02 00 [00:20:57]Write to MH i2c: E2 08 00 71 16 80 13 02 00 00 00 00 00 05 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 FD 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 FD 00 71 16 00 B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 B9 [00:20:57]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:20:58]wFMCommunicate OK [00:20:58]wFMCommunicate request_size=4 [00:20:58]MH_SAM_APDU [00:20:58]CAPDU: 80 17 00 00 [00:20:58]Write to MH i2c: E2 08 00 72 16 80 17 00 00 00 00 00 00 08 [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:58]Read from MH i2c: E2 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 FD 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 FD 00 72 16 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 ED [00:20:58]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 [00:20:58]wFMCommunicate OK [00:20:58]wFMCommunicate request_size=4 [00:20:58]MH_SAM_APDU [00:20:58]CAPDU: 80 17 00 00 [00:20:58]Write to MH i2c: E2 08 00 73 16 80 17 00 00 00 00 00 00 09 [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:58]Read from MH i2c: E2 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 FD 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 FD 00 73 16 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 31 [00:20:58]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:20:58]wFMCommunicate OK [00:20:58]wFMCommunicate request_size=4 [00:20:58]MH_SAM_APDU [00:20:58]CAPDU: 80 17 00 00 [00:20:58]Write to MH i2c: E2 08 00 74 16 80 17 00 00 00 00 00 00 0A [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:59]Read from MH i2c: E2 [00:20:59]MH_I2C_Read... [00:20:59]Read from MH i2c: E2 FD 00 [00:20:59]MH_I2C_Read... [00:20:59]Read from MH i2c: E2 FD 00 74 16 00 EF 03 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 90 00 82 [00:20:59]RAPDU: EF 03 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 90 00 [00:20:59]wFMCommunicate OK [00:20:59]wFMCommunicate request_size=4 [00:20:59]MH_SAM_APDU [00:20:59]CAPDU: 80 17 00 00 [00:20:59]Write to MH i2c: E2 08 00 75 16 80 17 00 00 00 00 00 00 0B [00:20:59]Write i2c OK [00:20:59]MH_I2C_Read... [00:20:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:20:59]Read from MH i2c: E2 [00:20:59]MH_I2C_Read... [00:20:59]Read from MH i2c: E2 D6 00 [00:20:59]MH_I2C_Read... [00:20:59]Read from MH i2c: E2 D6 00 75 16 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 ED [00:20:59]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59]wFMCommunicate OK [00:20:59]SAM_PROTO_GetShiftData done [00:20:59]1194 (1205) - Ñчетчики итогов Ñмены [00:20:59] 1134 (4) - 76 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [00:20:59] 1129 (156) - Ñчетчики операций «приход» [00:20:59] 1135 (4) - 73 - количеÑтво чеков по признаку раÑчетов [00:20:59] 1201 (3) - 111467.05 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:20:59] 1136 (3) - 14869.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:20:59] 1138 (3) - 96598.05 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:20:59] 1024 (123) - Ñуммы налогов [00:20:59] 1006 (9) - Ñуммы ÐДС [00:20:59] 1010 (1) - 0% - код Ñтавки ÐДС [00:20:59] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:20:59] 1006 (12) - Ñуммы ÐДС [00:20:59] 1010 (1) - 12% - код Ñтавки ÐДС [00:20:59] 1011 (3) - 11837.83 - Ñумма ÐДС по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 0% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (12) - Ñуммы ÐСП [00:20:59] 1014 (1) - 1% - код Ñтавки ÐСП [00:20:59] 1015 (3) - 986.48 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 2% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 3% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 5% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1130 (151) - Ñчетчики операций «возврат прихода» [00:20:59] 1135 (4) - 3 - количеÑтво чеков по признаку раÑчетов [00:20:59] 1201 (3) - 3500.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:20:59] 1136 (3) - 3500.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:20:59] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:20:59] 1024 (121) - Ñуммы налогов [00:20:59] 1006 (9) - Ñуммы ÐДС [00:20:59] 1010 (1) - 0% - код Ñтавки ÐДС [00:20:59] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:20:59] 1006 (11) - Ñуммы ÐДС [00:20:59] 1010 (1) - 12% - код Ñтавки ÐДС [00:20:59] 1011 (2) - 371.80 - Ñумма ÐДС по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 0% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (11) - Ñуммы ÐСП [00:20:59] 1014 (1) - 1% - код Ñтавки ÐСП [00:20:59] 1015 (2) - 30.98 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 2% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 3% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 5% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1131 (141) - Ñчетчики операций «раÑход» [00:20:59] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [00:20:59] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:20:59] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:20:59] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:20:59] 1024 (117) - Ñуммы налогов [00:20:59] 1006 (9) - Ñуммы ÐДС [00:20:59] 1010 (1) - 0% - код Ñтавки ÐДС [00:20:59] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:20:59] 1006 (9) - Ñуммы ÐДС [00:20:59] 1010 (1) - 12% - код Ñтавки ÐДС [00:20:59] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 0% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 1% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 2% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:20:59] 1007 (9) - Ñуммы ÐСП [00:20:59] 1014 (1) - 3% - код Ñтавки ÐСП [00:20:59] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 5% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1132 (141) - Ñчетчики операций «возврат раÑхода» [00:21:00] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [00:21:00] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:21:00] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:21:00] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:21:00] 1024 (117) - Ñуммы налогов [00:21:00] 1006 (9) - Ñуммы ÐДС [00:21:00] 1010 (1) - 0% - код Ñтавки ÐДС [00:21:00] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:21:00] 1006 (9) - Ñуммы ÐДС [00:21:00] 1010 (1) - 12% - код Ñтавки ÐДС [00:21:00] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 0% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 1% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 2% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 3% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 5% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1007 (9) - Ñуммы ÐСП [00:21:00] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:21:00] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:00] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1194 (04AA) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1134 (046E) [00:21:00]Malloc new data [00:21:00]Processing tag 1129 (0469) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1135 (046F) [00:21:00]Malloc new data [00:21:00]Processing tag 1201 (04B1) [00:21:00]Malloc new data [00:21:00]Processing tag 1136 (0470) [00:21:00]Malloc new data [00:21:00]Processing tag 1138 (0472) [00:21:00]Malloc new data [00:21:00]Processing tag 1024 (0400) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]SetTLVBufToDocument err=0 [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1130 (046A) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1135 (046F) [00:21:00]Malloc new data [00:21:00]Processing tag 1201 (04B1) [00:21:00]Malloc new data [00:21:00]Processing tag 1136 (0470) [00:21:00]Malloc new data [00:21:00]Processing tag 1138 (0472) [00:21:00]Malloc new data [00:21:00]Processing tag 1024 (0400) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]SetTLVBufToDocument err=0 [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1131 (046B) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1135 (046F) [00:21:00]Malloc new data [00:21:00]Processing tag 1201 (04B1) [00:21:00]Malloc new data [00:21:00]Processing tag 1136 (0470) [00:21:00]Malloc new data [00:21:00]Processing tag 1138 (0472) [00:21:00]Malloc new data [00:21:00]Processing tag 1024 (0400) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]SetTLVBufToDocument err=0 [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1132 (046C) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1135 (046F) [00:21:00]Malloc new data [00:21:00]Processing tag 1201 (04B1) [00:21:00]Malloc new data [00:21:00]Processing tag 1136 (0470) [00:21:00]Malloc new data [00:21:00]Processing tag 1138 (0472) [00:21:00]Malloc new data [00:21:00]Processing tag 1024 (0400) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]SetTLVBufToDocument err=0 [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1133 (046D) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Malloc new data [00:21:00]SAM_PROTO_GetFMData [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 13 03 00 [00:21:00]Write to MH i2c: E2 08 00 76 16 80 13 03 00 00 00 00 00 0B [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:01]Read from MH i2c: E2 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 FD 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 FD 00 76 16 00 C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 EC [00:21:01]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 [00:21:01]wFMCommunicate OK [00:21:01]wFMCommunicate request_size=4 [00:21:01]MH_SAM_APDU [00:21:01]CAPDU: 80 17 00 00 [00:21:01]Write to MH i2c: E2 08 00 77 16 80 17 00 00 00 00 00 00 0D [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 FD 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 FD 00 77 16 00 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [00:21:02]RAPDU: 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:02]wFMCommunicate OK [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 17 00 00 [00:21:02]Write to MH i2c: E2 08 00 78 16 80 17 00 00 00 00 00 00 0E [00:21:02]OFD Sender: No OFD packet to send [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 FD 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 FD 00 78 16 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E6 [00:21:02]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:21:02]wFMCommunicate OK [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 17 00 00 [00:21:02]Write to MH i2c: E2 08 00 79 16 80 17 00 00 00 00 00 00 0F [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 79 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 87 [00:21: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 [00:21:03]wFMCommunicate OK [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 17 00 00 [00:21:03]Write to MH i2c: E2 08 00 7A 16 80 17 00 00 00 00 00 00 10 [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 E5 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 E5 00 7A 16 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 F4 [00:21: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 [00:21:03]wFMCommunicate OK [00:21:03]SAM_PROTO_GetFMData done [00:21:03]FM_GetFMData:85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:04]oper:6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:21:04]total:56 6C 7E C9 01 [00:21:04]Malloc new data [00:21:04]oper:6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:04]total:E0 DE 54 14 [00:21:04]Malloc new data [00:21:04]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:21:04]total: [00:21:04]Malloc new data [00:21:04]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:21:04]total: [00:21:04]Malloc new data [00:21:04]KKMPrepareXReportFMData err=0 [00:21:04]Ð¥ отчет ИÐÐ: 02508201610067 КаÑÑир: Мирбек к Ð. 13.08.2024 00:20 Смена: 266 РÐМ: 0000000000090913 ЗÐМ: 0300000140 СÐО: Общий режим Ð’Ñего чеков: 76 ИТОГИ ПРИХОД Чеков: 73 Общий итог: 111467.05 Итого наличными: 14869.00 Итого безнал.: 96598.05 ÐДС 0% : 0.00 ÐДС 12% : 11837.83 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 986.48 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 3 Общий итог: 3500.00 Итого наличными: 3500.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 371.80 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 30.98 ИТОГИ РÐСХОД Чеков: 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 Ðал. в каÑÑе: 11369.00 ÐС Приход: 76754729.82 ÐС Возвр.Прихода: 3411064.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФМ: 0000000000874915 [00:21:04]StoreToDocumentArchive [00:21:04]MH_GetDate [00:21:04]Write to MH i2c: F0 00 00 7B 16 80 [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: F0 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: F0 09 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: F0 09 00 7B 16 00 F3 A6 BA 66 94 51 63 64 EE [00:21:04]shift 266 fd 1723508467 [00:21:04]Create dir for shift 0266 [00:21:04]save to /storage/0266/doc_1723508467 [00:21:04]save last doc name /storage/0266/doc_1723508467 to /storage/kkm_last_doc_name [00:21:04]save OK [00:21:04]Clear old archive folders... [00:21:04]NVStorageSaveData kkm_last_timestamp [00:21:04]File name is /storage/kkm_last_timestamp [00:21:04]Write 4 bytes [00:21:04]NVStorageSaveData done [00:21:04]ExternCall_PrintAddStr [00:21:04]wPrintStart [00:21:04]Write to MH i2c: 01 00 00 7C 16 92 [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: 01 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: 01 07 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: 01 07 00 7C 16 00 00 00 00 00 FF 0F A7 [00:21:04]RasterBufferAndPrint [00:21:04]line Ð¥ отчет [00:21:04]line ИÐÐ: 02508201610067 [00:21:04]line КаÑÑир: Мирбек к Ð. [00:21:04]line 13.08.2024 00:20 [00:21:04]line Смена: 266 [00:21:04]line РÐМ: 0000000000090913 [00:21:04]line ЗÐМ: 0300000140 [00:21:04]line СÐО: Общий режим [00:21:04]line Ð’Ñего чеков: 76 [00:21:04]line ИТОГИ ПРИХОД [00:21:04]line Чеков: 73 [00:21:04]line Общий итог: 111467.05 [00:21:04]line Итого наличными: 14869.00 [00:21:04]line Итого безнал.: 96598.05 [00:21:04]line ÐДС 0% : 0.00 [00:21:04]line ÐДС 12% : 11837.83 [00:21:04]line ÐСП 0% : 0.00 [00:21:04]line ÐСП 1,50% : 0.00 [00:21:04]line ÐСП 0,50% : 0.00 [00:21:04]line ÐСП 5% : 0.00 [00:21:04]line ÐСП 3% : 0.00 [00:21:04]line ÐСП 2% : 0.00 [00:21:04]line ÐСП 1% : 986.48 [00:21:04]line ИТОГИ ВОЗВРÐТ ПРИХОДР[00:21:04]line Чеков: 3 [00:21:04]line Общий итог: 3500.00 [00:21:04]line Итого наличными: 3500.00 [00:21:04]line Итого безнал.: 0.00 [00:21:04]line ÐДС 0% : 0.00 [00:21:04]line ÐДС 12% : 371.80 [00:21:04]line ÐСП 0% : 0.00 [00:21:04]line ÐСП 1,50% : 0.00 [00:21:04]line ÐСП 0,50% : 0.00 [00:21:04]line ÐСП 5% : 0.00 [00:21:04]line ÐСП 3% : 0.00 [00:21:04]line ÐСП 2% : 0.00 [00:21:04]line ÐСП 1% : 30.98 [00:21:04]line ИТОГИ РÐСХОД [00:21:04]line Чеков: 0 [00:21:04]line Общий итог: 0.00 [00:21:04]line Итого наличными: 0.00 [00:21:04]line Итого безнал.: 0.00 [00:21:04]line ÐДС 0% : 0.00 [00:21:04]line ÐДС 12% : 0.00 [00:21:04]line ÐСП 0% : 0.00 [00:21:04]line ÐСП 1,50% : 0.00 [00:21:04]line ÐСП 0,50% : 0.00 [00:21:04]line ÐСП 5% : 0.00 [00:21:04]line ÐСП 3% : 0.00 [00:21:04]line ÐСП 2% : 0.00 [00:21:04]line ÐСП 1% : 0.00 [00:21:04]line ИТОГИ ВОЗВРÐТ РÐСХОДР[00:21:04]line Чеков: 0 [00:21:04]line Общий итог: 0.00 [00:21:04]line Итого наличными: 0.00 [00:21:04]line Итого безнал.: 0.00 [00:21:04]line ÐДС 0% : 0.00 [00:21:04]line ÐДС 12% : 0.00 [00:21:04]line ÐСП 0% : 0.00 [00:21:04]line ÐСП 1,50% : 0.00 [00:21:04]line ÐСП 0,50% : 0.00 [00:21:04]line ÐСП 5% : 0.00 [00:21:04]line ÐСП 3% : 0.00 [00:21:04]line ÐСП 2% : 0.00 [00:21:04]line ÐСП 1% : 0.00 [00:21:04]line Сумма внеÑений: 0.00 [00:21:04]line Сумма выплат: 0.00 [00:21:04]line Ðал. в каÑÑе: 11369.00 [00:21:04]line ÐС Приход: 76754729.82 [00:21:04]line ÐС Возвр.Прихода: 3411064.00 [00:21:04]line ÐС РаÑход: 0.00 [00:21:04]line ÐС Возвр.РаÑхода: 0.00 [00:21:04]line ФМ: 0000000000874915 [00:21:04]written 0, free lines is 4095 [00:21:05]Write to MH i2c: 01 00 00 C7 16 DD [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: 01 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: 01 07 00 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: 01 07 00 C7 16 00 00 00 00 00 FA 0A E8 [00:21:05]RasterBufferAndPrint [00:21:05]line [00:21:05]line [00:21:05]line [00:21:05]line [00:21:05]line [00:21:05]written 0, free lines is 2846 [00:21:05]MH_Cut [00:21:05]Write to MH i2c: D1 01 00 CE 16 01 B6 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: D1 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: D1 01 00 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: D1 01 00 CE 16 00 B5 [00:21:05]Write to MH i2c: 01 00 00 CF 16 E5 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:06]*** Cut start [00:21:06]*** Purtial cut [00:21:06]*** CUTSNS_PIN = 0 [00:21:06]*** Stage 1: CUTSNS_PIN = 1 [00:21:07]OFD Sender: No OFD packet to send [00:21:08]Read from MH i2c: 01 [00:21:08]MH_I2C_Read... [00:21:08]*** Stop cut motor [00:21:08]*** Cut end [00:21:08]Read from MH i2c: 01 07 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: 01 07 00 CF 16 00 00 00 00 00 FF 0F FA [00:21:08]process_action x_report done [00:21:08]requested_data is exist [00:21:08]produce_requested_data [00:21:08]requested_item fd.num is exist - process it [00:21:08]SAM_PROTO_GetFieldsCounters [00:21:08]wFMCommunicate request_size=4 [00:21:08]MH_SAM_APDU [00:21:08]CAPDU: 80 13 00 00 [00:21:08]Write to MH i2c: E2 08 00 D0 16 80 13 00 00 00 00 00 00 62 [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:08]*** FLAG_PRN_KEY set [00:21:08]int [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 62 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 62 00 D0 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 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 40 [00:21: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 01 *** FLAG_PRN_KEY reset [00:21:09]00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:09]wFMCommunicate OK [00:21:09]SAM_PROTO_GetFieldsCounters done [00:21:09]requested_item shift.num is exist - process it [00:21:09]requested_item shift.opened is exist - process it [00:21:09]req_shift_opened [00:21:09]FM_GetShiftState [00:21:09]SAM_PROTO_GetShiftState [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 13 01 00 [00:21:09]Write to MH i2c: 01 00 00 D1 16 E7 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 D1 16 00 00 00 00 00 FF 0F FC [00:21:09]state=0 [00:21:09]Write to MH i2c: E2 08 00 D2 16 80 13 01 00 00 00 00 00 65 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]int [00:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:09]*** FLAG_PRN_KEY set [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 0E 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 0E 00 D2 16 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 52 [00:21:09]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:21:09]wFMCommunicate OK [00:21:09]SAM_PROTO_GetShiftState done [00:21:09]FM_GetShiftState done [00:21:09]req_shift_opened done [00:21:09]requested_item shift.open_date is exist - process it [00:21:09]req_shift_open_date [00:21:09]req_shift_open_date done [00:21:09]Write to MH i2c: produce_requested_data done [00:21:09]01 produce_requested_data return {"fd.num":70644,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [00:21:09]00 process_action_free x_report [00:21:09]00 D3 json_value_free [00:21:09]16 json_value_free done [00:21:09]E9 process_json_proto returns [00:21:09] [00:21:09]Send response to host [00:21:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70644,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [00:21:09]free response buf [00:21:09]Write i2c OK [00:21:09]execute_script done [00:21:09]MH_I2C_Read... [00:21:09]execute_script returns [00:21:09]Read from MH i2c: free content buf [00:21:09]01 Sock 9.Close socket [00:21:09] [00:21:09]Sock 9.Thread stoped [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 D3 16 00 08 00 00 00 FF 0F 06 [00:21:09]state=0 [00:21:09]Key pressed [00:21:09]Feed [00:21:09]Write to MH i2c: D8 00 00 D4 16 C1 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: D8 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: D8 01 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: D8 01 00 D4 16 00 C2 [00:21:09]int line is 0 - check status [00:21:09]Write to MH i2c: 01 00 00 D5 16 EB [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 D5 16 00 48 00 00 00 3C 00 76 [00:21:09]state=2 [00:21:09]Key pressed [00:21:09]int [00:21:09]Write to MH i2c: 01 00 00 D6 16 EC [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 D6 16 00 48 00 00 00 3C 00 77 [00:21:09]state=2 [00:21:09]Key pressed [00:21:09]int [00:21:09]Write to MH i2c: 01 00 00 D7 16 ED [00:21:09]*** FLAG_PRN_KEY reset [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 D7 16 00 00 00 00 00 F8 0F FB [00:21:09]state=2 [00:21:09]Stop feed [00:21:09]int [00:21:09]Write to MH i2c: 01 00 00 D8 16 EE [00:21:09]*** FLAG_PRN_KEY set [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 D8 16 00 08 00 00 00 FF 0F 0B [00:21:09]state=0 [00:21:09]Key pressed [00:21:09]Feed [00:21:09]Write to MH i2c: D8 00 00 D9 16 C6 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: D8 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: D8 01 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: D8 01 00 D9 16 00 C7 [00:21:09]int line is 0 - check status [00:21:09]Write to MH i2c: 01 00 00 DA 16 F0 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 DA 16 00 48 00 00 00 3C 00 7B [00:21:09]state=2 [00:21:09]Key pressed [00:21:09]int [00:21:09]Write to MH i2c: 01 00 00 DB 16 F1 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 DB 16 00 48 00 00 00 3C 00 7C [00:21:09]state=2 [00:21:09]Key pressed [00:21:09]int [00:21:09]Write to MH i2c: 01 00 00 DC 16 F2 [00:21:09]*** FLAG_PRN_KEY reset [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 DC 16 00 00 00 00 00 FE 0F 06 [00:21:09]state=2 [00:21:09]Stop feed [00:21:09]int [00:21:09]Write to MH i2c: 01 00 00 DD 16 F3 [00:21:09]*** FLAG_PRN_KEY set [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 DD 16 00 08 00 00 00 FF 0F 10 [00:21:10]state=0 [00:21:10]Key pressed [00:21:10]Feed [00:21:10]Write to MH i2c: D8 00 00 DE 16 CB [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: D8 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: D8 01 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: D8 01 00 DE 16 00 CC [00:21:10]int line is 0 - check status [00:21:10]Write to MH i2c: 01 00 00 DF 16 F5 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 07 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 07 00 DF 16 00 48 00 00 00 3D 00 81 [00:21:10]state=2 [00:21:10]Key pressed [00:21:10]int [00:21:10]Write to MH i2c: 01 00 00 E0 16 F6 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 07 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 07 00 E0 16 00 48 00 00 00 3C 00 81 [00:21:10]state=2 [00:21:10]Key pressed [00:21:10]int [00:21:10]Write to MH i2c: 01 00 00 E1 16 F7 [00:21:10]*** FLAG_PRN_KEY reset [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 07 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: 01 07 00 E1 16 00 00 00 00 00 FD 0F 0A [00:21:10]state=2 [00:21:10]Stop feed [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:17]accept exits with 7 [00:21:17]New connection [00:21:17]New thread 3066699108 created [00:21:17]Thread 3066842468 joined [00:21:17]Waiting for new connection... [00:21:17] Sock 7.Parse request [00:21:17]Sock 7.Check first char [00:21:17]Sock 7.First char is OK [00:21:17]request: POST /json_proto HTTP/1.0 [00:21:17]Method: POST [00:21:17]URL: /json_proto [00:21:17]Method is POST - this is cgi request [00:21:17]url: /json_proto [00:21:17]query_string will be loaded in cgi processing [00:21:17]execute_cgi json_proto POST (null) [00:21:17]execute_cgi path=json_proto method=POST [00:21:17]POST find Content-Length [00:21:17]Host: 172.17.58.67:8080 [00:21:17]Content-Length: 215 [00:21:17]Content-Type: application/json [00:21:17] [00:21:17]POST finish read [00:21:17]Found Content-Length = 215 [00:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:17]execute_script... [00:21:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:17]POST & json_proto [00:21:17]process_json_proto [00:21:17]json parsed OK: [00:21:17]protocol is kg_v1.0 [00:21:17]action value=get_value [00:21:17]process_action get_value [00:21:17]cmd_get_value [00:21:17]process_action get_value done [00:21:17]requested_data is exist [00:21:17]produce_requested_data [00:21:17]requested_item kkm.sn is exist - process it [00:21:17]requested_item kkm.ver is exist - process it [00:21:17]requested_item fm.sn is exist - process it [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 11 00 00 [00:21:17]Write to MH i2c: E2 08 00 E2 16 80 11 00 00 00 00 00 00 72 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 17 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 17 00 E2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 C7 [00:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:21:17]wFMCommunicate OK [00:21:17]requested_item fd.num is exist - process it [00:21:17]SAM_PROTO_GetFieldsCounters [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 13 00 00 [00:21:17]Write to MH i2c: E2 08 00 E3 16 80 13 00 00 00 00 00 00 75 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 62 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 62 00 E3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 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 53 [00:21:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F4 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:18]wFMCommunicate OK [00:21:18]SAM_PROTO_GetFieldsCounters done [00:21:18]requested_item shift.num is exist - process it [00:21:18]requested_item shift.opened is exist - process it [00:21:18]req_shift_opened [00:21:18]FM_GetShiftState [00:21:18]SAM_PROTO_GetShiftState [00:21:18]wFMCommunicate request_size=4 [00:21:18]MH_SAM_APDU [00:21:18]CAPDU: 80 13 01 00 [00:21:18]Write to MH i2c: E2 08 00 E4 16 80 13 01 00 00 00 00 00 77 [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 0E 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 0E 00 E4 16 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 64 [00:21:18]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:21:18]wFMCommunicate OK [00:21:18]SAM_PROTO_GetShiftState done [00:21:18]FM_GetShiftState done [00:21:18]req_shift_opened done [00:21:18]requested_item shift.open_date is exist - process it [00:21:18]req_shift_open_date [00:21:18]req_shift_open_date done [00:21:18]produce_requested_data done [00:21:18]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70644,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336} [00:21:18]process_action_free get_value [00:21:18]json_value_free [00:21:18]json_value_free done [00:21:18]process_json_proto returns [00:21:18]Send response to host [00:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70644,"shift.num":465,"shift.opened":1,"shift.open_date":1723423336}}} [00:21:18]free response buf [00:21:18]execute_script done [00:21:18]execute_script returns [00:21:18]free content buf [00:21:18]Sock 7.Close socket [00:21:18]Sock 7.Thread stoped [00:21:18]accept exits with 10 [00:21:18]New connection [00:21:18]New thread 3066842468 created [00:21:18]Thread 3066699108 joined [00:21:18]Waiting for new connection... [00:21:18] Sock 10.Parse request [00:21:18]Sock 10.Check first char [00:21:18]Sock 10.First char is OK [00:21:18]request: POST /json_proto HTTP/1.0 [00:21:18]Method: POST [00:21:18]URL: /json_proto [00:21:18]Method is POST - this is cgi request [00:21:18]url: /json_proto [00:21:18]query_string will be loaded in cgi processing [00:21:18]execute_cgi json_proto POST (null) [00:21:18]execute_cgi path=json_proto method=POST [00:21:18]POST find Content-Length [00:21:18]Host: 172.17.58.67:8080 [00:21:18]Content-Length: 331 [00:21:18]Content-Type: application/json [00:21:18] [00:21:18]POST finish read [00:21:18]Found Content-Length = 331 [00:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:18]execute_script... [00:21:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:18]POST & json_proto [00:21:18]process_json_proto [00:21:18]json parsed OK: [00:21:18]protocol is kg_v1.0 [00:21:18]action value=get_value [00:21:18]process_action get_value [00:21:18]cmd_get_value [00:21:18]process_action get_value done [00:21:18]requested_data is exist [00:21:18]produce_requested_data [00:21:18]requested_item fm.sale.total is exist - process it [00:21:18]SAM_PROTO_GetFMData [00:21:18]wFMCommunicate request_size=4 [00:21:18]MH_SAM_APDU [00:21:18]CAPDU: 80 13 03 00 [00:21:18]Write to MH i2c: E2 08 00 E5 16 80 13 03 00 00 00 00 00 7A [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 E5 16 00 C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 5B [00:21:18]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 [00:21:18]wFMCommunicate OK [00:21:18]wFMCommunicate request_size=4 [00:21:18]MH_SAM_APDU [00:21:18]CAPDU: 80 17 00 00 [00:21:18]Write to MH i2c: E2 08 00 E6 16 80 17 00 00 00 00 00 00 7C [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:19]Read from MH i2c: E2 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 E6 16 00 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [00:21:19]RAPDU: 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:19]wFMCommunicate OK [00:21:19]wFMCommunicate request_size=4 [00:21:19]MH_SAM_APDU [00:21:19]CAPDU: 80 17 00 00 [00:21:19]Write to MH i2c: E2 08 00 E7 16 80 17 00 00 00 00 00 00 7D [00:21:19]Write i2c OK [00:21:19]MH_I2C_Read... [00:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:19]Read from MH i2c: E2 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 E7 16 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 55 [00:21:19]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:21:19]wFMCommunicate OK [00:21:19]wFMCommunicate request_size=4 [00:21:19]MH_SAM_APDU [00:21:19]CAPDU: 80 17 00 00 [00:21:19]Write to MH i2c: E2 08 00 E8 16 80 17 00 00 00 00 00 00 7E [00:21:19]Write i2c OK [00:21:19]MH_I2C_Read... [00:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:20]Read from MH i2c: E2 [00:21:20]MH_I2C_Read... [00:21:20]Read from MH i2c: E2 FD 00 [00:21:20]MH_I2C_Read... [00:21:20]Read from MH i2c: E2 FD 00 E8 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 F6 [00:21:20]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:21:20]wFMCommunicate OK [00:21:20]wFMCommunicate request_size=4 [00:21:20]MH_SAM_APDU [00:21:20]CAPDU: 80 17 00 00 [00:21:20]Write to MH i2c: E2 08 00 E9 16 80 17 00 00 00 00 00 00 7F [00:21:20]Write i2c OK [00:21:20]MH_I2C_Read... [00:21:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:21:20]Read from MH i2c: E2 [00:21:20]MH_I2C_Read... [00:21:20]Read from MH i2c: E2 E5 00 [00:21:20]MH_I2C_Read... [00:21:20]Read from MH i2c: E2 E5 00 E9 16 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 63 [00:21:20]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:21:20]wFMCommunicate OK [00:21:20]SAM_PROTO_GetFMData done [00:21:20]requested_item fm.sale_refund.total is exist - process it [00:21:20]requested_item fm.buy.total is exist - process it [00:21:20]requested_item shift.sale.total is exist - process it [00:21:20]SAM_PROTO_GetShiftData [00:21:20]wFMCommunicate request_size=4 [00:21:20]MH_SAM_APDU [00:21:20]CAPDU: 80 13 02 00 [00:21:20]Write to MH i2c: E2 08 00 EA 16 80 13 02 00 00 00 00 00 7E [00:21:20]Write i2c OK [00:21:20]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 FD 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 FD 00 EA 16 00 B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 32 [00:21:21]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:21:21]wFMCommunicate OK [00:21:21]wFMCommunicate request_size=4 [00:21:21]MH_SAM_APDU [00:21:21]CAPDU: 80 17 00 00 [00:21:21]Write to MH i2c: E2 08 00 EB 16 80 17 00 00 00 00 00 00 81 [00:21:21]Write i2c OK [00:21:21]MH_I2C_Read... [00:21:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:21]Read from MH i2c: E2 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 FD 00 [00:21:21]MH_I2C_Read... [00:21:21]Read from MH i2c: E2 FD 00 EB 16 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 66 [00:21:22]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 [00:21:22]wFMCommunicate OK [00:21:22]wFMCommunicate request_size=4 [00:21:22]MH_SAM_APDU [00:21:22]CAPDU: 80 17 00 00 [00:21:22]Write to MH i2c: E2 08 00 EC 16 80 17 00 00 00 00 00 00 82 [00:21:22]Write i2c OK [00:21:22]MH_I2C_Read... [00:21:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:22]Read from MH i2c: E2 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 [00:21:22]MH_I2C_Read... [00:21:22]Read from MH i2c: E2 FD 00 EC 16 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [00:21:22]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:23]wFMCommunicate OK [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 17 00 OFD Sender: No OFD packet to send [00:21:23]00 [00:21:23]Write to MH i2c: E2 08 00 ED 16 80 17 00 00 00 00 00 00 83 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:23]Read from MH i2c: E2 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 FD 00 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 FD 00 ED 16 00 EF 03 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 90 00 FB [00:21:23]RAPDU: EF 03 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 90 00 [00:21:23]wFMCommunicate OK [00:21:23]wFMCommunicate request_size=4 [00:21:23]MH_SAM_APDU [00:21:23]CAPDU: 80 17 00 00 [00:21:23]Write to MH i2c: E2 08 00 EE 16 80 17 00 00 00 00 00 00 84 [00:21:23]Write i2c OK [00:21:23]MH_I2C_Read... [00:21:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:21:23]Read from MH i2c: E2 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 D6 00 [00:21:23]MH_I2C_Read... [00:21:23]Read from MH i2c: E2 D6 00 EE 16 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 [00:21:24]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:24]wFMCommunicate OK [00:21:24]SAM_PROTO_GetShiftData done [00:21:24]requested_item shift.sale.total_cash is exist - process it [00:21:24]requested_item shift.sale_refund.total is exist - process it [00:21:24]requested_item shift.sale_refund.total_cash is exist - process it [00:21:24]requested_item shift.buy.total is exist - process it [00:21:24]requested_item shift.buy.total_cash is exist - process it [00:21:24]produce_requested_data done [00:21:24]produce_requested_data return {"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":111467.05,"shift.sale.total_cash":14869.00,"shift.sale_refund.total":3500.00,"shift.sale_refund.total_cash":3500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:21:24]process_action_free get_value [00:21:24]json_value_free [00:21:24]json_value_free done [00:21:24]process_json_proto returns [00:21:24]Send response to host [00:21:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":111467.05,"shift.sale.total_cash":14869.00,"shift.sale_refund.total":3500.00,"shift.sale_refund.total_cash":3500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:21:24]free response buf [00:21:24]execute_script done [00:21:24]execute_script returns [00:21:24]free content buf [00:21:24]Sock 10.Close socket [00:21:24]Sock 10.Thread stoped [00:21:24]accept exits with 7 [00:21:24]New connection [00:21:24]New thread 3066699108 created [00:21:24]Thread 3066842468 joined [00:21:24]Waiting for new connection... [00:21:24] Sock 7.Parse request [00:21:24]Sock 7.Check first char [00:21:24]Sock 7.First char is OK [00:21:24]request: POST /json_proto HTTP/1.0 [00:21:24]Method: POST [00:21:24]URL: /json_proto [00:21:24]Method is POST - this is cgi request [00:21:24]url: /json_proto [00:21:24]query_string will be loaded in cgi processing [00:21:24]execute_cgi json_proto POST (null) [00:21:24]execute_cgi path=json_proto method=POST [00:21:24]POST find Content-Length [00:21:24]Host: 172.17.58.67:8080 [00:21:24]Content-Length: 331 [00:21:24]Content-Type: application/json [00:21:24] [00:21:24]POST finish read [00:21:24]Found Content-Length = 331 [00:21: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:21:24]execute_script... [00:21: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:21:24]POST & json_proto [00:21:24]process_json_proto [00:21:24]json parsed OK: [00:21:24]protocol is kg_v1.0 [00:21:24]action value=get_value [00:21:24]process_action get_value [00:21:24]cmd_get_value [00:21:24]process_action get_value done [00:21:24]requested_data is exist [00:21:24]produce_requested_data [00:21:24]requested_item fm.sale.total is exist - process it [00:21:24]SAM_PROTO_GetFMData [00:21:24]wFMCommunicate request_size=4 [00:21:24]MH_SAM_APDU [00:21:24]CAPDU: 80 13 03 00 [00:21:24]Write to MH i2c: E2 08 00 EF 16 80 13 03 00 00 00 00 00 84 [00:21:24]Write i2c OK [00:21:24]MH_I2C_Read... [00:21:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:24]Read from MH i2c: E2 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 [00:21:24]MH_I2C_Read... [00:21:24]Read from MH i2c: E2 FD 00 EF 16 00 C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 65 [00:21:24]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 [00:21:25]wFMCommunicate OK [00:21:25]wFMCommunicate request_size=4 [00:21:25]MH_SAM_APDU [00:21:25]CAPDU: 80 17 00 00 [00:21:25]Write to MH i2c: E2 08 00 F0 16 80 17 00 00 00 00 00 00 86 [00:21:25]Write i2c OK [00:21:25]MH_I2C_Read... [00:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:25]Read from MH i2c: E2 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 F0 16 00 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 [00:21:25]RAPDU: 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:25]wFMCommunicate OK [00:21:25]wFMCommunicate request_size=4 [00:21:25]MH_SAM_APDU [00:21:25]CAPDU: 80 17 00 00 [00:21:25]Write to MH i2c: E2 08 00 F1 16 80 17 00 00 00 00 00 00 87 [00:21:25]Write i2c OK [00:21:25]MH_I2C_Read... [00:21:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:25]Read from MH i2c: E2 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 [00:21:25]MH_I2C_Read... [00:21:25]Read from MH i2c: E2 FD 00 F1 16 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5F [00:21: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:21:26]wFMCommunicate OK [00:21:26]wFMCommunicate request_size=4 [00:21:26]MH_SAM_APDU [00:21:26]CAPDU: 80 17 00 00 [00:21:26]Write to MH i2c: E2 08 00 F2 16 80 17 00 00 00 00 00 00 88 [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:26]Read from MH i2c: E2 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 [00:21:26]MH_I2C_Read... [00:21:26]Read from MH i2c: E2 FD 00 F2 16 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 00 [00:21:26]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:21:26]wFMCommunicate OK [00:21:26]wFMCommunicate request_size=4 [00:21:26]MH_SAM_APDU [00:21:26]CAPDU: 80 17 00 00 [00:21:26]Write to MH i2c: E2 08 00 F3 16 80 17 00 00 00 00 00 00 89 [00:21:26]Write i2c OK [00:21:26]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 E5 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 E5 00 F3 16 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 6D [00:21: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:21:27]wFMCommunicate OK [00:21:27]SAM_PROTO_GetFMData done [00:21:27]requested_item fm.sale_refund.total is exist - process it [00:21:27]requested_item fm.buy.total is exist - process it [00:21:27]requested_item shift.sale.total is exist - process it [00:21:27]SAM_PROTO_GetShiftData [00:21:27]wFMCommunicate request_size=4 [00:21:27]MH_SAM_APDU [00:21:27]CAPDU: 80 13 02 00 [00:21:27]Write to MH i2c: E2 08 00 F4 16 80 13 02 00 00 00 00 00 88 [00:21:27]Write i2c OK [00:21:27]MH_I2C_Read... [00:21:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:27]Read from MH i2c: E2 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 FD 00 [00:21:27]MH_I2C_Read... [00:21:27]Read from MH i2c: E2 FD 00 F4 16 00 B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 3C [00:21:28]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:21:28]wFMCommunicate OK [00:21:28]wFMCommunicate request_size=4 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 80 17 00 00 [00:21:28]Write to MH i2c: E2 08 00 F5 16 80 17 00 00 00 00 00 00 8B [00:21:28]OFD Sender: No OFD packet to send [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:28]Read from MH i2c: E2 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 FD 00 [00:21:28]MH_I2C_Read... [00:21:28]Read from MH i2c: E2 FD 00 F5 16 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 70 [00:21:28]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 [00:21:28]wFMCommunicate OK [00:21:28]wFMCommunicate request_size=4 [00:21:28]MH_SAM_APDU [00:21:28]CAPDU: 80 17 00 00 [00:21:28]Write to MH i2c: E2 08 00 F6 16 80 17 00 00 00 00 00 00 8C [00:21:28]Write i2c OK [00:21:28]MH_I2C_Read... [00:21:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:29]Read from MH i2c: E2 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 FD 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 FD 00 F6 16 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B4 [00:21:29]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:29]wFMCommunicate OK [00:21:29]wFMCommunicate request_size=4 [00:21:29]MH_SAM_APDU [00:21:29]CAPDU: 80 17 00 00 [00:21:29]Write to MH i2c: E2 08 00 F7 16 80 17 00 00 00 00 00 00 8D [00:21:29]Write i2c OK [00:21:29]MH_I2C_Read... [00:21:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:29]Read from MH i2c: E2 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 FD 00 [00:21:29]MH_I2C_Read... [00:21:29]Read from MH i2c: E2 FD 00 F7 16 00 EF 03 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 90 00 05 [00:21:29]RAPDU: EF 03 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 90 00 [00:21:30]wFMCommunicate OK [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 17 00 00 [00:21:30]Write to MH i2c: E2 08 00 F8 16 80 17 00 00 00 00 00 00 8E [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 D6 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 D6 00 F8 16 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 [00:21:30]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:30]wFMCommunicate OK [00:21:30]SAM_PROTO_GetShiftData done [00:21:30]requested_item shift.sale.total_cash is exist - process it [00:21:30]requested_item shift.sale_refund.total is exist - process it [00:21:30]requested_item shift.sale_refund.total_cash is exist - process it [00:21:30]requested_item shift.buy.total is exist - process it [00:21:30]requested_item shift.buy.total_cash is exist - process it [00:21:30]produce_requested_data done [00:21:30]produce_requested_data return {"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":111467.05,"shift.sale.total_cash":14869.00,"shift.sale_refund.total":3500.00,"shift.sale_refund.total_cash":3500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:21:30]process_action_free get_value [00:21:30]json_value_free [00:21:30]json_value_free done [00:21:30]process_json_proto returns [00:21:30]Send response to host [00:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":111467.05,"shift.sale.total_cash":14869.00,"shift.sale_refund.total":3500.00,"shift.sale_refund.total_cash":3500.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:21:30]free response buf [00:21:30]execute_script done [00:21:30]execute_script returns [00:21:30]free content buf [00:21:30]Sock 7.Close socket [00:21:30]Sock 7.Thread stoped [00:21:30]accept exits with 9 [00:21:30]New connection [00:21:30]New thread 3066842468 created [00:21:30]Thread 3066699108 joined [00:21:30]Waiting for new connection... [00:21:30] Sock 9.Parse request [00:21:30]Sock 9.Check first char [00:21:30]Sock 9.First char is OK [00:21:30]request: POST /json_proto HTTP/1.0 [00:21:30]Method: POST [00:21:30]URL: /json_proto [00:21:30]Method is POST - this is cgi request [00:21:30]url: /json_proto [00:21:30]query_string will be loaded in cgi processing [00:21:30]execute_cgi json_proto POST (null) [00:21:30]execute_cgi path=json_proto method=POST [00:21:30]POST find Content-Length [00:21:30]Host: 172.17.58.67:8080 [00:21:30]Content-Length: 255 [00:21:30]Content-Type: application/json [00:21:30] [00:21:30]POST finish read [00:21:30]Found Content-Length = 255 [00:21:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:30]execute_script... [00:21:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0438\u0440\u0431\u0435\u043A \u043A \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:30]POST & json_proto [00:21:30]process_json_proto [00:21:30]json parsed OK: [00:21:30]protocol is kg_v1.0 [00:21:30]action value=close_shift [00:21:30]process_action close_shift [00:21:30]cmd_close_shift [00:21:30]MH_GetDate [00:21:30]Write to MH i2c: F0 00 00 F9 16 FE [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: F0 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: F0 09 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: F0 09 00 F9 16 00 0D A7 BA 66 94 51 63 64 87 [00:21:30]GetLastDocTimeStamp 1723508459 [00:21:30]current date 1723508493 [00:21:30]FM_GetShiftState [00:21:30]SAM_PROTO_GetShiftState [00:21:30]wFMCommunicate request_size=4 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 13 01 00 [00:21:30]Write to MH i2c: E2 08 00 FA 16 80 13 01 00 00 00 00 00 8D [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:30]Read from MH i2c: E2 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 0E 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: E2 0E 00 FA 16 00 09 00 01 68 5A B9 66 00 00 00 00 90 00 7A [00:21:30]RAPDU: 09 00 01 68 5A B9 66 00 00 00 00 90 00 [00:21:30]wFMCommunicate OK [00:21:30]SAM_PROTO_GetShiftState done [00:21:30]FM_GetShiftState done [00:21:30]KKMCreateCloseShiftDocument [00:21:30]Load OK [00:21:30]Malloc new data [00:21:30]MH_GetDate [00:21:30]Write to MH i2c: F0 00 00 FB 16 00 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: F0 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: F0 09 00 [00:21:30]MH_I2C_Read... [00:21:30]Read from MH i2c: F0 09 00 FB 16 00 0D A7 BA 66 94 51 63 64 89 [00:21:30]Malloc new data [00:21:30]Malloc new data [00:21:30]Malloc new data [00:21:30]Malloc new data [00:21:30]KKMCreateCloseShiftDocument OK [00:21:30]KKMSetCloseShiftData OK [00:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=70 [00:21:30]tlvbuf is 01209280 [00:21:30]KKMLoadAndSignCloseShiftData [00:21:30]SAM_PROTO_ProcessDocument [00:21:30]wFMCommunicate request_size=9 [00:21:30]MH_SAM_APDU [00:21:30]CAPDU: 80 15 01 00 04 05 00 46 00 [00:21:30]Write to MH i2c: E2 0C 00 FC 16 80 15 01 00 04 00 05 00 46 00 00 00 E4 [00:21:30]Write i2c OK [00:21:30]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [00:21:31]RAPDU: 90 00 [00:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=23 [00:21:31]MH_SAM_APDU [00:21: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:21:31]Write to MH i2c: E2 1A 00 FD 16 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 88 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 FD 16 00 90 00 87 [00:21:31]RAPDU: 90 00 [00:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=29 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 15 02 00 18 FD 03 14 00 D0 9C D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA 20 D0 90 2E 20 [00:21:31]Write to MH i2c: E2 20 00 FE 16 80 15 02 00 18 00 FD 03 14 00 D0 9C D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA 20 D0 90 2E 20 00 00 25 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 FE 16 00 90 00 88 [00:21:31]RAPDU: 90 00 [00:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=13 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 15 02 00 08 F4 03 04 00 0D A7 BA 66 [00:21:31]Write to MH i2c: E2 10 00 FF 16 80 15 02 00 08 00 F4 03 04 00 0D A7 BA 66 00 00 74 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [00:21:31]RAPDU: 90 00 [00:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=25 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 [00:21:31]Write to MH i2c: E2 1C 00 00 17 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 00 00 F6 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:31]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:31]Read from MH i2c: E2 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 [00:21:31]MH_I2C_Read... [00:21:31]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [00:21:31]RAPDU: 90 00 [00:21:31]wFMCommunicate OK [00:21:31]wFMCommunicate request_size=4 [00:21:31]MH_SAM_APDU [00:21:31]CAPDU: 80 15 03 00 [00:21:31]Write to MH i2c: E2 08 00 01 17 80 15 03 00 00 00 00 00 99 [00:21:31]Write i2c OK [00:21:31]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 FD 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 FD 00 01 17 00 FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F5 13 01 00 0E 04 04 00 D1 01 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 90 00 89 [00:21:32]RAPDU: FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 10 04 04 00 F5 13 01 00 0E 04 04 00 D1 01 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 90 00 [00:21:32]wFMCommunicate OK [00:21:32]SAM_PROTO_ProcessDocument answer len = 1276 [00:21:32]SAM_PROTO_ProcessDocument remain to read = 1028 [00:21:32]wFMCommunicate request_size=4 [00:21:32]MH_SAM_APDU [00:21:32]CAPDU: 80 17 00 00 [00:21:32]Write to MH i2c: E2 08 00 02 17 80 17 00 00 00 00 00 00 99 [00:21:32]Write i2c OK [00:21:32]MH_I2C_Read... [00:21:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:32]Read from MH i2c: E2 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 FD 00 [00:21:32]MH_I2C_Read... [00:21:32]Read from MH i2c: E2 FD 00 02 17 00 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 F2 [00:21:32]RAPDU: 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 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 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 90 00 [00:21:33]wFMCommunicate OK [00:21:33]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:33]SAM_PROTO_ProcessDocument remain to read = 778 [00:21:33]wFMCommunicate request_size=4 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 17 00 00 [00:21:33]Write to MH i2c: E2 08 00 03 17 80 17 00 00 00 00 00 00 9A [00:21:33]Write i2c OK [00:21:33]MH_I2C_Read... [00:21:33]OFD Sender: No OFD packet to send [00:21:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:33]Read from MH i2c: E2 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 FD 00 [00:21:33]MH_I2C_Read... [00:21:33]Read from MH i2c: E2 FD 00 03 17 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 00 [00:21:33]RAPDU: 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:21:33]wFMCommunicate OK [00:21:33]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:33]SAM_PROTO_ProcessDocument remain to read = 528 [00:21:33]wFMCommunicate request_size=4 [00:21:33]MH_SAM_APDU [00:21:33]CAPDU: 80 17 00 00 [00:21:33]Write to MH i2c: E2 08 00 04 17 80 17 00 00 00 00 00 00 9B [00:21:34]Write i2c OK [00:21:34]MH_I2C_Read... [00:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:34]Read from MH i2c: E2 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 FD 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 FD 00 04 17 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AE [00:21:34]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:34]wFMCommunicate OK [00:21:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:34]SAM_PROTO_ProcessDocument remain to read = 278 [00:21:34]wFMCommunicate request_size=4 [00:21:34]MH_SAM_APDU [00:21:34]CAPDU: 80 17 00 00 [00:21:34]Write to MH i2c: E2 08 00 05 17 80 17 00 00 00 00 00 00 9C [00:21:34]Write i2c OK [00:21:34]MH_I2C_Read... [00:21:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:34]Read from MH i2c: E2 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 FD 00 [00:21:34]MH_I2C_Read... [00:21:34]Read from MH i2c: E2 FD 00 05 17 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D6 [00:21:35]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:21:35]wFMCommunicate OK [00:21:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:35]SAM_PROTO_ProcessDocument remain to read = 28 [00:21:35]wFMCommunicate request_size=4 [00:21:35]MH_SAM_APDU [00:21:35]CAPDU: 80 17 00 00 [00:21:35]Write to MH i2c: E2 08 00 06 17 80 17 00 00 00 00 00 00 9D [00:21:35]Write i2c OK [00:21:35]MH_I2C_Read... [00:21:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [00:21:35]Read from MH i2c: E2 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 1F 00 [00:21:35]MH_I2C_Read... [00:21:35]Read from MH i2c: E2 1F 00 06 17 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E7 69 2F 86 C8 40 90 00 ED [00:21:35]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 E7 69 2F 86 C8 40 90 00 [00:21:35]wFMCommunicate OK [00:21:35]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [00:21:35]SAM_PROTO_ProcessDocument done [00:21:35]1209 (1) - 1.0 - номер верÑии ФФД [00:21:35]1041 (16) - 0000000000874915 - номер ФМ [00:21:35]1040 (4) - 70645 - номер ФД [00:21:35]1038 (4) - 465 - номер Ñмены [00:21:35]1118 (4) - 76 - количеÑтво каÑÑовых чеков за Ñмену [00:21:35]1111 (4) - 78 - общее количеÑтво ФД за Ñмену [00:21:35]1194 (1205) - Ñчетчики итогов Ñмены [00:21:35] 1134 (4) - 76 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [00:21:35] 1129 (156) - Ñчетчики операций «приход» [00:21:35] 1135 (4) - 73 - количеÑтво чеков по признаку раÑчетов [00:21:35] 1201 (3) - 111467.05 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:21:35] 1136 (3) - 14869.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:21:35] 1138 (3) - 96598.05 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:21:35] 1024 (123) - Ñуммы налогов [00:21:35] 1006 (9) - Ñуммы ÐДС [00:21:35] 1010 (1) - 0% - код Ñтавки ÐДС [00:21:35] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:21:35] 1006 (12) - Ñуммы ÐДС [00:21:35] 1010 (1) - 12% - код Ñтавки ÐДС [00:21:35] 1011 (3) - 11837.83 - Ñумма ÐДС по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 0% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (12) - Ñуммы ÐСП [00:21:35] 1014 (1) - 1% - код Ñтавки ÐСП [00:21:35] 1015 (3) - 986.48 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 2% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 3% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 5% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1130 (151) - Ñчетчики операций «возврат прихода» [00:21:35] 1135 (4) - 3 - количеÑтво чеков по признаку раÑчетов [00:21:35] 1201 (3) - 3500.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:21:35] 1136 (3) - 3500.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:21:35] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:21:35] 1024 (121) - Ñуммы налогов [00:21:35] 1006 (9) - Ñуммы ÐДС [00:21:35] 1010 (1) - 0% - код Ñтавки ÐДС [00:21:35] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:21:35] 1006 (11) - Ñуммы ÐДС [00:21:35] 1010 (1) - 12% - код Ñтавки ÐДС [00:21:35] 1011 (2) - 371.80 - Ñумма ÐДС по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 0% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (11) - Ñуммы ÐСП [00:21:35] 1014 (1) - 1% - код Ñтавки ÐСП [00:21:35] 1015 (2) - 30.98 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 2% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 3% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 5% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1131 (141) - Ñчетчики операций «раÑход» [00:21:35] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [00:21:35] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:21:35] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:21:35] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:21:35] 1024 (117) - Ñуммы налогов [00:21:35] 1006 (9) - Ñуммы ÐДС [00:21:35] 1010 (1) - 0% - код Ñтавки ÐДС [00:21:35] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:21:35] 1006 (9) - Ñуммы ÐДС [00:21:35] 1010 (1) - 12% - код Ñтавки ÐДС [00:21:35] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 0% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 1% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 2% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 3% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 5% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:21:35] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:35] 1007 (9) - Ñуммы ÐСП [00:21:35] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:21:36] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:36] 1132 (141) - Ñчетчики операций «возврат раÑхода» [00:21:36] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [00:21:36] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [00:21:36] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [00:21:36] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [00:21:36] 1024 (117) - Ñуммы налогов [00:21:36] 1006 (9) - Ñуммы ÐДС [00:21:36] 1010 (1) - 0% - код Ñтавки ÐДС [00:21:36] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:21:36] 1006 (9) - Ñуммы ÐДС [00:21:36] 1010 (1) - 12% - код Ñтавки ÐДС [00:21:36] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [00:21:36] 1007 (9) - Ñуммы ÐСП [00:21:36] 1014 (1) - 0% - код Ñтавки ÐСП [00:21:36] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:36] 1007 (9) - Ñуммы ÐСП [00:21:36] 1014 (1) - 1% - код Ñтавки ÐСП [00:21:36] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:36] 1007 (9) - Ñуммы ÐСП [00:21:36] 1014 (1) - 2% - код Ñтавки ÐСП [00:21:36] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:36] 1007 (9) - Ñуммы ÐСП [00:21:36] 1014 (1) - 3% - код Ñтавки ÐСП [00:21:36] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:36] 1007 (9) - Ñуммы ÐСП [00:21:36] 1014 (1) - 5% - код Ñтавки ÐСП [00:21:36] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:36] 1007 (9) - Ñуммы ÐСП [00:21:36] 1014 (1) - 0,50% - код Ñтавки ÐСП [00:21:36] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:36] 1007 (9) - Ñуммы ÐСП [00:21:36] 1014 (1) - 1,50% - код Ñтавки ÐСП [00:21:36] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [00:21:36] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [00:21:36]1077 (6) - 254438954944576 - ФПД [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1209 (04B9) [00:21:36]Malloc new data [00:21:36]Processing tag 1041 (0411) [00:21:36]Processing tag 1040 (0410) [00:21:36]Malloc new data [00:21:36]Processing tag 1038 (040E) [00:21:36]Malloc new data [00:21:36]Processing tag 1118 (045E) [00:21:36]Malloc new data [00:21:36]Processing tag 1111 (0457) [00:21:36]Malloc new data [00:21:36]Processing tag 1194 (04AA) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1134 (046E) [00:21:36]Malloc new data [00:21:36]Processing tag 1129 (0469) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1135 (046F) [00:21:36]Malloc new data [00:21:36]Processing tag 1201 (04B1) [00:21:36]Malloc new data [00:21:36]Processing tag 1136 (0470) [00:21:36]Malloc new data [00:21:36]Processing tag 1138 (0472) [00:21:36]Malloc new data [00:21:36]Processing tag 1024 (0400) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1130 (046A) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1135 (046F) [00:21:36]Malloc new data [00:21:36]Processing tag 1201 (04B1) [00:21:36]Malloc new data [00:21:36]Processing tag 1136 (0470) [00:21:36]Malloc new data [00:21:36]Processing tag 1138 (0472) [00:21:36]Malloc new data [00:21:36]Processing tag 1024 (0400) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1131 (046B) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1135 (046F) [00:21:36]Malloc new data [00:21:36]Processing tag 1201 (04B1) [00:21:36]Malloc new data [00:21:36]Processing tag 1136 (0470) [00:21:36]Malloc new data [00:21:36]Processing tag 1138 (0472) [00:21:36]Malloc new data [00:21:36]Processing tag 1024 (0400) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1132 (046C) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1135 (046F) [00:21:36]Malloc new data [00:21:36]Processing tag 1201 (04B1) [00:21:36]Malloc new data [00:21:36]Processing tag 1136 (0470) [00:21:36]Malloc new data [00:21:36]Processing tag 1138 (0472) [00:21:36]Malloc new data [00:21:36]Processing tag 1024 (0400) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1006 (03EE) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1010 (03F2) [00:21:36]Malloc new data [00:21:36]Processing tag 1011 (03F3) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1007 (03EF) [00:21:36]Load OK [00:21:36]SetTLVBufToDocument [00:21:36]Processing tag 1014 (03F6) [00:21:36]Malloc new data [00:21:36]Processing tag 1015 (03F7) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1133 (046D) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Processing tag 1077 (0435) [00:21:36]Malloc new data [00:21:36]SetTLVBufToDocument err=0 [00:21:36]Malloc new data [00:21:36]SAM_PROTO_GetFMData [00:21:36]wFMCommunicate request_size=4 [00:21:36]MH_SAM_APDU [00:21:36]CAPDU: 80 13 03 00 [00:21:36]Write to MH i2c: E2 08 00 07 17 80 13 03 00 00 00 00 00 9D [00:21:36]Write i2c OK [00:21:36]MH_I2C_Read... [00:21:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:36]Read from MH i2c: E2 [00:21:36]MH_I2C_Read... [00:21:36]Read from MH i2c: E2 FD 00 [00:21:36]MH_I2C_Read... [00:21:37]Read from MH i2c: E2 FD 00 07 17 00 C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 7E [00:21:37]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 [00:21:37]wFMCommunicate OK [00:21:37]wFMCommunicate request_size=4 [00:21:37]MH_SAM_APDU [00:21:37]CAPDU: 80 17 00 00 [00:21:37]Write to MH i2c: E2 08 00 08 17 80 17 00 00 00 00 00 00 9F [00:21:37]Write i2c OK [00:21:37]MH_I2C_Read... [00:21:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:37]Read from MH i2c: E2 [00:21:37]MH_I2C_Read... [00:21:37]Read from MH i2c: E2 FD 00 [00:21:37]MH_I2C_Read... [00:21:37]Read from MH i2c: E2 FD 00 08 17 00 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1F [00:21:38]RAPDU: 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:38]wFMCommunicate OK [00:21:38]wFMCommunicate request_size=4 [00:21:38]MH_SAM_APDU [00:21:38]CAPDU: 80 17 00 00 [00:21:38]Write to MH i2c: E2 08 00 09 17 80 17 00 00 00 00 00 00 A0 [00:21:38]Write i2c OK [00:21:38]MH_I2C_Read... [00:21:38]OFD Sender: No OFD packet to send [00:21:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:38]Read from MH i2c: E2 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 FD 00 [00:21:38]MH_I2C_Read... [00:21:38]Read from MH i2c: E2 FD 00 09 17 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [00:21: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:21:39]wFMCommunicate OK [00:21:39]wFMCommunicate request_size=4 [00:21:39]MH_SAM_APDU [00:21:39]CAPDU: 80 17 00 00 [00:21:39]Write to MH i2c: E2 08 00 0A 17 80 17 00 00 00 00 00 00 A1 [00:21:39]Write i2c OK [00:21:39]MH_I2C_Read... [00:21:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:39]Read from MH i2c: E2 [00:21:39]MH_I2C_Read... [00:21:39]Read from MH i2c: E2 FD 00 [00:21:39]MH_I2C_Read... [00:21:39]Read from MH i2c: E2 FD 00 0A 17 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 19 [00:21: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:21:39]wFMCommunicate OK [00:21:39]wFMCommunicate request_size=4 [00:21:39]MH_SAM_APDU [00:21:39]CAPDU: 80 17 00 00 [00:21:39]Write to MH i2c: E2 08 00 0B 17 80 17 00 00 00 00 00 00 A2 [00:21:39]Write i2c OK [00:21:39]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 E5 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 E5 00 0B 17 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 86 [00:21: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:21:40]wFMCommunicate OK [00:21:40]SAM_PROTO_GetFMData done [00:21:40]Malloc new data [00:21:40]Malloc new data [00:21:40]Malloc new data [00:21:40]Malloc new data [00:21:40]KKMLoadAndSignCloseShiftData err=0 [00:21:40]Отчет о закрытии Ñмены ФФД: 1.0 ИÐÐ: 02508201610067 КаÑÑир: Мирбек к Ð. 13.08.2024 00:21 Смена: 465 РÐМ: 0000000000090913 ЗÐМ: 0300000140 СÐО: Общий режим Чеков за Ñмену: 76 ФД за Ñмену: 78 Ð’Ñего чеков: 76 ИТОГИ ПРИХОД Чеков: 73 Общий итог: 111467.05 Итого наличными: 14869.00 Итого безнал.: 96598.05 ÐДС 0% : 0.00 ÐДС 12% : 11837.83 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 986.48 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 3 Общий итог: 3500.00 Итого наличными: 3500.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 371.80 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 30.98 ИТОГИ РÐСХОД Чеков: 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 Ðал. в каÑÑе: 11369.00 ÐС Приход: 76754729.82 ÐС Возвр.Прихода: 3411064.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФД: 70645 ФМ: 0000000000874915 ФПД: 254438954944576 [00:21:40]StoreToDocumentArchive [00:21:40]shift 465 fd 70645 [00:21:40]save to /storage/0465/doc_00070645 [00:21:40]save last doc name /storage/0465/doc_00070645 to /storage/kkm_last_doc_name [00:21:40]save OK [00:21:40]Clear old archive folders... [00:21:40]Remove dir /storage/0266 [00:21:40]opendir ok [00:21:40]file . [00:21:40]file .. [00:21:40]file doc_1723508467 [00:21:40]remove file /storage/0266/doc_1723508467 [00:21:40]remove dir /storage/0266 [00:21:40]NVStorageSaveData kkm_registers [00:21:40]File name is /storage/kkm_registers [00:21:40]Write 24 bytes [00:21:40]NVStorageSaveData done [00:21:40]NVStorageSaveData kkm_registers [00:21:40]File name is /storage/kkm_registers [00:21:40]Write 24 bytes [00:21:40]NVStorageSaveData done [00:21:40]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [00:21:40]tlvbuf is 0124C130 [00:21:40]SAM_PROTO_ClearQueue [00:21:40]wFMCommunicate request_size=4 [00:21:40]MH_SAM_APDU [00:21:40]CAPDU: 80 09 00 00 [00:21:40]Write to MH i2c: E2 08 00 0C 17 80 09 00 00 00 00 00 00 95 [00:21:40]Write i2c OK [00:21:40]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 03 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 03 00 0C 17 00 90 00 97 [00:21:40]RAPDU: 90 00 [00:21:40]wFMCommunicate OK [00:21:40]SAM_PROTO_ClearQueue done [00:21:40]KKMCreateOFDPacket [00:21:40]OFDProtocolAddRootSTLVToBuf [00:21:40]FM_MakeSignedData [00:21:40]FM_MakeSignedData [00:21:40]SAM_PROTO_SignData [00:21:40]wFMCommunicate request_size=4 [00:21:40]MH_SAM_APDU [00:21:40]CAPDU: 80 0D 01 02 [00:21:40]Write to MH i2c: E2 08 00 0D 17 80 0D 01 02 00 00 00 00 9D [00:21:40]Write i2c OK [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 [00:21:40]MH_I2C_Read... [00:21:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:40]Read from MH i2c: E2 03 00 [00:21:40]MH_I2C_Read... [00:21:40]Read from MH i2c: E2 03 00 0D 17 00 90 00 98 [00:21:40]RAPDU: 90 00 [00:21:40]wFMCommunicate OK [00:21:40]wFMCommunicate request_size=255 [00:21:40]MH_SAM_APDU [00:21: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 14 00 D0 9C D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA 20 D0 90 2E 20 F4 03 04 00 0D A7 BA 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 DC 04 6E 04 04 00 4C 00 00 00 69 04 A3 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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:21:40]Write to MH i2c: E2 02 01 0E 17 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 14 00 D0 9C D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA 20 D0 90 2E 20 F4 03 04 00 0D A7 BA 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 DC 04 6E 04 04 00 4C 00 00 00 69 04 A3 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 97 [00:21:41]Write i2c OK [00:21:41]MH_I2C_Read... [00:21:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:41]Read from MH i2c: E2 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 [00:21:41]MH_I2C_Read... [00:21:41]Read from MH i2c: E2 03 00 0E 17 00 90 00 99 [00:21:41]RAPDU: 90 00 [00:21:41]wFMCommunicate OK [00:21:41]wFMCommunicate request_size=255 [00:21:41]MH_SAM_APDU [00:21:41]CAPDU: 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 58 81 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 3C 91 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 0C 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:21:41]Write to MH i2c: E2 02 01 0F 17 80 0D 02 02 FA 00 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 58 81 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 3C 91 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 0C 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 05 [00:21:41]Write i2c OK [00:21:42]MH_I2C_Read... [00:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:42]Read from MH i2c: E2 [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: E2 03 00 [00:21:42]MH_I2C_Read... [00:21:42]Read from MH i2c: E2 03 00 0F 17 00 90 00 9A [00:21:42]RAPDU: 90 00 [00:21:42]wFMCommunicate OK [00:21:42]wFMCommunicate request_size=255 [00:21:42]MH_SAM_APDU [00:21:42]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:21:42]Write to MH i2c: E2 02 01 10 17 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 67 [00:21:42]Write i2c OK [00:21:42]MH_I2C_Read... [00:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:43]Read from MH i2c: E2 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 03 00 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 03 00 10 17 00 90 00 9B [00:21:43]RAPDU: 90 00 [00:21:43]wFMCommunicate OK [00:21:43]wFMCommunicate request_size=255 [00:21:43]MH_SAM_APDU [00:21:43]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:21:43]Write to MH i2c: E2 02 01 11 17 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 OFD Sender: No OFD packet to send [00:21:43]00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 71 [00:21:43]Write i2c OK [00:21:43]MH_I2C_Read... [00:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:43]Read from MH i2c: E2 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 03 00 [00:21:43]MH_I2C_Read... [00:21:43]Read from MH i2c: E2 03 00 11 17 00 90 00 9C [00:21:43]RAPDU: 90 00 [00:21:43]wFMCommunicate OK [00:21:43]wFMCommunicate request_size=255 [00:21:43]MH_SAM_APDU [00:21: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:21:44]Write to MH i2c: E2 02 01 12 17 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 32 [00:21:44]Write i2c OK [00:21:44]MH_I2C_Read... [00:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:44]Read from MH i2c: E2 [00:21:44]MH_I2C_Read... [00:21:44]Read from MH i2c: E2 03 00 [00:21:44]MH_I2C_Read... [00:21:44]Read from MH i2c: E2 03 00 12 17 00 90 00 9D [00:21:44]RAPDU: 90 00 [00:21:44]wFMCommunicate OK [00:21:44]wFMCommunicate request_size=144 [00:21:44]MH_SAM_APDU [00:21:44]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 F5 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 E7 69 2F 86 C8 40 [00:21:44]Write to MH i2c: E2 93 00 13 17 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 F5 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 E7 69 2F 86 C8 40 00 00 F9 [00:21:45]Write i2c OK [00:21:45]MH_I2C_Read... [00:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:45]Read from MH i2c: E2 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 03 00 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 03 00 13 17 00 90 00 9E [00:21:45]RAPDU: 90 00 [00:21:45]wFMCommunicate OK [00:21:45]wFMCommunicate request_size=4 [00:21:45]MH_SAM_APDU [00:21:45]CAPDU: 80 0D 03 02 [00:21:45]Write to MH i2c: E2 08 00 14 17 80 0D 03 02 00 00 00 00 A6 [00:21:45]Write i2c OK [00:21:45]MH_I2C_Read... [00:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:45]Read from MH i2c: E2 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 0B 00 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 0B 00 14 17 00 B9 C5 1E 99 85 5B DA 5C 90 00 F2 [00:21:45]RAPDU: B9 C5 1E 99 85 5B DA 5C 90 00 [00:21:45]wFMCommunicate OK [00:21:45]SAM_PROTO_SignData done [00:21:45]FM_MakeSignedData done [00:21:45]CreateOFDProtocolMessage [00:21:45]wFMCommunicate request_size=4 [00:21:45]MH_SAM_APDU [00:21:45]CAPDU: 80 11 00 00 [00:21:45]Write to MH i2c: E2 08 00 15 17 80 11 00 00 00 00 00 00 A6 [00:21:45]Write i2c OK [00:21:45]MH_I2C_Read... [00:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:45]Read from MH i2c: E2 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 17 00 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: E2 17 00 15 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 FB [00:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:21:45]wFMCommunicate OK [00:21:45]CreateOFDProtocolMessage done [00:21:45]OFDSenderStorePacket 70645 [00:21:45]StoreOFDPacket docnum=70645 [00:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 7D 05 00 00 FE 39 75 05 15 7A 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 14 00 D0 9C D0 B8 D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA 20 D0 90 2E 20 F4 03 04 00 0D A7 BA 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 DC 04 6E 04 04 00 4C 00 00 00 69 04 A3 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 3C 91 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 0C 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 F5 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 E7 69 2F 86 C8 40 B9 C5 1E 99 85 5B DA 5C [00:21:45]CheckFolder [00:21:45]dirname=/storage/ofd_packets [00:21:45]CheckFolder done [00:21:45]ProducePacketName [00:21:45]name=ofd_packets/00070645 [00:21:45]NVStorageSaveData ofd_packets/00070645 [00:21:45]File name is /storage/ofd_packets/00070645 [00:21:45]Write 1435 bytes [00:21:45]NVStorageSaveData done [00:21:45]OFDSenderStorePacket done [00:21:45]KKMCreateOFDPacket done [00:21:45]NVStorageSaveData kkm_last_timestamp [00:21:45]File name is /storage/kkm_last_timestamp [00:21:45]Write 4 bytes [00:21:45]NVStorageSaveData done [00:21:45]ExternCall_PrintAddStr [00:21:45]wPrintStart [00:21:45]Write to MH i2c: 01 00 00 16 17 2D [00:21:45]OFD Sender: Processing packet 70645 [packets to send 67, broken 66] [00:21:45]ProducePacketName [00:21:45]name=ofd_packets/00070645 [00:21:45]OFD Sender: To server: ‡•öpG, [00:21:45]CommunicateWithHost lk.salyk.kg:30040 [00:21:45]ConnectInit lk.salyk.kg [00:21:45]Write i2c OK [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: 01 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: 01 07 00 [00:21:45]MH_I2C_Read... [00:21:45]Read from MH i2c: 01 07 00 16 17 00 00 00 00 00 FF 0F 42 [00:21:45]RasterBufferAndPrint [00:21:45]line Отчет о закрытии Ñмены [00:21:45]line ФФД: 1.0 [00:21:45]line ИÐÐ: 02508201610067 [00:21:45]line КаÑÑир: Мирбек к Ð. [00:21:45]line 13.08.2024 00:21 [00:21:45]line Смена: 465 [00:21:45]line РÐМ: 0000000000090913 [00:21:45]line ЗÐМ: 0300000140 [00:21:45]line СÐО: Общий режим [00:21:45]line Чеков за Ñмену: 76 [00:21:45]line ФД за Ñмену: 78 [00:21:45]line Ð’Ñего чеков: 76 [00:21:45]line ИТОГИ ПРИХОД [00:21:45]line Чеков: 73 [00:21:45]line Общий итог: 111467.05 [00:21:45]line Итого наличными: 14869.00 [00:21:45]line Итого безнал.: 96598.05 [00:21:45]line ÐДС 0% : 0.00 [00:21:45]line ÐДС 12% : 11837.83 [00:21:45]line ÐСП 0% : 0.00 [00:21:45]line ÐСП 1,50% : 0.00 [00:21:46]line ÐСП 0,50% : 0.00 [00:21:46]line ÐСП 5% : 0.00 [00:21:46]line ÐСП 3% : 0.00 [00:21:46]line ÐСП 2% : 0.00 [00:21:46]line ÐСП 1% : 986.48 [00:21:46]line ИТОГИ ВОЗВРÐТ ПРИХОДР[00:21:46]line Чеков: 3 [00:21:46]line Общий итог: 3500.00 [00:21:46]line Итого наличными: 3500.00 [00:21:46]line Итого безнал.: 0.00 [00:21:46]line ÐДС 0% : 0.00 [00:21:46]line ÐДС 12% : 371.80 [00:21:46]line ÐСП 0% : 0.00 [00:21:46]line ÐСП 1,50% : 0.00 [00:21:46]line ÐСП 0,50% : 0.00 [00:21:46]line ÐСП 5% : 0.00 [00:21:46]line ÐСП 3% : 0.00 [00:21:46]line ÐСП 2% : 0.00 [00:21:46]line ÐСП 1% : 30.98 [00:21:46]line ИТОГИ РÐСХОД [00:21:46]line Чеков: 0 [00:21:46]line Общий итог: 0.00 [00:21:46]line Итого наличными: 0.00 [00:21:46]Connected sock=10 [00:21: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 39 31 35 7D 05 00 00 FE 39 75 05 15 7A 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 line Итого безнал.: 0.00 [00:21:46]0E line ÐДС 0% : 0.00 [00:21:46]00 line ÐДС 12% : 0.00 [00:21:46]30 line ÐСП 0% : 0.00 [00:21:46]32 line ÐСП 1,50% : 0.00 [00:21:46]35 line ÐСП 0,50% : 0.00 [00:21:46]30 line ÐСП 5% : 0.00 [00:21:46]38 line ÐСП 3% : 0.00 [00:21:46]32 line ÐСП 2% : 0.00 [00:21:46]30 line ÐСП 1% : 0.00 [00:21:46]31 line ИТОГИ ВОЗВРÐТ РÐСХОДР[00:21:46]36 line Чеков: 0 [00:21:46]31 line Общий итог: 0.00 [00:21:46]30 line Итого наличными: 0.00 [00:21:46]30 line Итого безнал.: 0.00 [00:21:46]36 line ÐДС 0% : 0.00 [00:21:46]37 line ÐДС 12% : 0.00 [00:21:46]FD line ÐСП 0% : 0.00 [00:21:46]03 line ÐСП 1,50% : 0.00 [00:21:46]14 line ÐСП 0,50% : 0.00 [00:21:46]line ÐСП 5% : 0.00 [00:21:46]line ÐСП 3% : 0.00 [00:21:46]line ÐСП 2% : 0.00 [00:21:46]line ÐСП 1% : 0.00 [00:21:46]line Сумма внеÑений: 0.00 [00:21:46]line Сумма выплат: 0.00 [00:21:46]line Ðал. в каÑÑе: 11369.00 [00:21:46]line ÐС Приход: 76754729.82 [00:21:46]line ÐС Возвр.Прихода: 3411064.00 [00:21:46]00 D0 line ÐС РаÑход: 0.00 [00:21:46]9C line ÐС Возвр.РаÑхода: 0.00 [00:21:46]D0 line ФД: 70645 [00:21:46]B8 line ФМ: 0000000000874915 [00:21:46]line ФПД: 254438954944576 [00:21:46]D1 80 D0 B1 D0 B5 D0 BA 20 D0 BA 20 D0 90 2E 20 F4 03 04 00 0D A7 BA 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 AA 04 written 0, free lines is 4095 [00:21:46]DC 04 6E 04 04 00 4C 00 00 00 69 04 A3 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 01 6A 04 9F 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 3C 91 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 0C 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 Write to MH i2c: 00 01 B1 00 04 00 00 00 70 66 04 17 00 7D 00 72 04 00 00 00 04 75 00 EE 03 [00:21:47]09 00 F2 03 01 00 00 F3 Write i2c OK [00:21:47]03 00 MH_I2C_Read... [00:21:47]00 Read from MH i2c: EE 01 03 [00:21:47]09 MH_I2C_Read... [00:21:47]00 Read from MH i2c: F2 01 03 07 01 00 00 [00:21:47]01 MH_I2C_Read... [00:21:47]F3 Read from MH i2c: 03 01 00 07 00 00 EF 66 03 17 09 00 00 00 F6 00 03 00 01 00 00 0C 00 0B F7 9B 03 [00:21:47]00 00 EF 03 09 00 F6 03 01 00 01 RasterBufferAndPrint [00:21:47]F7 line [00:21:47]03 line [00:21:47]00 line [00:21:47]00 line [00:21:47]EF 03 09 00 F6 03 01 00 02 F7 03 line [00:21:47]00 00 EF 03 09 00 F6 03 01 00 written 0, free lines is 3049 [00:21:47]03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 MH_Cut [00:21:47]F7 Write to MH i2c: 03 D1 00 01 00 00 EF 6D 03 17 09 01 00 56 F6 [00:21:47]03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [00:21:47]01 MH_I2C_Read... [00:21:47]00 Read from MH i2c: 06 D1 F7 [00:21:47]MH_I2C_Read... [00:21:47]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 Read from MH i2c: 03 D1 01 01 00 00 02 [00:21:47]F7 MH_I2C_Read... [00:21:47]03 Read from MH i2c: 00 D1 00 01 EF 00 03 6D 09 17 00 00 F6 55 03 [00:21:47]01 Write to MH i2c: 00 01 03 00 F7 00 03 00 00 EF 03 09 00 F6 03 01 00 6E 04 17 F7 85 03 [00:21:47]00 00 EF 03 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 Write i2c OK [00:21:47]01 MH_I2C_Read... [00:21:47]00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F5 13 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 35 04 06 00 E7 69 2F 86 C8 40 B9 C5 1E 99 85 5B DA 5C [00:21:48]*** Cut start [00:21:48]*** Purtial cut [00:21:48]*** Stage 1: CUTSNS_PIN = 1 [00:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 4F 00 00 00 51 E6 47 00 18 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 39 31 35 10 04 04 00 F5 13 01 00 F4 03 04 00 08 4E BA 66 B6 04 01 00 00 84 66 DA 6F 27 2E E8 69 [00:21:48]CommunicateWithHost err = 0 [00:21:48]CheckOFDResponse [00:21:48]1017 (14) - 77093643461234 [00:21:48]1041 (16) - 0000000000874915 [00:21:48]1040 (4) - 70645 [00:21:48]1012 (4) - 12.08.2024 18:01 [00:21:48]1206 (1) - 0 [00:21:48]OFD Sender: Remove packet 70645 [00:21:48]ProducePacketName [00:21:48]name=ofd_packets/00070645 [00:21:48]NVStorageDeleteData [00:21:48]Read from MH i2c: 01 [00:21:48]MH_I2C_Read... [00:21:48]*** Stop cut motor [00:21:48]*** Cut end [00:21:48]Read from MH i2c: 01 07 00 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: 01 07 00 6E 17 00 00 00 00 00 FF 0F 9A [00:21:48]process_action close_shift done [00:21:48]requested_data is exist [00:21:48]produce_requested_data [00:21:48]requested_item fd.num is exist - process it [00:21:48]SAM_PROTO_GetFieldsCounters [00:21:48]wFMCommunicate request_size=4 [00:21:48]MH_SAM_APDU [00:21:48]CAPDU: 80 13 00 00 [00:21:48]Write to MH i2c: E2 08 00 6F 17 80 13 00 00 00 00 00 00 02 [00:21:48]Write i2c OK [00:21:48]MH_I2C_Read... [00:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:48]Read from MH i2c: E2 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 62 00 [00:21:48]MH_I2C_Read... [00:21:48]Read from MH i2c: E2 62 00 6F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F5 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [00:21: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F5 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:48]wFMCommunicate OK [00:21:48]SAM_PROTO_GetFieldsCounters done [00:21:48]requested_item shift.num is exist - process it [00:21:48]requested_item shift.opened is exist - process it [00:21:48]req_shift_opened [00:21:48]FM_GetShiftState [00:21:48]SAM_PROTO_GetShiftState [00:21:48]wFMCommunicate request_size=4 [00:21:48]MH_SAM_APDU [00:21:48]CAPDU: 80 13 01 00 [00:21:48]Write to MH i2c: E2 08 00 70 17 80 13 01 00 00 00 00 00 04 [00:21:48]OFD Sender: No OFD packet to send [00:21:48]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 70 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 0F [00:21:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:49]wFMCommunicate OK [00:21:49]SAM_PROTO_GetShiftState done [00:21:49]FM_GetShiftState done [00:21:49]req_shift_opened done [00:21:49]requested_item shift.open_date is exist - process it [00:21:49]req_shift_open_date [00:21:49]FM_GetShiftState [00:21:49]SAM_PROTO_GetShiftState [00:21:49]wFMCommunicate request_size=4 [00:21:49]MH_SAM_APDU [00:21:49]CAPDU: 80 13 01 00 [00:21:49]Write to MH i2c: E2 08 00 71 17 80 13 01 00 00 00 00 00 05 [00:21:49]Write i2c OK [00:21:49]MH_I2C_Read... [00:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:49]Read from MH i2c: E2 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 [00:21:49]MH_I2C_Read... [00:21:49]Read from MH i2c: E2 0E 00 71 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 10 [00:21:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:49]wFMCommunicate OK [00:21:49]SAM_PROTO_GetShiftState done [00:21:49]FM_GetShiftState done [00:21:49]req_shift_open_date done [00:21:49]produce_requested_data done [00:21:49]produce_requested_data return {"fd.num":70645,"shift.num":465,"shift.opened":0,"shift.open_date":0} [00:21:49]process_action_free close_shift [00:21:49]json_value_free [00:21:49]json_value_free done [00:21:49]process_json_proto returns [00:21:49]Send response to host [00:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":70645,"shift.num":465,"shift.opened":0,"shift.open_date":0}}} [00:21:49]free response buf [00:21:49]execute_script done [00:21:49]execute_script returns [00:21:49]free content buf [00:21:49]Sock 9.Close socket [00:21:49]Sock 9.Thread stoped [00:21:50]int [00:21:50]Write to MH i2c: 01 00 00 72 17 89 [00:21:50]*** FLAG_PRN_KEY set [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 07 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 07 00 72 17 00 08 00 00 00 FF 0F A6 [00:21:50]state=0 [00:21:50]Key pressed [00:21:50]Feed [00:21:50]Write to MH i2c: D8 00 00 73 17 61 [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: D8 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: D8 01 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: D8 01 00 73 17 00 62 [00:21:50]int line is 0 - check status [00:21:50]Write to MH i2c: 01 00 00 74 17 8B [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 07 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 07 00 74 17 00 48 00 00 00 3C 00 16 [00:21:50]state=2 [00:21:50]Key pressed [00:21:50]int [00:21:50]Write to MH i2c: 01 00 00 75 17 8C [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 07 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 07 00 75 17 00 48 00 00 00 3C 00 17 [00:21:50]state=2 [00:21:50]Key pressed [00:21:50]int [00:21:50]Write to MH i2c: 01 00 00 76 17 8D [00:21:50]*** FLAG_PRN_KEY reset [00:21:50]Write i2c OK [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 07 00 [00:21:50]MH_I2C_Read... [00:21:50]Read from MH i2c: 01 07 00 76 17 00 00 00 00 00 FF 0F A2 [00:21:50]state=2 [00:21:50]Stop feed [00:21:51]int [00:21:51]Write to MH i2c: 01 00 00 77 17 8E [00:21:51]*** FLAG_PRN_KEY set [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 77 17 00 08 00 00 00 FF 0F AB [00:21:51]state=0 [00:21:51]Key pressed [00:21:51]Feed [00:21:51]Write to MH i2c: D8 00 00 78 17 66 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: D8 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: D8 01 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: D8 01 00 78 17 00 67 [00:21:51]int line is 0 - check status [00:21:51]Write to MH i2c: 01 00 00 79 17 90 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 79 17 00 48 00 00 00 3C 00 1B [00:21:51]state=2 [00:21:51]Key pressed [00:21:51]int [00:21:51]Write to MH i2c: 01 00 00 7A 17 91 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 7A 17 00 48 00 00 00 3C 00 1C [00:21:51]state=2 [00:21:51]Key pressed [00:21:51]int line is 0 - check status [00:21:51]Write to MH i2c: 01 00 00 7B 17 92 [00:21:51]*** FLAG_PRN_KEY reset [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 7B 17 00 00 00 00 00 FF 0F A7 [00:21:51]state=2 [00:21:51]Stop feed [00:21:51]int [00:21:51]Write to MH i2c: 01 00 00 7C 17 93 [00:21:51]Write i2c OK [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 [00:21:51]MH_I2C_Read... [00:21:51]Read from MH i2c: 01 07 00 7C 17 00 00 00 00 00 FF 0F A8 [00:21:51]state=0 [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:49]accept exits with 7 [00:40:49]New connection [00:40:49]New thread 3066699108 created [00:40:49]Thread 3066842468 joined [00:40:49]Waiting for new connection... [00:40:49] Sock 7.Parse request [00:40:49]Sock 7.Check first char [00:40:49]Sock 7.First char is OK [00:40:49]request: POST /json_proto HTTP/1.0 [00:40:49]Method: POST [00:40:49]URL: /json_proto [00:40:49]Method is POST - this is cgi request [00:40:49]url: /json_proto [00:40:49]query_string will be loaded in cgi processing [00:40:49]execute_cgi json_proto POST (null) [00:40:49]execute_cgi path=json_proto method=POST [00:40:49]POST find Content-Length [00:40:49]Host: 172.17.58.67:8080 [00:40:49]Content-Length: 215 [00:40:49]Content-Type: application/json [00:40:49] [00:40:49]POST finish read [00:40:49]Found Content-Length = 215 [00:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:49]execute_script... [00:40:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:49]POST & json_proto [00:40:49]process_json_proto [00:40:49]json parsed OK: [00:40:49]protocol is kg_v1.0 [00:40:49]action value=get_value [00:40:49]process_action get_value [00:40:49]cmd_get_value [00:40:49]process_action get_value done [00:40:49]requested_data is exist [00:40:49]produce_requested_data [00:40:49]requested_item kkm.sn is exist - process it [00:40:49]requested_item kkm.ver is exist - process it [00:40:49]requested_item fm.sn is exist - process it [00:40:49]wFMCommunicate request_size=4 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 11 00 00 [00:40:49]Write to MH i2c: E2 08 00 7D 17 80 11 00 00 00 00 00 00 0E [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 17 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 17 00 7D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 63 [00:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:40:49]wFMCommunicate OK [00:40:49]requested_item fd.num is exist - process it [00:40:49]SAM_PROTO_GetFieldsCounters [00:40:49]wFMCommunicate request_size=4 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 13 00 00 [00:40:49]Write to MH i2c: E2 08 00 7E 17 80 13 00 00 00 00 00 00 11 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 62 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 62 00 7E 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F5 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [00: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F5 13 01 00 0E 04 04 00 D1 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:40:49]wFMCommunicate OK [00:40:49]SAM_PROTO_GetFieldsCounters done [00:40:49]requested_item shift.num is exist - process it [00:40:49]requested_item shift.opened is exist - process it [00:40:49]req_shift_opened [00:40:49]FM_GetShiftState [00:40:49]SAM_PROTO_GetShiftState [00:40:49]wFMCommunicate request_size=4 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 13 01 00 [00:40:49]Write to MH i2c: E2 08 00 7F 17 80 13 01 00 00 00 00 00 13 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 0E 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 0E 00 7F 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1E [00:40:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:40:49]wFMCommunicate OK [00:40:49]SAM_PROTO_GetShiftState done [00:40:49]FM_GetShiftState done [00:40:49]req_shift_opened done [00:40:49]requested_item shift.open_date is exist - process it [00:40:49]req_shift_open_date [00:40:49]FM_GetShiftState [00:40:49]SAM_PROTO_GetShiftState [00:40:49]wFMCommunicate request_size=4 [00:40:49]MH_SAM_APDU [00:40:49]CAPDU: 80 13 01 00 [00:40:49]Write to MH i2c: E2 08 00 80 17 80 13 01 00 00 00 00 00 14 [00:40:49]Write i2c OK [00:40:49]MH_I2C_Read... [00:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:49]Read from MH i2c: E2 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 0E 00 [00:40:49]MH_I2C_Read... [00:40:49]Read from MH i2c: E2 0E 00 80 17 00 09 00 00 00 00 00 00 00 00 00 00 90 00 1F [00:40:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:40:49]wFMCommunicate OK [00:40:49]SAM_PROTO_GetShiftState done [00:40:49]FM_GetShiftState done [00:40:49]req_shift_open_date done [00:40:49]produce_requested_data done [00:40:49]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70645,"shift.num":465,"shift.opened":0,"shift.open_date":0} [00:40:49]process_action_free get_value [00:40:49]json_value_free [00:40:49]json_value_free done [00:40:49]process_json_proto returns [00:40:49]Send response to host [00:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70645,"shift.num":465,"shift.opened":0,"shift.open_date":0}}} [00:40:49]free response buf [00:40:49]execute_script done [00:40:49]execute_script returns [00:40:49]free content buf [00:40:49]Sock 7.Close socket [00:40:49]Sock 7.Thread stoped [00:40:49]accept exits with 9 [00:40:49]New connection [00:40:49]New thread 3066842468 created [00:40:49]Thread 3066699108 joined [00:40:49]Waiting for new connection... [00:40:49] Sock 9.Parse request [00:40:49]Sock 9.Check first char [00:40:50]Sock 9.First char is OK [00:40:50]request: POST /json_proto HTTP/1.0 [00:40:50]Method: POST [00:40:50]URL: /json_proto [00:40:50]Method is POST - this is cgi request [00:40:50]url: /json_proto [00:40:50]query_string will be loaded in cgi processing [00:40:50]execute_cgi json_proto POST (null) [00:40:50]execute_cgi path=json_proto method=POST [00:40:50]POST find Content-Length [00:40:50]Host: 172.17.58.67:8080 [00:40:50]Content-Length: 331 [00:40:50]Content-Type: application/json [00:40:50] [00:40:50]POST finish read [00:40:50]Found Content-Length = 331 [00:40:50]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:40:50]execute_script... [00:40:50]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:40:50]POST & json_proto [00:40:50]process_json_proto [00:40:50]json parsed OK: [00:40:50]protocol is kg_v1.0 [00:40:50]action value=get_value [00:40:50]process_action get_value [00:40:50]cmd_get_value [00:40:50]process_action get_value done [00:40:50]requested_data is exist [00:40:50]produce_requested_data [00:40:50]requested_item fm.sale.total is exist - process it [00:40:50]SAM_PROTO_GetFMData [00:40:50]wFMCommunicate request_size=4 [00:40:50]MH_SAM_APDU [00:40:50]CAPDU: 80 13 03 00 [00:40:50]Write to MH i2c: E2 08 00 81 17 80 13 03 00 00 00 00 00 17 [00:40:50]Write i2c OK [00:40:50]MH_I2C_Read... [00:40:50]OFD Sender: No OFD packet to send [00:40:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:40:50]Read from MH i2c: E2 [00:40:50]MH_I2C_Read... [00:40:50]Read from MH i2c: E2 FD 00 [00:40:50]MH_I2C_Read... [00:40:50]Read from MH i2c: E2 FD 00 81 17 00 C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 F8 [00:40:50]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 [00:40:50]wFMCommunicate OK [00:40:50]wFMCommunicate request_size=4 [00:40:50]MH_SAM_APDU [00:40:50]CAPDU: 80 17 00 00 [00:40:50]Write to MH i2c: E2 08 00 82 17 80 17 00 00 00 00 00 00 19 [00:40:50]Write i2c OK [00:40:50]MH_I2C_Read... [00:40:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:50]Read from MH i2c: E2 [00:40:50]MH_I2C_Read... [00:40:50]Read from MH i2c: E2 FD 00 [00:40:50]MH_I2C_Read... [00:40:50]Read from MH i2c: E2 FD 00 82 17 00 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 [00:40:50]RAPDU: 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40:50]wFMCommunicate OK [00:40:50]wFMCommunicate request_size=4 [00:40:50]MH_SAM_APDU [00:40:50]CAPDU: 80 17 00 00 [00:40:50]Write to MH i2c: E2 08 00 83 17 80 17 00 00 00 00 00 00 1A [00:40:50]Write i2c OK [00:40:50]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 FD 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 FD 00 83 17 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40:51]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:40:51]wFMCommunicate OK [00:40:51]wFMCommunicate request_size=4 [00:40:51]MH_SAM_APDU [00:40:51]CAPDU: 80 17 00 00 [00:40:51]Write to MH i2c: E2 08 00 84 17 80 17 00 00 00 00 00 00 1B [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 FD 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 FD 00 84 17 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:40:51]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:40:51]wFMCommunicate OK [00:40:51]wFMCommunicate request_size=4 [00:40:51]MH_SAM_APDU [00:40:51]CAPDU: 80 17 00 00 [00:40:51]Write to MH i2c: E2 08 00 85 17 80 17 00 00 00 00 00 00 1C [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 E5 00 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 E5 00 85 17 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:40:51]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:40:51]wFMCommunicate OK [00:40:51]SAM_PROTO_GetFMData done [00:40:51]requested_item fm.sale_refund.total is exist - process it [00:40:51]requested_item fm.buy.total is exist - process it [00:40:51]requested_item shift.sale.total is exist - process it [00:40:51]SAM_PROTO_GetShiftData [00:40:51]wFMCommunicate request_size=4 [00:40:51]MH_SAM_APDU [00:40:51]CAPDU: 80 13 02 00 [00:40:51]Write to MH i2c: E2 08 00 86 17 80 13 02 00 00 00 00 00 1B [00:40:51]Write i2c OK [00:40:51]MH_I2C_Read... [00:40:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:40:51]Read from MH i2c: E2 [00:40:51]MH_I2C_Read... [00:40:51]Read from MH i2c: E2 FD 00 [00:40:51]MH_I2C_Read... [00:40:52]Read from MH i2c: E2 FD 00 86 17 00 B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 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 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 57 05 70 04 03 00 30 57 05 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 3C 91 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 CF [00:40:52]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 4C 00 00 00 69 04 9C 00 6F 04 04 00 49 00 00 00 B1 04 03 00 D1 15 AA 70 04 03 00 34 B0 16 72 04 03 00 9D 65 93 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 27 10 12 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 58 81 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 07 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 43 [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 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 5400000000572507 (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: 39279143+1684230548=1723509691 [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 = 0x33520623 [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 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 07 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 44 [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 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 BC AB BA 66 94 51 63 64 32 [00:41:32]Current date/time: 13.08.2024 00:41 [00:41:32]FM_Init [00:41:32]wFMConnect [00:41:32]MH_SAM_On [00:41:32]Write to MH i2c: E0 00 00 08 00 E7 [00:41:32]Write i2c OK [00:41:32]MH_I2C_Read... [00:41:32]*** iso7816_init finished! [00:41:32]*** atr: [00:41:32]*** 0F 3B D5 18 FF 81 91 FE [00:41:32]*** 1F C3 80 73 C8 21 10 0A [00:41:32]*** 00 00 00 00 00 00 00 00 [00:41:32]*** 00 00 00 00 00 00 00 00 [00:41:32]*** 00 00 00 00 00 00 00 00 [00:41:32]*** 00 00 00 00 00 00 00 00 [00:41:32]*** 00 00 00 00 00 00 00 00 [00:41:32]*** 00 00 00 00 00 00 00 00 [00:41:32]Read from MH i2c: E0 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E0 10 00 [00:41:32]MH_I2C_Read... [00:41:32]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 [00:41:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:41:32]wFMCommunicate request_size=10 [00:41:32]MH_SAM_APDU [00:41:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:41:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:41:32]Write i2c OK [00:41:32]MH_I2C_Read... [00:41:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:41:32]Read from MH i2c: E2 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 03 00 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:41:32]RAPDU: 90 00 [00:41:32]wFMCommunicate OK [00:41:32]wFMCommunicate request_size=4 [00:41:32]MH_SAM_APDU [00:41:32]CAPDU: 80 11 00 00 [00:41:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:41:32]Write i2c OK [00:41:32]MH_I2C_Read... [00:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:32]Read from MH i2c: E2 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 17 00 [00:41:32]MH_I2C_Read... [00:41:32]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 39 31 35 90 00 D9 [00:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:41:32]wFMCommunicate OK [00:41:32]Detected FM SN is 0000000000874915 [00:41:32]Stored FM SN is 0000000000874915 [00:41:32]wFMCommunicate request_size=9 [00:41:32]MH_SAM_APDU [00:41:32]CAPDU: 80 16 00 00 04 18 25 01 00 [00:41:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 18 25 01 00 00 00 D0 [00:41:32]Write i2c OK [00:41:32]MH_I2C_Read... [00:41:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:41:32]Read from MH i2c: E2 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 03 00 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:41:32]RAPDU: 90 00 [00:41:32]wFMCommunicate OK [00:41:32]FM PIN OK [00:41:32]wFMCommunicate request_size=8 [00:41:32]MH_SAM_APDU [00:41:32]CAPDU: 80 14 04 00 03 02 00 01 [00:41:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:41:32]Write i2c OK [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 [00:41:32]MH_I2C_Read... [00:41:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:41:32]Read from MH i2c: E2 03 00 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:41:32]RAPDU: 90 00 [00:41:32]wFMCommunicate OK [00:41:32]wFMCommunicate request_size=13 [00:41:32]MH_SAM_APDU [00:41:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:41:32]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 [00:41:32]Write i2c OK [00:41:32]MH_I2C_Read... [00:41:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:41:32]Read from MH i2c: E2 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 03 00 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:41:32]RAPDU: 90 00 [00:41:32]wFMCommunicate OK [00:41:32]wFMCommunicate request_size=4 [00:41:32]MH_SAM_APDU [00:41:32]CAPDU: 80 11 00 00 [00:41:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:41:32]Write i2c OK [00:41:32]MH_I2C_Read... [00:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:32]Read from MH i2c: E2 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: E2 17 00 [00:41:32]MH_I2C_Read... [00:41:32]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 39 31 35 90 00 DD [00:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:41:32]wFMCommunicate OK [00:41:32]DocumentArchiveInit [00:41:32]Start Httpd... [00:41:32]Httpd thread 3067645284 created [00:41:32]Write to MH i2c: 01 00 00 0F 00 0F [00:41:32]Write i2c OK [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: 01 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: 01 07 00 [00:41:32]MH_I2C_Read... [00:41:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:41:32]MH Int Process started [00:41:32]Allocated Socket 8 [00:41:32]Bind OK [00:41:32]Listen OK [00:41:32]httpd running on port 8080 [00:41:32]Waiting for new connection... [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:46]accept exits with 9 [00:41:46]New connection [00:41:46]New thread 3067358564 created [00:41:46]Waiting for new connection... [00:41:46] Sock 9.Parse request [00:41:46]Sock 9.Check first char [00:41:46]Sock 9.First char is OK [00:41:46]request: POST /json_proto HTTP/1.0 [00:41:46]Method: POST [00:41:46]URL: /json_proto [00:41:46]Method is POST - this is cgi request [00:41:46]url: /json_proto [00:41:46]query_string will be loaded in cgi processing [00:41:46]execute_cgi json_proto POST (null) [00:41:46]execute_cgi path=json_proto method=POST [00:41:46]POST find Content-Length [00:41:46]Host: 172.17.58.67:8080 [00:41:46]Content-Length: 215 [00:41:46]Content-Type: application/json [00:41:46] [00:41:46]POST finish read [00:41:46]Found Content-Length = 215 [00:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:46]execute_script... [00:41:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:46]POST & json_proto [00:41:46]process_json_proto [00:41:46]json parsed OK: [00:41:46]protocol is kg_v1.0 [00:41:46]action value=get_value [00:41:46]process_action get_value [00:41:46]cmd_get_value [00:41:46]process_action get_value done [00:41:46]requested_data is exist [00:41:46]produce_requested_data [00:41:46]requested_item kkm.sn is exist - process it [00:41:46]requested_item kkm.ver is exist - process it [00:41:46]requested_item fm.sn is exist - process it [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 11 00 00 [00:41:46]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:46]Read from MH i2c: E2 17 00 [00:41:46]MH_I2C_Read... [00:41:46]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 39 31 35 90 00 DF [00:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:41:46]wFMCommunicate OK [00:41:46]requested_item fd.num is exist - process it [00:41:46]SAM_PROTO_GetFieldsCounters [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 13 00 00 [00:41:46]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 62 00 [00:41:46]MH_I2C_Read... [00:41:46]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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F6 13 01 00 0E 04 04 00 D2 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 8A [00:41: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F6 13 01 00 0E 04 04 00 D2 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:41:46]wFMCommunicate OK [00:41:46]SAM_PROTO_GetFieldsCounters done [00:41:46]requested_item shift.num is exist - process it [00:41:46]requested_item shift.opened is exist - process it [00:41:46]req_shift_opened [00:41:46]FM_GetShiftState [00:41:46]SAM_PROTO_GetShiftState [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 13 01 00 [00:41:46]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 0E 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 FE [00:41:46]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [00:41:46]wFMCommunicate OK [00:41:46]SAM_PROTO_GetShiftState done [00:41:46]FM_GetShiftState done [00:41:46]req_shift_opened done [00:41:46]requested_item shift.open_date is exist - process it [00:41:46]req_shift_open_date [00:41:46]req_shift_open_date done [00:41:46]produce_requested_data done [00:41:46]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70646,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [00:41:46]process_action_free get_value [00:41:46]json_value_free [00:41:46]json_value_free done [00:41:46]process_json_proto returns [00:41:46]Send response to host [00:41:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70646,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [00:41:46]free response buf [00:41:46]execute_script done [00:41:46]execute_script returns [00:41:46]free content buf [00:41:46]Sock 9.Close socket [00:41:46]Sock 9.Thread stoped [00:41:46]accept exits with 7 [00:41:46]New connection [00:41:46]New thread 3067215204 created [00:41:46]Thread 3067358564 joined [00:41:46]Waiting for new connection... [00:41:46] Sock 7.Parse request [00:41:46]Sock 7.Check first char [00:41:46]Sock 7.First char is OK [00:41:46]request: POST /json_proto HTTP/1.0 [00:41:46]Method: POST [00:41:46]URL: /json_proto [00:41:46]Method is POST - this is cgi request [00:41:46]url: /json_proto [00:41:46]query_string will be loaded in cgi processing [00:41:46]execute_cgi json_proto POST (null) [00:41:46]execute_cgi path=json_proto method=POST [00:41:46]POST find Content-Length [00:41:46]Host: 172.17.58.67:8080 [00:41:46]Content-Length: 331 [00:41:46]Content-Type: application/json [00:41:46] [00:41:46]POST finish read [00:41:46]Found Content-Length = 331 [00:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:41:46]execute_script... [00:41:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:41:46]POST & json_proto [00:41:46]process_json_proto [00:41:46]json parsed OK: [00:41:46]protocol is kg_v1.0 [00:41:46]action value=get_value [00:41:46]process_action get_value [00:41:46]cmd_get_value [00:41:46]process_action get_value done [00:41:46]requested_data is exist [00:41:46]produce_requested_data [00:41:46]requested_item fm.sale.total is exist - process it [00:41:46]SAM_PROTO_GetFMData [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 13 03 00 [00:41:46]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:47]Read from MH i2c: E2 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 73 [00:41:47]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 [00:41:47]wFMCommunicate OK [00:41:47]wFMCommunicate request_size=4 [00:41:47]MH_SAM_APDU [00:41:47]CAPDU: 80 17 00 00 [00:41:47]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:41:47]Write i2c OK [00:41:47]MH_I2C_Read... [00:41:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:47]Read from MH i2c: E2 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 14 00 00 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 14 [00:41:47]RAPDU: 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41:47]wFMCommunicate OK [00:41:47]wFMCommunicate request_size=4 [00:41:47]MH_SAM_APDU [00:41:47]CAPDU: 80 17 00 00 [00:41:47]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:41:47]OFD Sender: No OFD packet to send [00:41:47]Write i2c OK [00:41:47]MH_I2C_Read... [00:41:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:47]Read from MH i2c: E2 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 [00:41:47]MH_I2C_Read... [00:41:47]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 [00:41:47]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:41:47]wFMCommunicate OK [00:41:47]wFMCommunicate request_size=4 [00:41:47]MH_SAM_APDU [00:41:47]CAPDU: 80 17 00 00 [00:41:47]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:41:47]Write i2c OK [00:41:47]MH_I2C_Read... [00:41:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:48]Read from MH i2c: E2 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 FD 00 [00:41:48]MH_I2C_Read... [00:41:48]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 [00:41:48]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:41:48]wFMCommunicate OK [00:41:48]wFMCommunicate request_size=4 [00:41:48]MH_SAM_APDU [00:41:48]CAPDU: 80 17 00 00 [00:41:48]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:41:48]Write i2c OK [00:41:48]MH_I2C_Read... [00:41:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:41:48]Read from MH i2c: E2 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 E5 00 [00:41:48]MH_I2C_Read... [00:41:48]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 [00:41:48]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:41:48]wFMCommunicate OK [00:41:48]SAM_PROTO_GetFMData done [00:41:48]requested_item fm.sale_refund.total is exist - process it [00:41:48]requested_item fm.buy.total is exist - process it [00:41:48]requested_item shift.sale.total is exist - process it [00:41:48]SAM_PROTO_GetShiftData [00:41:48]wFMCommunicate request_size=4 [00:41:48]MH_SAM_APDU [00:41:48]CAPDU: 80 13 02 00 [00:41:48]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [00:41:48]Write i2c OK [00:41:48]MH_I2C_Read... [00:41:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:48]Read from MH i2c: E2 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 FD 00 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 FD 00 18 00 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 09 [00:41:48]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:41:48]wFMCommunicate OK [00:41:48]wFMCommunicate request_size=4 [00:41:48]MH_SAM_APDU [00:41:48]CAPDU: 80 17 00 00 [00:41:48]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:41:48]Write i2c OK [00:41:48]MH_I2C_Read... [00:41:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:49]Read from MH i2c: E2 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 19 00 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 A1 [00:41:49]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:41:49]wFMCommunicate OK [00:41:49]wFMCommunicate request_size=4 [00:41:49]MH_SAM_APDU [00:41:49]CAPDU: 80 17 00 00 [00:41:49]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:41:49]Write i2c OK [00:41:49]MH_I2C_Read... [00:41:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:49]Read from MH i2c: E2 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 1A 00 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 6C [00:41:49]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:41:49]wFMCommunicate OK [00:41:49]wFMCommunicate request_size=4 [00:41:49]MH_SAM_APDU [00:41:49]CAPDU: 80 17 00 00 [00:41:49]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:41:49]Write i2c OK [00:41:49]MH_I2C_Read... [00:41:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:49]Read from MH i2c: E2 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 FD 00 1B 00 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 0D [00:41:49]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:41:49]wFMCommunicate OK [00:41:49]wFMCommunicate request_size=4 [00:41:49]MH_SAM_APDU [00:41:49]CAPDU: 80 17 00 00 [00:41:49]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:41:49]Write i2c OK [00:41:49]MH_I2C_Read... [00:41:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:41:49]Read from MH i2c: E2 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 BD 00 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 BD 00 1C 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 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 82 [00:41:49]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:41:49]wFMCommunicate OK [00:41:49]SAM_PROTO_GetShiftData done [00:41:49]requested_item shift.sale.total_cash is exist - process it [00:41:49]requested_item shift.sale_refund.total is exist - process it [00:41:49]requested_item shift.sale_refund.total_cash is exist - process it [00:41:49]requested_item shift.buy.total is exist - process it [00:41:49]requested_item shift.buy.total_cash is exist - process it [00:41:49]produce_requested_data done [00:41:49]produce_requested_data return {"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:41:49]process_action_free get_value [00:41:49]json_value_free [00:41:49]json_value_free done [00:41:49]process_json_proto returns [00:41:49]Send response to host [00:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:41:49]free response buf [00:41:49]execute_script done [00:41:49]execute_script returns [00:41:49]free content buf [00:41:49]Sock 7.Close socket [00:41:49]Sock 7.Thread stoped [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:31]accept exits with 9 [00:42:31]New connection [00:42:31]New thread 3067358564 created [00:42:31]Thread 3067215204 joined [00:42:31]Waiting for new connection... [00:42:31] Sock 9.Parse request [00:42:31]Sock 9.Check first char [00:42:31]Sock 9.First char is OK [00:42:31]request: POST /json_proto HTTP/1.0 [00:42:31]Method: POST [00:42:31]URL: /json_proto [00:42:31]Method is POST - this is cgi request [00:42:31]url: /json_proto [00:42:31]query_string will be loaded in cgi processing [00:42:31]execute_cgi json_proto POST (null) [00:42:31]execute_cgi path=json_proto method=POST [00:42:31]POST find Content-Length [00:42:31]Host: 172.17.58.67:8080 [00:42:31]Content-Length: 215 [00:42:31]Content-Type: application/json [00:42:31] [00:42:31]POST finish read [00:42:31]Found Content-Length = 215 [00:42: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" ] } } [00:42:31]execute_script... [00:42: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" ] } } [00:42:31]POST & json_proto [00:42:31]process_json_proto [00:42:31]json parsed OK: [00:42:31]protocol is kg_v1.0 [00:42:31]action value=get_value [00:42:31]process_action get_value [00:42:31]cmd_get_value [00:42:31]process_action get_value done [00:42:31]requested_data is exist [00:42:31]produce_requested_data [00:42:31]requested_item kkm.sn is exist - process it [00:42:31]requested_item kkm.ver is exist - process it [00:42:31]requested_item fm.sn is exist - process it [00:42:31]wFMCommunicate request_size=4 [00:42:31]MH_SAM_APDU [00:42:31]CAPDU: 80 11 00 00 [00:42:31]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [00:42:31]Write i2c OK [00:42:31]MH_I2C_Read... [00:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:31]Read from MH i2c: E2 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 17 00 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 EC [00:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 31 35 90 00 [00:42:31]wFMCommunicate OK [00:42:31]requested_item fd.num is exist - process it [00:42:31]SAM_PROTO_GetFieldsCounters [00:42:31]wFMCommunicate request_size=4 [00:42:31]MH_SAM_APDU [00:42:31]CAPDU: 80 13 00 00 [00:42:31]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [00:42:31]Write i2c OK [00:42:31]MH_I2C_Read... [00:42:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:31]Read from MH i2c: E2 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 62 00 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 62 00 1E 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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F6 13 01 00 0E 04 04 00 D2 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 97 [00:42: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 39 31 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 39 31 33 10 04 04 00 F6 13 01 00 0E 04 04 00 D2 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:42:31]wFMCommunicate OK [00:42:31]SAM_PROTO_GetFieldsCounters done [00:42:31]requested_item shift.num is exist - process it [00:42:31]requested_item shift.opened is exist - process it [00:42:31]req_shift_opened [00:42:31]FM_GetShiftState [00:42:31]SAM_PROTO_GetShiftState [00:42:31]wFMCommunicate request_size=4 [00:42:31]MH_SAM_APDU [00:42:31]CAPDU: 80 13 01 00 [00:42:31]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [00:42:31]Write i2c OK [00:42:31]MH_I2C_Read... [00:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:31]Read from MH i2c: E2 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 0E 00 [00:42:31]MH_I2C_Read... [00:42:31]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 98 AB BA 66 00 00 00 00 90 00 0B [00:42:31]RAPDU: 09 00 01 98 AB BA 66 00 00 00 00 90 00 [00:42:31]wFMCommunicate OK [00:42:31]SAM_PROTO_GetShiftState done [00:42:31]FM_GetShiftState done [00:42:31]req_shift_opened done [00:42:31]requested_item shift.open_date is exist - process it [00:42:31]req_shift_open_date [00:42:31]req_shift_open_date done [00:42:31]produce_requested_data done [00:42:31]produce_requested_data return {"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70646,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656} [00:42:31]process_action_free get_value [00:42:31]json_value_free [00:42:31]json_value_free done [00:42:31]process_json_proto returns [00:42:31]Send response to host [00:42:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000140","kkm.ver":"001","fm.sn":"0000000000874915","fd.num":70646,"shift.num":466,"shift.opened":1,"shift.open_date":1723509656}}} [00:42:31]free response buf [00:42:31]execute_script done [00:42:31]execute_script returns [00:42:31]free content buf [00:42:31]Sock 9.Close socket [00:42:31]Sock 9.Thread stoped [00:42:31]accept exits with 7 [00:42:31]New connection [00:42:31]New thread 3067215204 created [00:42:31]Thread 3067358564 joined [00:42:31]Waiting for new connection... [00:42:31] Sock 7.Parse request [00:42:31]Sock 7.Check first char [00:42:31]Sock 7.First char is OK [00:42:31]request: POST /json_proto HTTP/1.0 [00:42:31]Method: POST [00:42:31]URL: /json_proto [00:42:31]Method is POST - this is cgi request [00:42:31]url: /json_proto [00:42:31]query_string will be loaded in cgi processing [00:42:31]execute_cgi json_proto POST (null) [00:42:31]execute_cgi path=json_proto method=POST [00:42:31]POST find Content-Length [00:42:31]Host: 172.17.58.67:8080 [00:42:31]Content-Length: 331 [00:42:31]Content-Type: application/json [00:42:31] [00:42:31]POST finish read [00:42:31]Found Content-Length = 331 [00:42: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" ] } } [00:42:31]execute_script... [00:42: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" ] } } [00:42:31]POST & json_proto [00:42:31]process_json_proto [00:42:31]json parsed OK: [00:42:31]protocol is kg_v1.0 [00:42:31]action value=get_value [00:42:31]process_action get_value [00:42:31]cmd_get_value [00:42:31]process_action get_value done [00:42:31]requested_data is exist [00:42:31]produce_requested_data [00:42:31]requested_item fm.sale.total is exist - process it [00:42:31]SAM_PROTO_GetFMData [00:42:31]wFMCommunicate request_size=4 [00:42:31]MH_SAM_APDU [00:42:31]CAPDU: 80 13 03 00 [00:42:31]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [00:42:31]Write i2c OK [00:42:31]MH_I2C_Read... [00:42:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:42:32]Read from MH i2c: E2 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 20 00 00 C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 80 [00:42:32]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 52 10 01 00 69 04 A3 00 6F 04 04 00 20 07 01 00 B1 04 05 00 56 6C 7E C9 01 70 04 05 00 EC 6D 9A 5F 01 72 04 04 00 6A FE E3 69 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 91 FC 96 30 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 D6 89 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9F 00 6F 04 04 00 32 09 00 00 B1 04 04 00 E0 DE 54 14 70 04 04 00 44 A6 51 14 72 04 03 00 9C 38 03 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 D4 28 02 90 00 [00:42:32]wFMCommunicate OK [00:42:32]wFMCommunicate request_size=4 [00:42:32]MH_SAM_APDU [00:42:32]CAPDU: 80 17 00 00 [00:42:32]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [00:42:32]Write i2c OK [00:42:32]MH_I2C_Read... [00:42:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:32]Read from MH i2c: E2 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 21 00 00 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:42:32]RAPDU: 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 45 11 2E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:42:32]wFMCommunicate OK [00:42:32]wFMCommunicate request_size=4 [00:42:32]MH_SAM_APDU [00:42:32]CAPDU: 80 17 00 00 [00:42:32]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [00:42:32]Write i2c OK [00:42:32]MH_I2C_Read... [00:42:32]OFD Sender: No OFD packet to send [00:42:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:32]Read from MH i2c: E2 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 22 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7A [00:42: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 [00:42:32]wFMCommunicate OK [00:42:32]wFMCommunicate request_size=4 [00:42:32]MH_SAM_APDU [00:42:32]CAPDU: 80 17 00 00 [00:42:32]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [00:42:32]Write i2c OK [00:42:32]MH_I2C_Read... [00:42:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:32]Read from MH i2c: E2 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 [00:42:32]MH_I2C_Read... [00:42:32]Read from MH i2c: E2 FD 00 23 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 1B [00:42:33]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:42:33]wFMCommunicate OK [00:42:33]wFMCommunicate request_size=4 [00:42:33]MH_SAM_APDU [00:42:33]CAPDU: 80 17 00 00 [00:42:33]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [00:42:33]Write i2c OK [00:42:33]MH_I2C_Read... [00:42:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:42:33]Read from MH i2c: E2 [00:42:33]MH_I2C_Read... [00:42:33]Read from MH i2c: E2 E5 00 [00:42:33]MH_I2C_Read... [00:42:33]Read from MH i2c: E2 E5 00 24 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 88 [00:42: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 [00:42:33]wFMCommunicate OK [00:42:33]SAM_PROTO_GetFMData done [00:42:33]requested_item fm.sale_refund.total is exist - process it [00:42:33]requested_item fm.buy.total is exist - process it [00:42:33]requested_item shift.sale.total is exist - process it [00:42:33]SAM_PROTO_GetShiftData [00:42:33]wFMCommunicate request_size=4 [00:42:33]MH_SAM_APDU [00:42:33]CAPDU: 80 13 02 00 [00:42:33]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [00:42:33]Write i2c OK [00:42:33]MH_I2C_Read... [00:42:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:42:33]Read from MH i2c: E2 [00:42:33]MH_I2C_Read... [00:42:33]Read from MH i2c: E2 FD 00 [00:42:33]MH_I2C_Read... [00:42:33]Read from MH i2c: E2 FD 00 25 00 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 16 [00:42:33]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:42:33]wFMCommunicate OK [00:42:33]wFMCommunicate request_size=4 [00:42:33]MH_SAM_APDU [00:42:33]CAPDU: 80 17 00 00 [00:42:33]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [00:42:33]Write i2c OK [00:42:33]MH_I2C_Read... [00:42:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:33]Read from MH i2c: E2 [00:42:33]MH_I2C_Read... [00:42:33]Read from MH i2c: E2 FD 00 [00:42:33]MH_I2C_Read... [00:42:33]Read from MH i2c: E2 FD 00 26 00 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 AE [00:42:34]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:42:34]wFMCommunicate OK [00:42:34]wFMCommunicate request_size=4 [00:42:34]MH_SAM_APDU [00:42:34]CAPDU: 80 17 00 00 [00:42:34]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [00:42:34]Write i2c OK [00:42:34]MH_I2C_Read... [00:42:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:34]Read from MH i2c: E2 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 FD 00 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 FD 00 27 00 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 79 [00:42:34]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:42:34]wFMCommunicate OK [00:42:34]wFMCommunicate request_size=4 [00:42:34]MH_SAM_APDU [00:42:34]CAPDU: 80 17 00 00 [00:42:34]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [00:42:34]Write i2c OK [00:42:34]MH_I2C_Read... [00:42:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:42:34]Read from MH i2c: E2 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 FD 00 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 FD 00 28 00 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 1A [00:42:34]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:42:34]wFMCommunicate OK [00:42:34]wFMCommunicate request_size=4 [00:42:34]MH_SAM_APDU [00:42:34]CAPDU: 80 17 00 00 [00:42:34]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [00:42:34]Write i2c OK [00:42:34]MH_I2C_Read... [00:42:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:42:34]Read from MH i2c: E2 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 BD 00 [00:42:34]MH_I2C_Read... [00:42:34]Read from MH i2c: E2 BD 00 29 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [00:42:34]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:42:34]wFMCommunicate OK [00:42:34]SAM_PROTO_GetShiftData done [00:42:34]requested_item shift.sale.total_cash is exist - process it [00:42:34]requested_item shift.sale_refund.total is exist - process it [00:42:34]requested_item shift.sale_refund.total_cash is exist - process it [00:42:34]requested_item shift.buy.total is exist - process it [00:42:34]requested_item shift.buy.total_cash is exist - process it [00:42:34]produce_requested_data done [00:42:34]produce_requested_data return {"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:42:34]process_action_free get_value [00:42:34]json_value_free [00:42:34]json_value_free done [00:42:34]process_json_proto returns [00:42:34]Send response to host [00:42:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76754729.82,"fm.sale_refund.total":3411064.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:42:34]free response buf [00:42:34]execute_script done [00:42:34]execute_script returns [00:42:34]free content buf [00:42:34]Sock 7.Close socket [00:42:34]Sock 7.Thread stoped [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send